[asterisk-bugs] [JIRA] (ASTERISK-21042) [patch] - pbx_spool: callfile variables overriding/lost in __ast_request_and_dial()

Roman S. (JIRA) noreply at issues.asterisk.org
Thu Apr 18 05:10:01 CDT 2013


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

Roman S. updated ASTERISK-21042:
--------------------------------

    Attachment: originate-vars-fix.diff
    
> [patch] - pbx_spool: callfile variables overriding/lost in __ast_request_and_dial()
> -----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-21042
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21042
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Channels, PBX/pbx_spool
>    Affects Versions: 1.8.20.1
>            Reporter: Roman S.
>            Assignee: Matt Jordan
>            Severity: Trivial
>         Attachments: originate-vars-fix.diff
>
>
> {{__ast_request_and_dial()}} calls {{ast_set_variables(chan, oh->vars)}} before {{ast_channel_inherit_variables(oh->parent_channel, chan)}} and before {{ast_channel_set_connected_line(chan, &connected, NULL)}}. It causes:
>  1. overriding of some variables from oh struct with values from parent channel (if any)
>  2. overriding/ignore of {{CONNECTEDLINE()}} function job from callfile
> I suppose to call {{ast_set_variables(chan, oh->vars)}} just after {{ast_channel_set_connected_line(chan, &connected, NULL)}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list