Hi Jeff,
I already received IPMEV_GET_XMITTS_INFO when I get timeslot TDM of ipm channel, then I ipm_listen between devH of channel 1 and timeslot info of channel2 but get 11-Internal Error, should I move ipm_listen to proccess event IPMEV_GET_XMITTS_INFO like this:
case IPMEV_GET_XMITTS_INFO:
int nEventType = sr_getevttype();
int nDeviceID = sr_getevtdev();
void* pVoid = sr_getevtdatap();
SC_TSINFO* pTimeSlotInfo;
pTimeSlotInfo = (SC_TSINFO*)pVoid;
traceLog("[%s] Received IPMEV_GET_XMITTS_INFO for device = %s\n", timeNow,
ATDV_NAMEP(nDeviceID));
traceLog("[%s] Timeslot number %d\n", timeNow, *(pTimeSlotInfo->sc_tsarrayp));
if ( ipm_Listen(voice[index_voice2].deviceInfo[IPM].devH, pTimeSlotInfo, EV_SYNC) < 0 ) {
traceLog("[%s] ipm_Listen(%s) failed %d-%s\n", timeNow, voice[index_voice2].deviceInfo[IPM].device_name,
ATDV_LASTERR(voice[index_voice2].deviceInfo[IPM].devH),
ATDV_ERRMSGP(voice[index_voice2].deviceInfo[IPM].devH));
return -1;
}
break;