Problem seems to be due to the fact that I use a macro and it has a "s" as the matching extension, but if the Dial command dial out correctly why the CDR not get recorded correctly. As for testing, I directly dialed out without the macro command, and it works fine. But my extensions.conf is based on many macros and it is hard to change all and get it to work without them.
When I built the extensions.conf I followed the guidelines from, Initially I had no issue with the CDRs which it generated, but now it do not work correctly. All what I did recently was upgrading asterisk to latest version. Can this be a bug? Can this be reproduced else where. (I haven't seen any complains on the message board other than me.) http://www.loligo.com/asterisk/current/extensions.conf http://www.voip-info.org/wiki-Asterisk+config+extensions.conf In addition I use mysql to collect CDR's and also the text files. Both show dst as "s" instead of the number that the Dial command dials. - Samath Wije Phone : 201 469 8152 Pager : 917 247 1048 -----Original Message----- From: Girish Gopinath [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 2:48 AM To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] cdr->dst incorrect? Sam, >From an OEJ Post: ******************** Try to match every extension before dialing out instead, using "s" is a bad thing for CDRs. > [default] > exten => 1234,1,macro(dial-out) > [macro-dial-out] > exten => s,1,Dial(SIP/test,30,r) [default] exten => 1234,1,macro(dial-out,${EXTEN}) [macro-dial-out] exten => s,1,goto(dial-out2,${ARGV1}) [dial-out2] exten => _X.,1,Dial(SIP/test,30,r) Of course, you could to a goto instead of macro in the first place, but there might be another reason that you want to use a macro... ****************** http://lists.digium.com/pipermail/asterisk-users/2004-January/033970.htm l Hope it solves your problem... Regards, Girish >From: SamW <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: [Asterisk-Users] cdr->dst incorrect? >Date: Tue, 24 Feb 2004 23:58:40 -0500 > >I am using following setup to dialout, I can take calls through sip-out >which is defined in sip.conf. My issue is cdr records will have a "s" for >destination. What Can be wrong and any suggestions to fix? Can this be a >bug I am using Version 0.7.2. > >instead of macro-dialout if I directly dialed through the [intern] I get >the correct results. Some how asterisk think I dialed extension "s" instead >of the number I dialed. > >Any help appreciated. > >[macro-dialout] >exten => s,1,Dial(SIP/[EMAIL PROTECTED],50) >exten => s,2,Busy >exten => s,102,Busy > >[intern] >exten => _1NXXNXXXXXX,1,Macro(dialout,${EXTEN},60) > >- SamW > _________________________________________________________________ All the news that matters. All the gossip from home. http://www.msn.co.in/NRI/ Specially for NRIs! _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
