08.01.2013 Views

Dialogic IP Media Library API Programming Guide and Library ...

Dialogic IP Media Library API Programming Guide and Library ...

Dialogic IP Media Library API Programming Guide and Library ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.Error H<strong>and</strong>ling<br />

This chapter describes error h<strong>and</strong>ling for the <strong>Dialogic</strong> ® <strong>IP</strong> <strong>Media</strong> <strong>Library</strong> <strong>API</strong> software.<br />

All <strong>Dialogic</strong> ® <strong>IP</strong> <strong>Media</strong> <strong>Library</strong> <strong>API</strong> functions return a value that indicates the success or failure of<br />

the function call. Success is indicated by a return value of zero or a non-negative number. Failure is<br />

indicated by a value of -1.<br />

If a function fails, call the St<strong>and</strong>ard Attribute functions ATDV_LASTERR( ) <strong>and</strong><br />

ATDV_ERRMSGP( ) for the reason for failure. These functions are described in the <strong>Dialogic</strong> ®<br />

St<strong>and</strong>ard Runtime <strong>Library</strong> <strong>API</strong> <strong>Library</strong> Reference.<br />

If an error occurs during execution of an asynchronous function, the <strong>IP</strong>MEV_ERROR event is sent<br />

to the application. No change of state is triggered by this event. Upon receiving the<br />

<strong>IP</strong>MEV_ERROR event, the application can retrieve the reason for the failure using the st<strong>and</strong>ard<br />

runtime library functions ATDV_LASTERR( ) <strong>and</strong> ATDV_ERRMSGP( ).<br />

<strong>Dialogic</strong> ® <strong>IP</strong> <strong>Media</strong> <strong>Library</strong> <strong>API</strong> <strong>Programming</strong> <strong>Guide</strong> <strong>and</strong> <strong>Library</strong> Reference 30<br />

<strong>Dialogic</strong> Corporation<br />

6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!