[email protected] wrote: > On 05-05-2010 18:00, Jian Gao wrote: > >> In my system (Asterisk 1.4.30) I found that if I have some playback() or >> saydigit() before dial(), the billsec in CDR count all the time includes >> the playback time. For example, if I dial a number, listen the playback, >> then just hangup before the call get answered, the CDR show me the time >> spent doing the playback in the billsec. >> >> > > > apps like playback do an implicit answer and this fires up the billsec > counter. > > OK, here is my dialplan: exten => _011X.,1,Set(remainMinutes=${DB(timer/bbFreeLDMinute)}) exten => _011X.,n,Playback(this-call-will-end-in) exten => _011X.,n,SayNumber(${remainMinutes}) exten => _011X.,n,Playback(minutes) exten => _011X.,n,Set(ms=${MATH(${remainMinutes}*60000,int)}) ;convert minutes to ms exten => _011X.,n,Dial(SIP/${ext...@${ldtrunk1},60,L(${ms}:30000)) ;set call limit to ${ms}, warning when 30000ms(30 sec) left
Is there any way that Asterisk will record the correct billsec? Or, is there a different approach? Thanks for help. -- Jian Gao IT Technician SJ Geophysics Ltd. <http://www.sjgeophysics.com> [email protected] <mailto:[email protected]> Tel: (604)582-1100 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
