Can you also paste the Asterisk Console logs around the part where AGI is dialing and after the dialing part ! make sure AGi debug is enabled as well.<div><br><br><div class="gmail_quote">On Fri, Dec 2, 2011 at 4:24 PM, Kamlesh Kumar <span dir="ltr"><<a href="mailto:kamlesh_kmr@hotmail.com">kamlesh_kmr@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">
Hello,<br>
<br>
in /etc/extension.conf<br>
<br>
[privoip]<br>exten => _00X.,n,AGI(isdcall.php)<br><br>
Regards,<br>
Kamlesh<br> <br>
<div>
<hr>
Date: Fri, 2 Dec 2011 16:16:27 +0500<br>From: <a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a><br>To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-users] DIALSTATUS Values<div><div class="h5"><br><br>Hi,
<div>How are you calling this AGI in your dialplan !!? </div>
<div><br></div>
<div>Regards,</div>
<div>Sammy.<br><br>
<div>On Fri, Dec 2, 2011 at 3:18 PM, Kamlesh Kumar <span dir="ltr"><<a href="mailto:kamlesh_kmr@hotmail.com" target="_blank">kamlesh_kmr@hotmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;PADDING-LEFT:1ex">
<div>
<div dir="ltr">Hello,<br> <br>I tried to search the answer of my problem but unable to get resolution so sending to you guys. I'm using asterisk 1.6.2.7 and writing the AGI scripts using PHP. I'm unable to retrieve the DIALSTATUS value, during execution of AGI script, I get empty value.<br>
<br>Extracts from AGI Script:<br> <br>#!/usr/bin/php -q<br>#!/bin/bash<br><?php<br>include_once ("phpagi-2.14/phpagi.php");<br>$agi = new AGI();<br><br>--------some codes for dial out------------<br> <br> $dialstatus=$agi->get_variable(DIALSTATUS);<br>
$dd=$dialstatus["data"];<br> $agi->verbose("Status".$dd);<br> <br>In AGI debug, I get: <br><SIP/10036-00000096>AGI Tx >> agi_channel: SIP/10036-00000096<br><SIP/10036-00000096>AGI Tx >> agi_language: en<br>
<SIP/10036-00000096>AGI Tx >> agi_type: SIP<br><SIP/10036-00000096>AGI Tx >> agi_uniqueid: 1322848927.172<br><SIP/10036-00000096>AGI Tx >> agi_version: 1.6.2.7<br><SIP/10036-00000096>AGI Tx >> agi_callerid: 10036<br>
<SIP/10036-00000096>AGI Tx >> agi_calleridname: 10036<br><SIP/10036-00000096>AGI Tx >> agi_dnid: <a>0012127773456</a><br><SIP/10036-00000096>AGI Tx >> agi_rdnis: unknown<br><SIP/10036-00000096>AGI Tx >> agi_context: privoip<br>
<SIP/10036-00000096>AGI Tx >> agi_extension: <a>0012127773456</a><br><strong><SIP/10036-00000096>AGI Rx << GET VARIABLE DIALSTATUS<br><SIP/10036-00000096>AGI Tx >> 200 result=1 (ANSWER)<br>
<SIP/10036-00000096>AGI Rx << VERBOSE "Status" 1<br><SIP/10036-00000096>AGI Tx >> 200 result=1</strong><br><strong></strong> <br>Please help me in this.<br> <br>Thanks,<br>Kamlesh<br><strong></strong> <br>
<strong> <br><br><br></strong></div></div><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></div><br>-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs: <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a> asterisk-users mailing list To UNSUBSCRIBE or update options visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div>
</div></div>                                            </div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></div>