]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: ss7 - bug fix, don't send RSC for non-voice channels
authorKonrad Hammel <konrad@sangoma.com>
Thu, 17 Mar 2011 21:23:08 +0000 (17:23 -0400)
committerKonrad Hammel <konrad@sangoma.com>
Thu, 17 Mar 2011 21:26:38 +0000 (17:26 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_main.c

index 46bc53ec57c9eb5c41b8f40b7bff1cef1828dceb..92e6c8be4b819ef4aee4a953aa9960983da3605c 100644 (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);