cc_GetInfoElem( ) gets information elements associated with a line device
124
int i;
printf("%s: CCEV_NOTIFY cc_GetInfoElem =%d\n",
ATDV_NAMEP(event_dev), cc_GetInfoElem(event_dev, &ie) );
printf("IE %d)= ", ie.length);
for(i = 0; i < ie.length; i++)
printf("%02X, ", (unsigned char)ie.data[i]);
printf("\n");
.
.
}
break;
.
.
.
}
}
!
! !
!
Errors
If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function
to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be
used to interpret the reason code. Error codes are defined in the files ccerr.h,
isdnerr.h, and isdncmd.h.
Error codes from the cc_GetInfoElem( ) function include the following:
Error Code Description
ERR_ISDN_LIB | E_ISBADCRN Bad call reference number
ERR_ISDN_LIB | E_ISBADPAR Bad input parameter
ERR_ISDN_LIB | E_ISNOINFOBUF Information buffer not ready
ERR_ISDN_LIB | E_ISNOFACILITYBUF Network Facility buffer not
ready
!
! !
!
See Also
•
• •
• cc_GetCallInfo( )
• cc_SetInfoElem( )