<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Here it is:<BR>
&nbsp;<BR>
&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_request: isdcall.php<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_channel: SIP/10036-000000a8<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_language: en<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_type: SIP<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_uniqueid: 1322853473.198<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_version: 1.6.2.7<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_callerid: 10036<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_calleridname: 10036<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_callingpres: 0<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_callingani2: 0<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_callington: 0<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_callingtns: 0<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_dnid: 0012127773456<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_rdnis: unknown<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_context: privoip<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_extension: 0012127773456<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_priority: 3<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_enhanced: 0.0<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_accountcode: 10036<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; agi_threadid: -1220478064<BR>&lt;SIP/10036-000000a8&gt;AGI Rx &lt;&lt; VERBOSE "10036" 1<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=1<BR>&lt;SIP/10036-000000a8&gt;AGI Rx &lt;&lt; VERBOSE "0012127773456" 1<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=1<BR>&lt;SIP/10036-000000a8&gt;AGI Rx &lt;&lt; VERBOSE "10036" 1<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=1<BR>&lt;SIP/10036-000000a8&gt;AGI Rx &lt;&lt; VERBOSE "Dialling........" 1<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=1<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=1<BR><STRONG>&lt;SIP/10036-000000a8&gt;AGI Rx &lt;&lt; EXEC Dial SIP/202.89.78.21/12127773456</STRONG><BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=-1<BR>&lt;SIP/10036-000000a8&gt;AGI Rx &lt;&lt; GET VARIABLE DIALSTATUS<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=1 (ANSWER)<BR>&lt;SIP/10036-000000a8&gt;AGI Rx &lt;&lt; VERBOSE "Status" 1<BR>&lt;SIP/10036-000000a8&gt;AGI Tx &gt;&gt; 200 result=1<BR>&nbsp;<BR>
Regards,<BR>
Kamlesh<BR>
&nbsp;<BR>
&nbsp;<BR>
<DIV>

<HR id=stopSpelling>
Date: Fri, 2 Dec 2011 16:26:50 +0500<BR>From: govoiper@gmail.com<BR>To: asterisk-users@lists.digium.com<BR>Subject: Re: [asterisk-users] DIALSTATUS Values<BR><BR>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=ecxgmail_quote>On Fri, Dec 2, 2011 at 4:24 PM, Kamlesh Kumar <SPAN dir=ltr>&lt;<A href="mailto:kamlesh_kmr@hotmail.com">kamlesh_kmr@hotmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex" class=ecxgmail_quote>
<DIV>
<DIV dir=ltr>Hello,<BR>&nbsp;<BR>in /etc/extension.conf<BR>&nbsp;<BR>[privoip]<BR>exten =&gt; _00X.,n,AGI(isdcall.php)<BR><BR>Regards,<BR>Kamlesh<BR>&nbsp;<BR>
<DIV>
<HR>
Date: Fri, 2 Dec 2011 16:16:27 +0500<BR>From: <A href="mailto:govoiper@gmail.com">govoiper@gmail.com</A><BR>To: <A href="mailto:asterisk-users@lists.digium.com">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 !!?&nbsp;</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>&lt;<A href="mailto:kamlesh_kmr@hotmail.com">kamlesh_kmr@hotmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; PADDING-LEFT: 1ex">
<DIV>
<DIV dir=ltr>Hello,<BR>&nbsp;<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>&nbsp;<BR>Extracts from AGI Script:<BR>&nbsp;<BR>#!/usr/bin/php -q<BR>#!/bin/bash<BR>&lt;?php<BR>include_once ("phpagi-2.14/phpagi.php");<BR>$agi = new AGI();<BR><BR>--------some codes for dial out------------<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dialstatus=$agi-&gt;get_variable(DIALSTATUS);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dd=$dialstatus["data"];<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $agi-&gt;verbose("Status".$dd);<BR>&nbsp;<BR>In AGI debug, I get: <BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_channel: SIP/10036-00000096<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_language: en<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_type: SIP<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_uniqueid: 1322848927.172<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_version: 1.6.2.7<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_callerid: 10036<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_calleridname: 10036<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_dnid: <A target=_blank>0012127773456</A><BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_rdnis: unknown<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_context: privoip<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; agi_extension: <A target=_blank>0012127773456</A><BR><STRONG>&lt;SIP/10036-00000096&gt;AGI Rx &lt;&lt; GET VARIABLE DIALSTATUS<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; 200 result=1 (ANSWER)<BR>&lt;SIP/10036-00000096&gt;AGI Rx &lt;&lt; VERBOSE "Status" 1<BR>&lt;SIP/10036-00000096&gt;AGI Tx &gt;&gt; 200 result=1</STRONG><BR><STRONG></STRONG>&nbsp;<BR>Please help me in this.<BR>&nbsp;<BR>Thanks,<BR>Kamlesh<BR><STRONG></STRONG>&nbsp;<BR><STRONG>&nbsp;<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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>&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></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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>&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></DIV><BR>-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users</DIV>                                               </div></body>
</html>