Add more information, this is my code:
case IPMEV_GET_XMITTS_INFO:
traceLog("[%s] IPMEV_GET_XMITTS_INFO\n", timeNow);
int nEventType = sr_getevttype();
int nDeviceID = sr_getevtdev();
void* pVoid = sr_getevtdatap();
SC_TSINFO* pTimeSlotInfo;
int index_voice2 = voice[index_voice].bridge_index;
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));
} else {
traceLog("[%s] ipm_Listen success %s\n", timeNow, voice[index_voice2].deviceInfo[IPM].device_name);
}
I wonder why my program don't received event IPMEV_LISTEN or IPMEV_ERROR after ipm_Listen success :(