[asterisk-bugs] [JIRA] (ASTERISK-27705) asterisk chan_iax2 stops listening to packets
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Tue Feb 27 21:09:13 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-27705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242391#comment-242391 ]
Asterisk Team commented on ASTERISK-27705:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> asterisk chan_iax2 stops listening to packets
> ---------------------------------------------
>
> Key: ASTERISK-27705
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27705
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_iax2
> Affects Versions: 14.5.0
> Environment: Fedora 27
> Reporter: Kirsty Tyerman
> Labels: patch
> Attachments: asterisk-iax.patch
>
>
> The chan_iax module in asterisk gets into a state where the module's recv-q keeps increasing and can no longer reach it's iax2 peers. Phone calls to the broken server from remote servers will no longer establish as asterisk can not create the IAX channel.
> *SYMPTOMS*
> Making a call from one server to another server that is no longer responding is still possible as the DUNDi module is still running, so the user can still discover any numbers on the remote server. However when attempting to establish the call, asterisk will complain when trying to dial the IAX channel since the IAX peer is no longer responding.
> In the Asterisk CLI:
> [Feb 2 01:31:10] WARNING[23862][C-00000001]: app_dial.c:2530 dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Subscriber absent)
> *RESOLVING*
> * Doing an "iax2 reload" in asterisk will not work because this does not unload and load the module, it just reads in the config file.
> * Doing a "module unload chan_iax2.so" followed by a "module load chan_iax2.so" or a "systemctl stop/start asterisk" will resolve the issue.
> *ISSUE/FIX*
> The iax2 module is not handling timeout and EINTR case properly. Mainly when there is an interupt to the kernel thread. In case of ast_io_wait recieves a signal, or timeout it can be an error or return 0 which eventually escapes the thread loop, so that it cant recieve any data. This then causes the module
> s receive queue to build up on the kernel and stop any communications via iax in asterisk.
> The proposed patch is for the iax module, so that timeout and EINTR does not exit the thread.
> *REPRODUCING*
> 1. Setup two asterisk servers and peer them using iax.
> 2. In our case we were able to easily reproduce the error when we set the timing interface to res_timing_dahdi.so and plugged in our custom DAHDI hardware to the computing platform.
> *ENVIRONMENT*
> Asterisk 14.5.0
> Fedora 27
> Kernel: 4.13.16-302.fc27.x86_64
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list