<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">No this is just a snip of the much larger code.<br />
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<br />
The value is stored. See my other response for a larger snip of code. <br />
<br />
Bryant<br />
<br />
<span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><hr width="100%" size="2" align="center" />
<b>From</b>: "Carlos Chavez" <cursor@telecomabmex.com><br />
<b>Sent</b>: Wednesday, December 22, 2010 2:46 PM<br />
<b>To</b>: asterisk-users@lists.digium.com<br />
<b>Subject</b>: Re: [asterisk-users] Possible Bug (Include ${HANGUPCAUSE} in CDR)</span><br />
<br />
On Wed, 2010-12-22 at 12:42 -0500, Bryant Zimmerman wrote:<br />
> Ok I can't get my CDR values to set from the h extension in either<br />
> 1.6.2 or 1.8 What is wrong? Here is what I found in the cdr.conf<br />
> <br />
> <br />
> <br />
> ; Normally, CDR's are not closed out until after all extensions are<br />
> finished <br />
> ; executing. By enabling this option, the CDR will be ended before<br />
> executing<br />
> ; the "h" extension so that CDR values such as "end" and "billsec" may<br />
> be<br />
> ; retrieved inside of of this extension. The default value is "no".<br />
> endbeforehexten=no<br />
> <br />
> The default is set to no so why can't I store any CDR values in my h<br />
> extension.<br />
> <br />
> exp..<br />
> exten => h,n,Set(CDR(cause_code)=${HANGUPCAUSE})<br />
> I need the cause code stored.<br />
> <br />
> Really what I need to be able to do is in the h quickly store some<br />
> values to the CDR then.<br />
> For the write of the CDR and stopping the billing seconds. Then<br />
> continue to process some cleanup funcitons.<br />
> <br />
> How can I work arround asterisk not honoring the endbeforehexten=no.<br />
> Is there some other way to achieve this?<br />
> <br />
> Bryant<br />
> <br />
> I need the cause code stored.Really what I need to be able to do is in<br />
> the h quickly store some values to the CDR then.For the write of the<br />
> CDR and stopping the billing seconds. Then continue to process some<br />
> cleanup funcitons.How can I work arround asterisk not honoring the<br />
> endbeforehexten=no.Is there some other way to achieve this?Bryant <br />
<br />
Is the CDR line your only h line? I ask because if you only have one<br />
priority for h then you MUST have: <br />
<br />
exten => h,1,Set(CDR(cause_code)=${HANGUPCAUSE})<br />
<br />
This is because the dialplan will not use n for the first priority and<br />
thus will never run.<br />
<br />
-- <br />
Telecomunicaciones Abiertas de México S.A. de C.V.<br />
Carlos Chávez Prats<br />
Director de Tecnología<br />
+52-55-91169161 ext 2001<br />
<br />
--<br />
_____________________________________________________________________<br />
-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br />
New to Asterisk? Join us for a live introductory webinar every Thurs:<br />
http://www.asterisk.org/hello<br />
<br />
asterisk-users mailing list<br />
To UNSUBSCRIBE or update options visit:<br />
http://lists.digium.com/mailman/listinfo/asterisk-users<br />
<br /></span>