[asterisk-users] CDR Function in Hangup Channel
Steve Murphy
murf at parsetree.com
Fri Dec 7 22:58:49 CST 2007
On Thu, 2007-12-06 at 12:54 -0800, Douglas Garstang wrote:
> 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});
> };
>
Douglas--
Check out cdr.conf--
; Normally, CDR's are not closed out until after all extensions are
finished
; executing. By enabling this option, the CDR will be ended before
executing
; the "h" extension so that CDR values such as "end" and "billsec" may
be
; retrieved inside of of this extension.
;endbeforehexten=no
Try setting endbeforehexten=yes and see if you get what you need
murf
>
> ----- 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 homepage.
> _______________________________________________
> --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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3239 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20071207/1bb4d870/attachment.bin
More information about the asterisk-users
mailing list