[asterisk-users] Possible Bug (Include ${HANGUPCAUSE} in CDR)
Bryant Zimmerman
BryantZ at zktech.com
Thu Dec 23 03:15:21 UTC 2010
No this is just a snip of the much larger code.
The "h" extension is runing but no values port dial function aer being written. If I do a Set(CDR(field)=Value) before the dial
The value is stored. See my other response for a larger snip of code.
Bryant
----------------------------------------
From: "Carlos Chavez" <cursor at telecomabmex.com>
Sent: Wednesday, December 22, 2010 2:46 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Possible Bug (Include ${HANGUPCAUSE} in CDR)
On Wed, 2010-12-22 at 12:42 -0500, Bryant Zimmerman wrote:
> Ok I can't get my CDR values to set from the h extension in either
> 1.6.2 or 1.8 What is wrong? Here is what I found in the 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. The default value is "no".
> endbeforehexten=no
>
> The default is set to no so why can't I store any CDR values in my h
> extension.
>
> exp..
> exten => h,n,Set(CDR(cause_code)=${HANGUPCAUSE})
> I need the cause code stored.
>
> Really what I need to be able to do is in the h quickly store some
> values to the CDR then.
> For the write of the CDR and stopping the billing seconds. Then
> continue to process some cleanup funcitons.
>
> How can I work arround asterisk not honoring the endbeforehexten=no.
> Is there some other way to achieve this?
>
> Bryant
>
> I need the cause code stored.Really what I need to be able to do is in
> the h quickly store some values to the CDR then.For the write of the
> CDR and stopping the billing seconds. Then continue to process some
> cleanup funcitons.How can I work arround asterisk not honoring the
> endbeforehexten=no.Is there some other way to achieve this?Bryant
Is the CDR line your only h line? I ask because if you only have one
priority for h then you MUST have:
exten => h,1,Set(CDR(cause_code)=${HANGUPCAUSE})
This is because the dialplan will not use n for the first priority and
thus will never run.
--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
--
_____________________________________________________________________
-- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20101222/9abf51ed/attachment.htm>
More information about the asterisk-users
mailing list