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't one of them.<br>
<br>
If you get rid of the h extension entirely, it won'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'd get rid of the Hangup() call, because it'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 <<a href="mailto:murf@digium.com">murf@digium.com</a>><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>
<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"><<a href="mailto:murf@digium.com">murf@digium.com</a>></span> wrote:<br>
On Mon, 2009-01-19 at 08:45 -0500, Zeeshan Zakaria wrote:<br>
> Hi everyone,<br>
><br>
> In one of my contexts I run h priority in which I need to change the<br>
> CDR(dst) value. But it doesn't work and in the CDR dst field is<br>
> recorded as h.<br>
><br>
> Context abc {<br>
><br>
> 111 => {<br>
> ...<br>
> ...<br>
> ...<br>
> };<br>
><br>
> h => {<br>
> Set(CDR(dst)='111');<br>
> NoOp(${CDR(dst)});<br>
> Hangup();<br>
> };<br>
><br>
> };<br>
><br>
> Can anybody give me an idea how to accomplish this task? In my CDR I<br>
> need to see 111 in the dst field and not h.<br>