[asterisk-bugs] [JIRA] (ASTERISK-25256) Post AMI VarSet to empty string events when Asterisk deletes a dialplan variable.

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Wed Jul 15 18:55:32 CDT 2015


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

Richard Mudgett updated ASTERISK-25256:
---------------------------------------

    Attachment: jira_asterisk_25256_v13.patch

> Post AMI VarSet to empty string events when Asterisk deletes a dialplan variable.
> ---------------------------------------------------------------------------------
>
>                 Key: ASTERISK-25256
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25256
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 13.4.0
>            Reporter: Richard Mudgett
>         Attachments: jira_asterisk_25256_v13.patch
>
>
> In the interest of allowing external systems better track channel variable values updated by internal Asterisk operations, Asterisk should also post AMI VarSet events setting the value to an empty string when the channel variable is deleted.
> For example:
> {noformat}
> exten = 100,1,NoOp()
> same = n,Set(ATTENDEDTRANSFER=PJSIP/100)
> same = n,Dial(PJSIP/200,10)
> same = n,Hangup()
> {noformat}
> Calling the above extension would post only one AMI VarSet event when the dialplan sets the ATTENDEDTRANSFER channel variable even though when the channel is bridged with PJSIP/200 the ATTENDEDTRANSFER channel variable is deleted by Asterisk.
> With the patch for the proposed change, Asterisk will post an AMI VarSet event clearing the ATTENDEDTRANSFER variable when PJSIP/200 is bridged similar to what happens with the dialplan below:
> {noformat}
> exten = 100,1,NoOp()
> same = n,Set(ATTENDEDTRANSFER=PJSIP/100)
> same = n,Set(ATTENDEDTRANSFER=)
> same = n,Dial(PJSIP/200,10)
> same = n,Hangup()
> {noformat}



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



More information about the asterisk-bugs mailing list