Athanasia Tsertou
2011-Jan-28 11:34 UTC
[asterisk-users] CDR issue - Problem logging CDR(userfield) in Master.csv
Dear all, I am having an issue with CDR logging. What I want to do is log jitter variable from RTPAUDIOQOS module into Master.csv at the end of each call. I am using asterisk version 1.4.26. For CDR purposes, I am using cdr_custom, and the content of my cdr_custom.conf is the following: [mappings] Master.csv => ${CDR(dstchannel)},${CDR(clid)},${CDR(cid-num)},${CDR(dst)},${CDR(start)},${CDR(billsec)},${CDR(disposition)},${CDR(userfield)} In my dialplan, right before my Hangup() call, I have put the following (am using AEL, but I guess this is irrelevant) Set(JITTER=${CUT(RTPAUDIOQOS,\;,4)}); Set(CDR(userfield)=${CUT(JITTER,\=,2)}); I make an outgoing call with asterisk debugging mode on. When I hangup the call, I see the following in the asterisk cli: Executing [sw-41-ANSWER at macro-handle_dialstatus:10] Set("SIP/FXS1-001666f8", "JITTER=rxjitter=0.004785") in new stack - Executing [sw-41-ANSWER at macro-handle_dialstatus:11] Set("SIP/FXS1-001666f8", "CDR(userfield)=0.004785") in new stack which means that my commands should work. However, when I check the contents of my Master.csv file, the userfield variable is EMPTY :-( SIP/line1-00141f30,"FXS1" <FXS1>,,2109999999,2011-01-28 13:21:16,39,ANSWERED, What could be the problem? Best Regards and thank you in advance, Athanasia -- ------------------------------ Athanasia Tsertou Software Engineer Gennet s.a. 2, Mesogeion Ave., Athens Tower Athens GR-115 27 Tel: +30 210 74 58 435 Fax: +30 210 74 58 481 Mob: +30 697 87 85 883 e-mail: atsertou at gennetsa.com
Tilghman Lesher
2011-Jan-28 18:43 UTC
[asterisk-users] CDR issue - Problem logging CDR(userfield) in Master.csv
On Friday 28 January 2011 05:34:21 Athanasia Tsertou wrote:> In my dialplan, right before my Hangup() call, I have put the following > (am using AEL, but I guess this is irrelevant) > > Set(JITTER=${CUT(RTPAUDIOQOS,\;,4)}); > Set(CDR(userfield)=${CUT(JITTER,\=,2)});Did you put it in the "h" extension? That is where it needs to be executed in order for it to go into the CDR. If it's not in the "h" extension, you're updating the CDR after it has already been posted. -- Tilghman