Re: [Asterisk-Users] Add Country to CDR's
Yep, cmd setCDRUserField will do this for you assuming you have the field set up. I'd be keen to hear if anyone has a way of achieving the same thing across multiple user fields to save having to explode multiple values out of a single user field seperately. SimonOn 6/20/06, trixter aka Bret McDanel [EMAIL PROTECTED] wrote: On Tue, 2006-06-20 at 11:14 -0400, William Piper wrote: Thanks Bret, but how about an example or webpage? I'm not finding anything on google about this command for asterisk. What about AppendCDRUserField()... would this work? that seems to be the same thing.the userfield lets you stick arbitrarydata into your cdr records.--Trixter http://www.0xdecafbad.com Bret McDanel Belfast IE +44 28 9099 6461DE +49 801 777 555 3402Utrecht NL +31 306 553058US WA +1 360 207 0479US NY +1 516 687 5200FreeWorldDialup: 635378http://www.trxtel.com the VoIP provider that pays you!-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.3 (GNU/Linux)iD8DBQBEmBee+1olxlzQw5cRAnnjAKCFf4NDjUlCDlf1Pb//LyeauifNbwCfUB+5cMObnxnTQYcuP3VlTYHsxZg==g7ro -END PGP SIGNATURE-___--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Add Country to CDR's
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 andwhen 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/[EMAIL PROTECTED] })exten = s,5,hangup [intl_context] exten = _01130.,1,Macro(dialout-intl,${EXTEN}) ;Greeceexten = _01131.,1,Macro(dialout-intl,${EXTEN}) ;Netherlandsexten = _01132.,1,Macro(dialout-intl,${EXTEN}) ;Belgium exten = _0113271.,1,Macro(dialout-intl,${EXTEN}) ;Belgiumexten = _011331.,1,Macro(dialout-intl,${EXTEN}) ;Paris exten = _01158212.,1,Macro(dialout-intl,${EXTEN}) ;Caracasetc... It seems like I should be able to put the name of the country into ARG2, but I'm not sure how to write themacro to include the ARG2into the CDR. Anyones help would be greatful. Thanks, bp ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Add Country to CDR's
On Tue, 2006-06-20 at 10:49 -0400, William Piper wrote: List, Does anyone know how to add the dst Country to the CDR's via Macro (preferably). cdr(userinfo)? -- Trixter http://www.0xdecafbad.com Bret McDanel Belfast IE +44 28 9099 6461DE +49 801 777 555 3402 Utrecht NL +31 306 553058 US WA +1 360 207 0479 US NY +1 516 687 5200 FreeWorldDialup: 635378 http://www.trxtel.com the VoIP provider that pays you! signature.asc Description: This is a digitally signed message part ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Add Country to CDR's
Thanks Bret, but how about an example or webpage? I'm not finding anything on google about this command for asterisk. What about AppendCDRUserField()... would this work? bp On 6/20/06, trixter aka Bret McDanel [EMAIL PROTECTED] wrote: On Tue, 2006-06-20 at 10:49 -0400, William Piper wrote: List, Does anyone know how to add the dst Country to the CDR's via Macro (preferably).cdr(userinfo)?--Trixter http://www.0xdecafbad.com Bret McDanelBelfast IE +44 28 9099 6461DE +49 801 777 555 3402Utrecht NL +31 306 553058US WA +1 360 207 0479 US NY +1 516 687 5200FreeWorldDialup: 635378http://www.trxtel.com the VoIP provider that pays you!-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBEmA/A+1olxlzQw5cRAhUkAJwLvUAipyqWAQsGcm3oBRlXeLM1KACeNyPnNziWqekYeqPA5xpUkc9jeKE==ZEqZ-END PGP SIGNATURE-___--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo UNSUBSCRIBE or update options visit:http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Add Country to CDR's
On Tue, 2006-06-20 at 11:14 -0400, William Piper wrote: Thanks Bret, but how about an example or webpage? I'm not finding anything on google about this command for asterisk. What about AppendCDRUserField()... would this work? that seems to be the same thing. the userfield lets you stick arbitrary data into your cdr records. -- Trixter http://www.0xdecafbad.com Bret McDanel Belfast IE +44 28 9099 6461DE +49 801 777 555 3402 Utrecht NL +31 306 553058 US WA +1 360 207 0479 US NY +1 516 687 5200 FreeWorldDialup: 635378 http://www.trxtel.com the VoIP provider that pays you! signature.asc Description: This is a digitally signed message part ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users