mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
freetdm: remove unused code for glare
This commit is contained in:
parent
baac734ec4
commit
f8cb296182
@ -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_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));
|
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;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user