freetdm: Allow user to indicate FACILITY on outbound calls
This commit is contained in:
parent
f9540b7258
commit
1fbb321f3d
|
@ -2312,7 +2312,9 @@ FT_DECLARE(ftdm_status_t) _ftdm_channel_call_indicate(const char *file, const ch
|
||||||
ftdm_set_flag(ftdmchan, FTDM_CHANNEL_IND_ACK_PENDING);
|
ftdm_set_flag(ftdmchan, FTDM_CHANNEL_IND_ACK_PENDING);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ftdm_test_flag(ftdmchan, FTDM_CHANNEL_OUTBOUND)) {
|
if (indication != FTDM_CHANNEL_INDICATE_FACILITY &&
|
||||||
|
ftdm_test_flag(ftdmchan, FTDM_CHANNEL_OUTBOUND)) {
|
||||||
|
|
||||||
ftdm_log_chan_ex(ftdmchan, file, func, line, FTDM_LOG_LEVEL_WARNING, "Cannot indicate %s in outgoing channel in state %s\n",
|
ftdm_log_chan_ex(ftdmchan, file, func, line, FTDM_LOG_LEVEL_WARNING, "Cannot indicate %s in outgoing channel in state %s\n",
|
||||||
ftdm_channel_indication2str(indication), ftdm_channel_state2str(ftdmchan->state));
|
ftdm_channel_indication2str(indication), ftdm_channel_state2str(ftdmchan->state));
|
||||||
status = FTDM_EINVAL;
|
status = FTDM_EINVAL;
|
||||||
|
|
Loading…
Reference in New Issue