[Home]

Summary:ASTERISK-25256: [patch]Post AMI VarSet to empty string events when Asterisk deletes a dialplan variable.
Reporter:Richard Mudgett (rmudgett)Labels:
Date Opened:2015-07-15 18:51:46Date Closed:2015-07-19 09:56:32
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/General
Versions:13.4.0 Frequency of
Occurrence
Related
Issues:
is related toASTERISK-25255 Missing AMI VarSet events when setting to an empty string.
Environment:Attachments:( 0) jira_asterisk_25256_v13.patch
Description: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}
Comments: