freetdm: Allow user to indicate FACILITY on outbound calls

This commit is contained in:
David Yat Sin 2011-03-03 09:48:48 -05:00
parent f9540b7258
commit 1fbb321f3d
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
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_channel_indication2str(indication), ftdm_channel_state2str(ftdmchan->state));
status = FTDM_EINVAL;