]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: remove unused code for glare
authorMoises Silva <moy@sangoma.com>
Mon, 10 Jan 2011 22:38:16 +0000 (17:38 -0500)
committerMoises Silva <moy@sangoma.com>
Mon, 10 Jan 2011 22:38:16 +0000 (17:38 -0500)
libs/freetdm/src/ftdm_io.c

index 822c17c7dcb11a625ff502cf79be0716b69aa947..3e0dfabd3852dd7b2fc5a50f011582cf4ae8f195 100644 (file)
@@ -2410,14 +2410,6 @@ static ftdm_status_t _ftdm_channel_call_place_nl(const char *file, const char *f
        }
 
        if (!ftdm_test_flag(ftdmchan, FTDM_CHANNEL_OUTBOUND)) {
-               if (ftdm_test_flag(ftdmchan, FTDM_CHANNEL_CALL_STARTED)) {
-                       status = FTDM_BREAK;
-                       /* we set the outbound flag when the user open a channel, but if the signaling stack sends an
-                        * incoming call we clear it, which indicates the inbound call was received before we could try
-                        * to place the outbound call */
-                       ftdm_log_chan_msg(ftdmchan, FTDM_LOG_WARNING, "Inbound call won the race, you should hunt in another channel!\n");
-                       goto done;
-               } 
                ftdm_log_chan(ftdmchan, FTDM_LOG_ERROR, "Cannot place call in non outbound channel in state %s!\n", ftdm_channel_state2str(ftdmchan->state));
                goto done;
        }