Have a look at<br>
<br>
<a href="http://www.voip-info.org/wiki-Asterisk+AGI+php">http://www.voip-info.org/wiki-Asterisk+AGI+php</a><br>
<a href="http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI">http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI</a><br>
<br>
<a class="external" href="http://eder.us/projects/asterisk_php/">http://eder.us/projects/asterisk_php/</a>: PHP scripting within the dialplan<br>
<br>
You must set Asterisk variables in your perl scrip and return them back to asterisk.<br>
<br>
In perl we do it like this:<br>
print &quot;SET VARIABLE VOICEMAIL $clocal-&gt;{mailbox}\n&quot;;<br>
<br>
This is my extensions.conf for dialing 199 = Voicemail<br>
The agi script basically set the Asterisk variable VOICEMAIL.<br>
<br>
exten =&gt; 199,1,Ringing<br>
exten =&gt; 199,2,Wait(2)<br>
exten =&gt; 199,3,AGI(agistarvoicemail.agi)<br>
exten =&gt; 199,4,VoicemailMain(s${VOICEMAIL})<br>
<br>
Sorry I don't have PHP examples but the principles are the same.<br>
<br>-- <br>Are Casilla<br><a href="http://astartelecom.com">http://astartelecom.com</a> - Independent VOIP Telecoms Broker. Asterisk Consultants<br><a href="http://astbill.com">http://astbill.com</a> - Open Source Billing, Routing and Management software for Asterisk and VOIP
<br>AstBill DEMO: <a href="http://demo.astbill.com">http://demo.astbill.com</a><br>