<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Bryant Zimmerman<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, December 22, 2010
11:43 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName><br>
<b><span style='font-weight:bold'>Cc:</span></b> Asterisk Developers Mailing
List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
Possible Bug (Include ${HANGUPCAUSE} in CDR)</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Ok I can't get my CDR values to set
from the h extension in either 1.6.2 or 1.8&nbsp; What is wrong? Here is what I
found in the cdr.conf</span></font><font size=2 face=Arial><span lang=EN
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p><font size=2 face=Arial><span lang=EN style='font-size:10.0pt;font-family:
Arial'>; Normally, CDR's are not closed out until after all extensions are
finished <br>
; executing. By enabling this option, the CDR will be ended before executing<br>
; the &quot;h&quot; extension so that CDR values such as &quot;end&quot; and
&quot;billsec&quot; may be<br>
;&nbsp;retrieved inside of of this extension. The default value is
&quot;no&quot;.<br>
endbeforehexten=no<br>
<br>
The default is set to no so why can't I store any CDR values in my h extension.<br>
<br>
exp..<br>
exten =&gt; 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 values to
the CDR then.<br>
For the write of the CDR and stopping the billing seconds.&nbsp; Then 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<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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.&nbsp; 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</span></font>
<o:p></o:p></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Okay, this is a &#8220;mentally challenged&#8221;
solution, but at the h extension you have ${UNIQUEID} and ${HANGUPCAUSE}
available to you.&nbsp; Use DeadAGI to &#8220;stuff&#8221; these values into
the CDR or into another file that you can cross-reference.&nbsp; If you use the
two-file method, you would just select the matching file using uniqueid.&nbsp;
That&#8217;s what I did when I had this problem on a version of 1.4.<o:p></o:p></span></font></p>

</div>

</body>

</html>