<DIV>yeah it works, we had the same requirements in our agi applications:</DIV>
<DIV> </DIV>
<DIV>#!/usr/bin/perl -w</DIV>
<DIV>use Asterisk::AGI;</DIV>
<DIV>$AGI = new Asterisk::AGI;<BR>my %input = $AGI->ReadParse();<BR>$AGI->setcallback(\&mycallback);</DIV>
<DIV> </DIV>
<DIV>$AGI->stream_file('beep');<BR>$AGI->set_extension('6');<BR>$AGI->set_priority(1);<BR><BR>Azher</DIV>
<DIV><BR><B><I>Nate Clifford <asterisknews@devminer.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Sorry for asking this question again but<BR>before I blow 100 dollars on a X100P I need to know this info:<BR><BR>So does "SET EXTENSION <NEW extension>" allow for you to set which<BR>extension the rest of the call will occur over?<BR><BR>So if a call comes into the switch and I could make the AGI script check<BR>the DID or DNIS which is really in the variable agi_dnid?<BR><BR>After that I can do a database lookup from the script and then issue the<BR>"SET EXTENSION" command to asterisk to allocate the call to the right<BR>extension if available?<BR><BR><BR><BR>I had to go to http://home.cogeco.ca /~camstuff/agi.html<BR>For the AGI command descriptions. Is there a better/more up to date<BR>site?<BR><BR>Please any info would be great..<BR><BR><BR>_______________________________________________<BR>Asterisk-Users mailing
list<BR>Asterisk-Users@lists.digium.com<BR>http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE><p><hr SIZE=1>
Do you Yahoo!?<br>
Exclusive Video Premiere - <a href="http://launch.yahoo.com/video/?1093432&fs=1&redirectURL=http://launch.yahoo.com/promos/britneyspears/">Britney Spears</a>