<div><br>Hello</div>
<div>&nbsp;</div>
<div>you can send it to the agi from the extensions.conf like this</div>
<div>&nbsp;</div>
<div>exten =&gt; _X.,1,DeadAGI(agi.pl,${CALLERIDNUM},${EXTEN})<br>exten =&gt; _X.,2,Hangup<br>&nbsp;</div>
<div>Then Capture it from the agi file it self.</div>
<div>&nbsp;</div>
<div>If u need more assistance, please email or msn me on <a href="mailto:rehan@rehan.com">rehan@rehan.com</a><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/23/05, <b class="gmail_sendername">Michael Stearne</b> &lt;<a href="mailto:mstearne@entermix.com">mstearne@entermix.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I am trying to determine the number that was called in via an IAX2 channel.<br><br>When using debug:<br><br>
IAX2 Debugging Enabled<br>Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX&nbsp;&nbsp;&nbsp;&nbsp; Subclass: NEW<br>&nbsp;&nbsp;Timestamp: 00013ms&nbsp;&nbsp;SCall: 00814&nbsp;&nbsp;DCall: 00000 [<a href="http://66.234.228.170:4569">66.234.228.170:4569</a>]<br>&nbsp;&nbsp;VERSION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 2
<br>&nbsp;&nbsp;CALLED NUMBER&nbsp;&nbsp; : 609XXXXXXX<br>&nbsp;&nbsp;CALLING NUMBER&nbsp;&nbsp;: 347XXXXXXX<br>&nbsp;&nbsp;CALLING NAME&nbsp;&nbsp;&nbsp;&nbsp;: 347XXXXXX<br>&nbsp;&nbsp;LANGUAGE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: en<br>&nbsp;&nbsp;USERNAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: voicepulse-in-01<br>&nbsp;&nbsp;FORMAT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 4<br>&nbsp;&nbsp;CAPABILITY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 1086<br>
&nbsp;&nbsp;ADSICPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 2<br>&nbsp;&nbsp;DATE TIME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 194420173<br><br>What is the variable that CALLED NUMBER is stored in?&nbsp;&nbsp;I would like to<br>access through php_agi.&nbsp;&nbsp;$agi-&gt;request['agi_dnid'] works for SIP<br>channels but not IAX.
<br><br>Thanks!<br>Michael<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Rehan Ahmed AllahWala<br><a href="http://www.SuperTec.com">
http://www.SuperTec.com</a> - Tommrow's Technology, Today.<br><a href="http://www.didx.net">http://www.didx.net</a> - DID Number Exchange and Peering Service.<br>