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

Joshua Colp (JIRA) noreply at issues.asterisk.org
Wed Dec 20 06:35:08 CST 2017


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

Joshua Colp updated ASTERISK-21042:
-----------------------------------

    Assignee:     (was: Matt Jordan)

> [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, 13.18.4
>            Reporter: Roman S.
>            Severity: Trivial
>              Labels: patch
>         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 was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list