Hello asterisk-users, just a simple question: I'm looking for a way to execute an external script (php) on the server when an extension is dialed. I have looked around in google without results ... Tnx ! -- Best regards, Alessio mailto:alessiof@interconnessioni.it
... looks like a case for the "System" application or AGI. Check out AGI on the VoIP wiki. Iain --On Wednesday, February 18, 2004 12:41 pm +0100 Alessio Focardi <alessiof@interconnessioni.it> wrote:> Hello asterisk-users, > > just a simple question: I'm looking for a way to execute an external > script (php) on the server when an extension is dialed. > > I have looked around in google without results ... > > Tnx ! > > > > -- > Best regards, > Alessio mailto:alessiof@interconnessioni.it > > _______________________________________________ > 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 >
Tnx ! I tried System(), but documentation is very scarce ... what can I insert in the () ? a system command like System(sh myscript.sh) does not seem to work .... Again tnx ! At 18.54 18/02/04, Philipp von Klitzing wrote:>Hi! > > > just a simple question: I'm looking for a way to execute an external > > script (php) on the server when an extension is dialed. > > > > I have looked around in google without results ... > >Use AGI, EAGI or System(): > >http://www.voip-info.org/wiki- >Asterisk+AGI?PHPSESSID=aa7ef3b3958673084a41274ea0c637aa > >http://www.voip-info.org/wiki-Asterisk+cmd+System > >Cheers, PhilippAlessio Focardi