[asterisk-bugs] [JIRA] (ASTERISK-22082) 180 Ringing not forwarded out on inbound channel during parallel Dial due to Dial waiting on provisional response from outbound channels

Joshua Colp (JIRA) noreply at issues.asterisk.org
Mon Dec 18 11:50:07 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-22082:
-----------------------------------

    Affects Version/s: 13.18.4

> 180 Ringing not forwarded out on inbound channel during parallel Dial  due to Dial waiting on provisional response from outbound channels
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-22082
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22082
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_dial
>    Affects Versions: 1.8.23.0, 13.18.4
>         Environment: Debian 64-bit
>            Reporter: hristo
>            Severity: Minor
>
> I have identified two cases, in which parallel calls may result in no ringback tone being heard by the caller:
> 1. In some cases "180 Ringing" is not being forwarded to the calling channel, because Dial() is waiting for provisional response from outbound channels, which are in a state of either busy, congested or nochan.
> I believe the problem is in line 1331 in app_dial.c (1.8 branch):
> {code}
> if (ignore_cc || cc_frame_received || num_ringing == numlines) {
> {code}
> if I understand the line correctly, a comparison is made between the number of channels in the ringing state (num_ringing) and the total number of outbound channels (numlines). However, it doesn't take into account (a simple subtraction?) any channels, which never sent back any 18x response and are in a state of busy, congested or nochan (num.busy, num.congestion and num.nochan counters respectively). As a result in certain cases even though the rest of the outbound channels all have sent back "180 Ringing", the Dial app will not forward it to the caller. This exact problem is in fact described in the comments just above this line in the source code itself.
> I am experiencing this problem when calling two end devices in parallel and when one of them has DND set. In this case no ringback will be sent to the calling channel, because the Dial app will wait for the device in DND to send back 180 Ringing, but it gets instead "480 Do Not Disturb" (at least with a SNOM 760 I will get this message).
> [Edit by Rusty Newton - separated second issue out to ASTERISK-22201]
> I want to mention, that adding the 'r' is not an option in the cases above, because it will generate ringback immediately and unconditionally and not when/if the 180 Ringing is actually received from upstream (consider a call to a mobile).



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list