Thanks for the input. I actually did use verbose() and that is when I noticed that my path to phpagi was not right since nothing was coming through.<div><br></div><div>For return value prior to fixing phpagi path, I was getting:</div>

<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><br></div><div><b>NoOp(&quot;SIP/64.111.222.111-00000ca7&quot;,<font class="Apple-style-span" color="#FF0000"> &quot;&quot;</font>)</b></div>

<div><br></div><div>which actually is just right because if you notice the last three charecters of that line is<b> &quot;&quot;)</b>. So, when the phpagi path is correct, it looks like:  <b>&quot;415444555&quot;)</b>.</div>

<div><br></div><div>-Bruce</div></span><br><div class="gmail_quote">On Mon, Jun 14, 2010 at 6:09 PM, Steve Edwards <span dir="ltr">&lt;<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; On Mon, 2010-06-14 at 14:57 -0400, bruce bruce wrote:<br>
<br>
&gt;&gt; Carlos, Thanks a lot for getting me started. That helps a great deal.<br>
<br>
</div><div class="im">&gt;&gt; exten =&gt; _x.,1,NoOp(${EXTEN})<br>
<br>
</div>Since you&#39;re just getting started, there is an application specifically<br>
written to send output to the CLI -- verbose(). It&#39;s more &quot;obvious&quot; and it<br>
has additional functionality.<br>
<div class="im"><br>
On Mon, 14 Jun 2010, Carlos Chavez wrote:<br>
<br>
</div><div class="im">&gt; As you can see agi_extension and agi_dnid should contain the number that<br>
&gt; the user dialed.  Those are all the variables that are automatically<br>
&gt; sent to the AGI script from Asterisk.<br>
<br>
</div>agi_extension contains the extension (the bit after the equals sign) of<br>
the statement that executes the AGI application. For example,<br>
<br>
        exten = s,n,                    agi(foo)<br>
<br>
When &quot;foo&quot; examines agi_extension, it will contain &quot;s&quot;<br>
<div class="im"><br>
&gt; I do not know why you are getting the channel instead of the extension,<br>
&gt; you could try giving the extension as a parameter to the AGI script if<br>
&gt; you cannot get that from the included request variable.<br>
<br>
</div>Better to fix the really simple stuff before he gets to the complex stuff.<br>
<div class="im"><br>
--<br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards       <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>      Voice: +1-760-468-3867 PST<br>
Newline                                              Fax: +1-760-731-3000<br>
<br>
--<br>
_____________________________________________________________________<br>
</div><div><div></div><div class="h5">-- 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>
</div></div></blockquote></div><br></div>