On Friday 21 September 2007 19:07:43 Ricardo Carvalho wrote: > Works great, although there is a problem with the CDR: Asterisk accounts > only the call that is answered by Asterisk which asks for the pin. Case > the call hasn't been answered by the called party, or case it even > hasn't been dialed because the caller failed to insert the pin, or even > if it has been answered, Asterisk writes in CDR table that it has been > ANSWERED and billed from the time Asterisk picked up to ask the pin. > I'm I skipping something in my syntax, or is this some kind of BUG? (I'm > using Asterisk version 1.2.17)
Nop, your dialplan is correct, and this is not a bug. Answer() in first line marks incoming call answered, so counter (also from your provider) is on, and you can't turn it off. Of course, Answer() is required, so that asterisk can start receiving voice, and DTMF to authenticate. If you would want to do your own billing, to count only duration of call dialed to SIP/whatever, you can do 1,Answer() 2,Authenticate() 3,Playback() 4,ResetCDR() 5,Dial() NoCDR would tell to not write CDR for that channel, but ResetCDR later would reset answer status for CDR, and start counting duration from that moment. ResetCDR(w) would make you have two CDR records, one for each part (that can be linked together by using uniqueid). Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. [EMAIL PROTECTED] Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835 _______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
