From: Moises Silva Date: Mon, 10 Jan 2011 22:38:16 +0000 (-0500) Subject: freetdm: remove unused code for glare X-Git-Tag: v1.2-rc1~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8cb2961826c053cd168e4b440c44bd52c7af5d2;p=thirdparty%2Ffreeswitch.git freetdm: remove unused code for glare --- diff --git a/libs/freetdm/src/ftdm_io.c b/libs/freetdm/src/ftdm_io.c index 822c17c7dc..3e0dfabd38 100644 --- a/libs/freetdm/src/ftdm_io.c +++ b/libs/freetdm/src/ftdm_io.c @@ -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; }