[asterisk-bugs] [JIRA] (ASTERISK-21113) app_dial.c does not honor 'c' flag when calling party hangs up

Heiko Wundram (JIRA) noreply at issues.asterisk.org
Tue Feb 19 03:19:18 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203183#comment-203183 ] 

Heiko Wundram commented on ASTERISK-21113:
------------------------------------------

The 'c' flag, as stated by Matt Jordan, is supposed to always signal call answered elsewhere on outgoing lines, independent of the cause of the cancellation of the call. In my specific scenario, the dialing timed out or caller hung up before any of the lines were answered, but none of the endpoints got the appropriate SIP-header. The attached patch fixes that for the case that the 'c' dial flag is set.
                
> app_dial.c does not honor 'c' flag when calling party hangs up
> --------------------------------------------------------------
>
>                 Key: ASTERISK-21113
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21113
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_dial
>    Affects Versions: 11.2.0, 11.2.1
>         Environment: Gentoo-built Asterisk 11.2.1
>            Reporter: Heiko Wundram
>         Attachments: app_dial.patch
>
>
> app_dial.c does not honor a passed "c"-flag when dialing out and the caller hangs up. This occurs due to a possible reset of the hangupcause on the dialled outgoing channels.
> Updating the hanguptree() after the out:-label in dial_exec_full to not only set up AST_CAUSE_ANSWERED_ELSEWHERE when the incoming channel signals it, but also when OPT_CANCEL_ELSEWHERE is set, fixes the issue and Call-Completed-Elsewhere is properly sent out in the Reason-header.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list