[asterisk-users] CDR issue - Problem logging CDR(userfield) in Master.csv

Athanasia Tsertou atsertou at gennetsa.com
Fri Jan 28 05:34:21 CST 2011


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





More information about the asterisk-users mailing list