Freetdm: Added check for channel_on_routing called more than once on incoming calls
This commit is contained in:
parent
300348916e
commit
a95a4eeee8
|
@ -2281,7 +2281,8 @@ FT_DECLARE(ftdm_status_t) _ftdm_channel_call_indicate(const char *file, const ch
|
||||||
status = ftdm_channel_set_state(file, func, line, ftdmchan, FTDM_CHANNEL_STATE_BUSY, 1);
|
status = ftdm_channel_set_state(file, func, line, ftdmchan, FTDM_CHANNEL_STATE_BUSY, 1);
|
||||||
break;
|
break;
|
||||||
case FTDM_CHANNEL_INDICATE_PROCEED:
|
case FTDM_CHANNEL_INDICATE_PROCEED:
|
||||||
if (!ftdm_test_flag(ftdmchan->span, FTDM_SPAN_USE_PROCEED_STATE)) {
|
if (!ftdm_test_flag(ftdmchan->span, FTDM_SPAN_USE_PROCEED_STATE) ||
|
||||||
|
ftdmchan->state == FTDM_CHANNEL_STATE_PROCEED) {
|
||||||
ftdm_ack_indication(ftdmchan, indication, status);
|
ftdm_ack_indication(ftdmchan, indication, status);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue