提交 7ec7c920 authored 作者: Matteo Brancaleoni's avatar Matteo Brancaleoni

OPENZAP-220 fix blocked into read and add cause for a correct hangup

上级 da43bdeb
...@@ -1251,6 +1251,8 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan) ...@@ -1251,6 +1251,8 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan)
} else if (caller_data->hangup_cause == PRI_CAUSE_DESTINATION_OUT_OF_ORDER) { } else if (caller_data->hangup_cause == PRI_CAUSE_DESTINATION_OUT_OF_ORDER) {
/* Can happen when we have a DL link expire or some timer expired */ /* Can happen when we have a DL link expire or some timer expired */
ftdm_set_state_locked(chan, FTDM_CHANNEL_STATE_HANGUP_COMPLETE); ftdm_set_state_locked(chan, FTDM_CHANNEL_STATE_HANGUP_COMPLETE);
} else if (caller_data->hangup_cause == PRI_CAUSE_INVALID_NUMBER_FORMAT) {
ftdm_set_state_locked(chan, FTDM_CHANNEL_STATE_HANGUP_COMPLETE);
} }
} }
} }
......
...@@ -1402,7 +1402,7 @@ static FIO_READ_FUNCTION(zt_read) ...@@ -1402,7 +1402,7 @@ static FIO_READ_FUNCTION(zt_read)
} else { } else {
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_DEBUG, "Skipping one IO read cycle due to DTMF event processing\n"); ftdm_log_chan_msg(ftdmchan, FTDM_LOG_DEBUG, "Skipping one IO read cycle due to DTMF event processing\n");
} }
continue; break;
} }
/* Read error, keep going unless to many errors force us to abort ...*/ /* Read error, keep going unless to many errors force us to abort ...*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论