Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference — November 2003 261
return the calling line Directory Number — dx_gtcallid( )
if ( dx_gtextcallid(chdev,CLIDINFO_FRAMETYPE, buffer) != -1) {
if(buffer[0] == CLASSFRAME_MDM) {
/* Get and print the date and time */
if (dx_gtextcallid(chdev, MCLASS_DATETIME, buffer) == -1) {
/* process error */
printf("Error: %s\n", ATDV_ERRMSGP(chdev));
}
else {
printf("Date/Time = %s\n", buffer);
}
/* Get and print the caller name */
if (dx_gtextcallid(chdev, MCLASS_NAME, buffer) == -1) {
/* process error */
printf("Error: %s\n", ATDV_ERRMSGP(chdev));
}
else {
printf("Caller Name = %s\n", buffer);
}
/* Get and print the Dialed Number */
if (dx_gtextcallid(chdev, MCLASS_DDN, buffer) == -1) {
/* process error */
printf("Error: %s\n", ATDV_ERRMSGP(chdev));
}
else {
printf("Dialed Number = %s\n", buffer);
}
}
else {
printf("Submessages not available - not an MDM message\n");
}
}
dx_close(chdev);
return(0);
}
!
!!
! See Also
dx_gtextcallid( )
dx_wtcallid( )
dx_setparm( )
dx_setevtmsk( )
dx_getevt( )
DX_EBLK data structure