Hi! Is it possible to control Asterisk with PHP? I don't think that the "extensions.conf" can solve all my problems. So I would like to make it with PHP (which I really know well). I would need a possibility to read the dialed digits and a possibility to start a call. Does something like this exist? Bye! Michael
> Does something like this exist?Dozens of different efforts are underway along these lines. http://www.voip-info.org/wiki-Asterisk+gui Greg
No nothing exists. However may I suggest PHPAGI it's a class for asterisk to interface with it. You can pull channel variables etc and do all kinds of kewl junk with it. I write all my AGI in php and execute it. But yes you in a way can control asterisk with php at the AGI level. brian -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Michael Vogel Sent: Thursday, November 18, 2004 4:24 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Controlling Asterisk from PHP? Hi! Is it possible to control Asterisk with PHP? I don't think that the "extensions.conf" can solve all my problems. So I would like to make it with PHP (which I really know well). I would need a possibility to read the dialed digits and a possibility to start a call. Does something like this exist? Bye! Michael _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
I am in the process of writing a book on the AGI structure of * but for now there are a couple examples on that site of how to implament it. I learned whatI know from voip-info.org most if not everything is there for what you may need to know. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Michael Vogel Sent: Thursday, November 18, 2004 5:29 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Controlling Asterisk from PHP? Brian C. Fertig schrieb:> > No nothing exists. However may I suggest PHPAGI it's a class for > asterisk to interface with it.So something exists ;-) Nope.. You have to create it. No COTS packages..> You can pull channel variables etc and do all kinds of kewl junk with > it. I write all my AGI in php and execute it. But yes you in a way > can control asterisk with php at the AGI level.Sounds cool. I just downloaded it. Now I only need to know, how to include it in asterisk. The documention is ... hmm ... ;-) Thanks! Michael _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Yes, Asterisk supports interfacing with many different programming languages. Basically, any program that can read from the stdin, stdout and stderr streams can interface with asterisk. You can therefore implement your own programs in any language that allows streaming from/to these streams. PHP works fine, so does C, C++, python, perl and whatnot else. Asterisk achieves this functionality via the AGI - the "Asterisk Gateway Interface". You can find more information on that under http://www.voip-info.org/wiki-Asterisk+AGI and concerning AGI commands in the dialplan, look under http://www.voip-info.org/wiki-Asterisk+cmd+AGI I am actually looking into using PHP and Asterisk together. One application that I would like to implement is for basic admin tasks, such as creating/deleting voicemail boxes from a telephone console using a login and a voice menu. I hope this helps. -- There are 10 kinds of people in the world, those who understand binary, and those who don't.