[Asterisk-Users] re: cdr and macros

Girish Gopinath gopinath_girish at hotmail.com
Sat Mar 6 15:23:01 MST 2004


Yair,

As stated by OEJ in one of his old posts, using 's' is not a good thing for 
CDRs. Instead, you can try something like this to get the correct CDR.

exten => _XXX,1,Macro(extensip,${EXTEN})

[macro-extensip]
exten => s,1,goto(dialout,${ARGV1})

[dialout]
exten => _X.,1,Dial(SIP/<extension>,10)

Regards, Girish

>From: "yair hakak" <yhakak at hotmail.com>
>
>i've been playing with cdr_mysql and the Master.csv file, and since i use a 
>macro to define extensions the csv and the db both save the destination of 
>the call as "s", instead of the destination.
>
>macro is as follows:
>[macro-extensip]
>exten =>s,1,Dial(SIP/${ARG1},10)
>exten =>s,2,Voicemail(u${ARG1})
>exten =>s,3,Hangup()
>exten =>s,102,Voicemail(b${ARG1})
>exten =>s,103,Hangup()
>
>and extension matching:
>exten => _XXX,1,Macro(extensip,${EXTEN})
>
>pretty standard stuff. how can i get the cdr to show the actual 
>destination? I guess i could parse the dstchannel field but i'd rather see 
>what the user actually dialed as well.
>
>sorry if i'm missing something basic,
>yair
>

_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag 
Only on www.shaadi.com. Register now!




More information about the asterisk-users mailing list