The reason why I introduced h priority here is that I needed to get the variable CDR(duration) for DeadAGI script which I am also running in h priority. Without h priority, I was getting correct CDR(dst) value but not correct CDR(duration) value even if I tried to run DeadAGI after Hangup().<br>
<br>Current situation is that I have to sacrifise either on CDR(duration) or on CDR(dst) for the same call. But I am sure there must be a way to get this information because afterall asterisk has this information and it writes it in the CDR after call completion. And I also need these two variables after a call is hungup so I can do something with them in my AGI acript.<br>
<br>Any idea how can this be done?<br><br>-- <br>Zeeshan A Zakaria<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c"><br>
</div></div>CDR is specifically written to only allow certain fields to be modified.<br>
dst wasn&#39;t one of them.<br>
<br>
If you get rid of the h extension entirely, it won&#39;t cause an update<br>
of the CDR. If I had to keep to the h exten (because it did other things<br>
than just try to reset a value which was set by running the h-exten),<br>
then I&#39;d get rid of the Hangup() call, because it&#39;s useless. (The<br>
h-exten<br>
is being run because of a hangup situation in the first place.)<br>
<br>
murf<br>
<font color="#888888"><br>
--<br>
Steve Murphy &lt;<a href="mailto:murf@digium.com">murf@digium.com</a>&gt;<br>
Digium<br>
</font><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all">On Mon, Jan 19, 2009 at 10:16 AM, Steve Murphy <span dir="ltr">&lt;<a href="mailto:murf@digium.com">murf@digium.com</a>&gt;</span> wrote:<br>
On Mon, 2009-01-19 at 08:45 -0500, Zeeshan Zakaria wrote:<br>
&gt; Hi everyone,<br>
&gt;<br>
&gt; In one of my contexts I run h priority in which I need to change the<br>
&gt; CDR(dst) value. But it doesn&#39;t work and in the CDR dst field is<br>
&gt; recorded as h.<br>
&gt;<br>
&gt; Context abc {<br>
&gt;<br>
&gt; 111 =&gt; {<br>
&gt; ...<br>
&gt; ...<br>
&gt; ...<br>
&gt; };<br>
&gt;<br>
&gt; h =&gt; {<br>
&gt; Set(CDR(dst)=&#39;111&#39;);<br>
&gt; NoOp(${CDR(dst)});<br>
&gt; Hangup();<br>
&gt; };<br>
&gt;<br>
&gt; };<br>
&gt;<br>
&gt; Can anybody give me an idea how to accomplish this task? In my CDR I<br>
&gt; need to see 111 in the dst field and not h.<br>