[Asterisk-Users] RE: return Credit Time
Are
london3 at gmail.com
Sun Nov 20 03:19:27 MST 2005
Have a look at
http://www.voip-info.org/wiki-Asterisk+AGI+php
http://www.voip-info.org/tiki-index.php?page=Asterisk+AGI
http://eder.us/projects/asterisk_php/: PHP scripting within the dialplan
You must set Asterisk variables in your perl scrip and return them back to
asterisk.
In perl we do it like this:
print "SET VARIABLE VOICEMAIL $clocal->{mailbox}\n";
This is my extensions.conf for dialing 199 = Voicemail
The agi script basically set the Asterisk variable VOICEMAIL.
exten => 199,1,Ringing
exten => 199,2,Wait(2)
exten => 199,3,AGI(agistarvoicemail.agi)
exten => 199,4,VoicemailMain(s${VOICEMAIL})
Sorry I don't have PHP examples but the principles are the same.
--
Are Casilla
http://astartelecom.com - Independent VOIP Telecoms Broker. Asterisk
Consultants
http://astbill.com - Open Source Billing, Routing and Management software
for Asterisk and VOIP
AstBill DEMO: http://demo.astbill.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051120/de591c9e/attachment.htm
More information about the asterisk-users
mailing list