Intel 05-1832-002 IP Phone User Manual


 
460 Voice API for Windows Operating Systems Library Reference — November 2003
nr_scunroute( ) — break a full or half-duplex connection
default:
nr_scerror("nr_scunroute: %s: ERROR: Invalid 2nd device type\n",
ATDV_NAMEP(devh2));
return -1;
}
/*
* A half duplex connection has already been broken. If this is all
* that is required, then return now.
*/
if (mode == SC_HALFDUP) {
return 0;
}
/*
* Disconnect listen of first device from TDM bus listen time slot
*/
switch (devtype1) {
case SC_VOX:
if (dx_unlisten(devh1) == -1) {
nr_scerror("nr_scunroute: %s: dx_unlisten ERROR: %s\n",
ATDV_NAMEP(devh1),ATDV_ERRMSGP(devh1));
return -1;
}
break;
case SC_LSI:
if (ag_unlisten(devh1) == -1) {
nr_scerror("nr_scunroute: %s: ag_unlisten ERROR: %s\n",
ATDV_NAMEP(devh1),ATDV_ERRMSGP(devh1));
return -1;
}
break;
#ifdef DTISC
case SC_DTI:
if (dt_unlisten(devh1) == -1) {
nr_scerror("nr_scunroute: %s: dt_unlisten ERROR: %s\n",
ATDV_NAMEP(devh1),ATDV_ERRMSGP(devh1));
return -1;
}
break;
#endif
#ifdef FAXSC
case SC_FAX:
if (fx_unlisten(devh1) == -1) {
nr_scerror("nr_scunroute: %s: fx_unlisten ERROR: %s\n",
ATDV_NAMEP(devh1),ATDV_ERRMSGP(devh1));
return -1;
}
break;
#endif
default:
nr_scerror("nr_scunroute: %s: ERROR: Invalid 1st device type\n",
ATDV_NAMEP(devh1));
return -1;
}
return 0;
}