Most SRL event management functions return a value that indicates success or failure:
If a function fails, the error can be retrieved using the ATDV_LASTERR( ) or ATDV_ERRMSGP( ) functions described in Section 7. SRL Standard Attribute Functions. If an SRL function fails, retrieve the error by using the ATDV_LASTERR( ) function with SRL_DEVICE as the argument. To retrieve a text description of the error, use ATDV_ERRMSGP.
For example, if the SRL function sr_getparm( ) fails, the error can be found by calling ATDV_LASTERR( ) with SRL_DEVICE as the argument.
Each function description in this section includes a list of the errors that can occur for that function. If the error returned by ATDV_LASTERR( ) is ESR_SYS, an error from the operating system has occurred; use dx_fileerrno( ) to obtain the system error value.
The error codes are defined in srllib.h and are listed in Table 3.
Table 3. Event Management Function Errors
Error Define |
Error String |
|
ESR_DATASZ |
|
ESR_MODE |
|
ESR_NOERR |
|
ESR_NOHDLR |
|
ESR_NOTIMP |
|
ESR_PARMID |
|
ESR_QSIZE |
|
ESR_SCAN |
|
ESR_SYS |
|
ESR_TMOUT |
|
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation