freetdm: span id specified in raw trace if channel was not mapped
This commit is contained in:
parent
00bba5790b
commit
dd40e50e7a
|
@ -241,6 +241,11 @@ void sngisdn_trace_raw_q931(sngisdn_span_data_t *signal_data, ftdm_trace_dir_t d
|
||||||
sigev.span_id = ftdmchan->physical_span_id;
|
sigev.span_id = ftdmchan->physical_span_id;
|
||||||
sigev.chan_id = ftdmchan->physical_chan_id;
|
sigev.chan_id = ftdmchan->physical_chan_id;
|
||||||
sigev.channel = ftdmchan;
|
sigev.channel = ftdmchan;
|
||||||
|
} else {
|
||||||
|
/* We could not map the channel, but at least set the span */
|
||||||
|
if (signal_data->ftdm_span->channels[1]) {
|
||||||
|
sigev.span_id = signal_data->ftdm_span->channels[1]->physical_span_id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sigev.event_id = FTDM_SIGEVENT_TRACE_RAW;
|
sigev.event_id = FTDM_SIGEVENT_TRACE_RAW;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue