freetdm: ss7 - bug fix, don't send RSC for non-voice channels

This commit is contained in:
Konrad Hammel 2011-03-17 17:23:08 -04:00
parent 4d2a651439
commit c0ee2490fe
1 changed files with 6 additions and 0 deletions

View File

@ -1389,11 +1389,17 @@ static ftdm_status_t ftdm_sangoma_ss7_start(ftdm_span_t * span)
for (x = 1; x < (span->chan_count + 1); x++) {
/* extract the channel structure and sngss7 channel data */
ftdmchan = span->channels[x];
/* if there is no sig mod data move along */
if (ftdmchan->call_data == NULL) continue;
sngss7_info = ftdmchan->call_data;
sngss7_span = ftdmchan->span->signal_data;
sngss7_intf = &g_ftdm_sngss7_data.cfg.isupIntf[sngss7_info->circuit->infId];
/* if this is a non-voice channel, move along */
if (sngss7_info->circuit->type != VOICE) continue;
/* lock the channel */
ftdm_mutex_lock(ftdmchan->mutex);