So... I'm trying to access CDR(duration) and CDR(billsec) inside h... I keep getting 0. Can I access the CDR function inside a hangup extensions? Asterisk 1.4.13 Thanks, Doug. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071206/2a01722f/attachment.htm
Ok, this is a little crazy... billsec and duration are 0, but disposition is ANSWERED. Huh? h => { NoOp(*** LEG B HANGUP ${CDR(duration)} ${CDR(billsec)} ${CDR(disposition)}); &AddCallLeg(${LEGB_SOURCE},${LEGB_DEST},1,2,${HANGUPCAUSE}); }; ----- Original Message ---- From: Douglas Garstang <dougmig33 at yahoo.com> To: asterisk-users at lists.digium.com Sent: Thursday, December 6, 2007 12:04:29 PM Subject: CDR Function in Hangup Channel So... I'm trying to access CDR(duration) and CDR(billsec) inside h... I keep getting 0. Can I access the CDR function inside a hangup extensions? Asterisk 1.4.13 Thanks, Doug. Looking for last minute shopping deals? Find them fast with Yahoo! Search. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071206/c2ce9dac/attachment.htm
Oh Crap. So there's no way to get the duration and billsec from the dial plan then? ----- Original Message ---- From: Tilghman Lesher <tilghman at mail.jeffandtilghman.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Sent: Thursday, December 6, 2007 1:19:59 PM Subject: Re: [asterisk-users] CDR Function in Hangup Channel On Thursday 06 December 2007 14:54:14 Douglas Garstang wrote:> Ok, this is a little crazy... > > billsec and duration are 0, but disposition is ANSWERED. > Huh?That's correct. Both of those values depend upon the call be ENDED. If the call is not yet ended, neither of those values has yet been determined. -- Tilghman _______________________________________________ --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 ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071206/a188e7cb/attachment.htm
Got it! endbeforehexten=yes Wooo! ----- Original Message ---- From: Steve Edwards <asterisk.org at sedwards.com> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Sent: Thursday, December 6, 2007 2:31:54 PM Subject: Re: [asterisk-users] CDR Function in Hangup Channel On Thu, 6 Dec 2007, Joshua Colp wrote:> There is an option which can be enabled in the general section of > cdr.conf, endbeforehexten, which will cause the values to becalcuated> before entering the h extension.A "1.4-ism?" Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 _______________________________________________ --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 ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071206/61cfa2fd/attachment.htm
Apparently Analagous Threads
- Error saving cdr at h exten in Asterisk13
- Modifying CDR values from a hangup extension in Asterisk 13
- Possible Bug (Include ${HANGUPCAUSE} in CDR)
- Asterisk 1.6.0 CDR billsec and duration not working from h extension
- Asterisk 11 - Change CDR in hangup exten [Was: CDR values changed in hangup handler not saved]