[asterisk-bugs] [JIRA] (ASTERISK-23069) Custom CDR variable not recorded when set in macro called from app_queue
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Tue Jan 21 21:43:03 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214290#comment-214290 ]
Rusty Newton commented on ASTERISK-23069:
-----------------------------------------
When using dialplan like the following:
{noformat}
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
[globals]
[from-internal]
;set the acustomfield1 and userfield CDR fields on the calling channel before hitting the queue
exten => 602,1,Set(CDR(acustomfield1)=something1)
same => n,Set(CDR(userfield)=ISetThisOnTheCALLINGChannel)
same => n,Queue(support,,,,30,,my-queue-macro)
;same => n,Queue(support,,,,30,,,submytest)
same => n,Hangup
[macro-my-queue-macro]
;set the userfield and acustomfield2 CDR fields on the *called* channel after the two channels are bridged
exten => s,1,Set(CDR(userfield)=ISetThisOnTheCalledChannel)
same => n,Set(CDR(acustomfield2)=something2)
{noformat}
I get output like the following (using the JSON format):
{noformat}
{"Source":"6002","Destination":"602","Context":"from-internal","SourceChannel":"SIP/6002-0000002d","DestinationChannel":"SIP/6001-0000002e","LastAPP":"Queue","LastData":"support,,,,30,,my-queue-macro","Start":"2014-01-21 21:38:05","Answer":"2014-01-21 21:38:06","End":"2014-01-21 21:38:07","Duration":"0.002000","BillSec":"0.001000","Disposition":"ANSWERED","amaFlags":"DOCUMENTATION","AccountCode":"","UniqueID":"1390361885.67","UserField":"ISetThisOnTheCALLINGChannel;ISetThisOnTheCalledChannel","Sequence":45,"acustomfield1":"something1","acustomfield2":"something2"}
{noformat}
So I get values set in the userfield on both channels, plus both of the custom fields set on the calling and called channels.
> Custom CDR variable not recorded when set in macro called from app_queue
> ------------------------------------------------------------------------
>
> Key: ASTERISK-23069
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23069
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: CDR/cdr_custom, CDR/General
> Affects Versions: 1.8.20.0
> Environment: CentOS 6.5
> Reporter: Bryan Anderson
> Assignee: Bryan Anderson
> Severity: Minor
> Attachments: cdr_custom.conf, debug, extensions.conf, full, logger.conf, queues.conf, results.txt
>
>
> When setting CDR variable within a Macro called by a Queue only the predefined Variables can be set. (CDR(userfield)=works, CDR(myvariable)=Notworks)
> extensions.conf = http://pastebin.com/CQmdwJhc
> cdr_custom.conf = http://pastebin.com/DnLCY28L
> queues.conf = http://pastebin.com/8HAbLcmX
> results = http://pastebin.com/gAZ9FiBc
--
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