My call file was calling an AGI application, and from with the AGI, I could not get the DIALSTATUS, I will try to send it to the dialplan first, then call my AGI from the dialplan and see what happen.<br><br>Thanks for your help<br>
<br><br><div class="gmail_quote">On Tue, Feb 3, 2009 at 3:35 AM, Johansson Olle E <span dir="ltr"><<a href="mailto:oej@edvina.net">oej@edvina.net</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;">
<br>
3 feb 2009 kl. 04.33 skrev Ex Vito:<br>
<div class="Ih2E3d"><br>
> On Tue, Jan 27, 2009 at 10:21 PM, Pascal Bruno <<a href="mailto:tipascal@gmail.com">tipascal@gmail.com</a>><br>
> wrote:<br>
>> Is it possible to retrieve the DIALSTATUS variable when placing<br>
>> call through<br>
>> a call file. This variable is set when using the Dial()<br>
>> application from<br>
>> the dialplan, but I am using a call file for my current application<br>
>> and need<br>
>> to get the dialstatus.<br>
><br>
> Your call file will initiate actions defined in the dialplan and<br>
> certainly after<br>
> the triggered Dial the DIALSTATUS will be available to the dialplan.<br>
><br>
> Now the question is: "where" do you want to retreive the DIALSTATUS<br>
> to ?<br>
><br>
> If back to the OS environment (a file ?) you will need to have your<br>
> dialplan<br>
> do it for you, maybe via System(echo ${DIALSTATUS} > /tmp/file) or<br>
> something...<br>
> (NOTE: i'm not sure of the syntax of the application... check it<br>
> with "core show<br>
> application System" on the CLI)<br>
<br>
</div>A call file can either direct a call to an application or to a<br>
specific extension.<br>
Instead of sending the call to Dial, create an extension where you grab<br>
the dialstatus after the call and store it away somewhere for the<br>
application<br>
to retrieve.<br>
<br>
Or convert your app to AMI and you will get it all.<br>
<font color="#888888"><br>
/O<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>