List,
Does anyone know how to add the dst Country to the CDR's via Macro
(preferably).
For example, I will add a column in the cdr DB table and when someone dials
01158212XXX. I want the CDR's to show Caracas as the destination in this new
column.
I have all of the International destinations in my extensions.conf like the
example below:
[macro-dialout-intl]
exten => s,1,SetGroup(${CALLERIDNUM})
exten => s,2,CheckGroup(1)
exten => s,3,absolutetimeout,${settimeout}
exten => s,4,Dial(SIP/${ARG1}@${carrierintl})
exten => s,5,hangup
[intl_context]
exten => _01130.,1,Macro(dialout-intl,${EXTEN}) ;Greece
exten => _01131.,1,Macro(dialout-intl,${EXTEN}) ;Netherlands
exten => _01132.,1,Macro(dialout-intl,${EXTEN}) ;Belgium
exten => _0113271.,1,Macro(dialout-intl,${EXTEN}) ;Belgium
exten => _011331.,1,Macro(dialout-intl,${EXTEN}) ;Paris
exten => _01158212.,1,Macro(dialout-intl,${EXTEN}) ;Caracas
etc...
It seems like I should be able to put the name of the country into ARG2, but
I'm not sure how to write the macro to include the ARG2 into the CDR.
Anyones help would be greatful.
Thanks,
bp
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060620/21e628ed/attachment.htm