Thanks for this info. I am using Asterisk 1.4. I'll try this method and hope it'll solve my problem in h priority.<br><br><br><div class="gmail_quote">On Mon, Jan 19, 2009 at 12:18 PM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Monday 19 January 2009 09:34:43 am Zeeshan Zakaria wrote:<br>
> The reason why I introduced h priority here is that I needed to get the<br>
> variable CDR(duration) for DeadAGI script which I am also running in h<br>
> priority. Without h priority, I was getting correct CDR(dst) value but not<br>
> 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<br>
> CDR(dst) for the same call. But I am sure there must be a way to get this<br>
> information because afterall asterisk has this information and it writes it<br>
> in the CDR after call completion. And I also need these two variables after<br>
> 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>
</div>If you're using the cdr_adaptive_odbc backport (for 1.4), you can work<br>
around this limitation by using aliases:<br>
<br>
cdr_adaptive_odbc.conf:<br>
[first]<br>
dsn=mysql1<br>
alias dst => does_not_exist<br>
alias realdst => dst<br>
<br>
extensions.conf:<br>
exten => _X.,1,Set(CDR(realdst)=${EXTEN})<br>
...<br>
<br>
If you're using 1.6, there isn't a problem, because CDR(duration) will never<br>
return zero except during the first half second of a call.<br>
<br>
--<br>
<font color="#888888">Tilghman<br>
</font><div><div></div><div class="Wj3C7c"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zeeshan A Zakaria<br>