look at the perl examples they should translate to php as all the objects and methods are the same.<br><br>Does anyone who uses ESL + scripting have any time to toss up some wiki pages?<br><br><br><div class="gmail_quote">
2009/6/15 Christian Löschenkohl <span dir="ltr"><<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i tried to<br>
i think i tried everthing and looked closely to everything in libs/esl/php (of<br>
course i build it and included the ESL.php file)<br>
<br>
but i do not get the idea in complete, does i work in a client-server way or<br>
in inbound mode like i want to (that is exactly my point)<br>
<br>
no examples are there (i would put them in the wiki if i had one)<br>
some simple code i would expect wot work, but i doesn't<br>
<br>
<?php<br>
<br>
require_once("ESL.php");<br>
$esl = new eslConnection('127.0.0.1', '8021', 'asgag243tsa');<br>
<br>
$esl->execute("setVariable", "codec_string=PCMA");<br>
$esl->execute("answer");<br>
$esl->execute("sleep", "2");<br>
$esl->execute("streamFile", "/opt/freeswitch/sounds/en/us/callie/voicemail/8000/vm-hello");<br>
$esl->execute("hangup", "16");<br>
<br>
?><br>
<br>
can you please help me, what do i get wrong?<br>
<br>
br<br>
<div class="im"><br>
<br>
On 2009-06-15 15:59, Anthony Minessale wrote:<br>
> Did you actually use ESL with the php wrapper when you tried?<br>
> You can do all those things from outbound event socket fairly easily.<br>
><br>
> That mod_php you saw, never worked it was just a stub and it didn't<br>
> actually ever work<br>
> when the guy who added it totally disappeared, I removed it from tree.<br>
><br>
> And you can still do event socket over localhost on the same box if you<br>
> so choose.<br>
><br>
> If you really want a mod_php it's entirely possible but it would<br>
> probably cost you upwards<br>
> of 5k in development costs.<br>
><br>
><br>
> 2009/6/15 Christian Löschenkohl <<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
</div>> <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>>><br>
<div><div></div><div class="h5">><br>
> hi<br>
><br>
> thank you very much for your input<br>
> i can say for me that i realy tried hard to use the event socket<br>
> library,<br>
> but untill now i can't use it like i used all the agi scripts or<br>
> even mod_perl now.<br>
><br>
> what i do most - in examples, if the server get's an incomming call<br>
><br>
> - find the right user for the number (not that easy because of did<br>
> in austria),<br>
> from database or file<br>
> - build the right dial string for the bridge application (here i<br>
> miss all the php<br>
> string functions most)<br>
> - unsing mod_php functions like setVariable, getVariable, answer,<br>
> transfer, sleep<br>
> (i don't see how to do this with the php esl)<br>
> - or i check if the number is part of a conferencing product and<br>
> build the right<br>
> conference setup<br>
><br>
> i think this would also be possible with lua and luasql, but i<br>
> developed years with<br>
> phpagi und i'm very used to php in every kind of scripting or<br>
> how-to-get-a-solution<br>
> situation (since over 10 years now).<br>
><br>
> for me in our setup it's also the highest goal to get the servers<br>
> mostly independent<br>
> of each other. i think nobody of our costumers should be unreachable<br>
> because a central<br>
> scripting/event server or also database server has gone away (as<br>
> developers this happens<br>
> more often as we would like it to :-))<br>
><br>
> do not get me wrong, freeswitch is very powerfull and in the near<br>
> future it will replace<br>
> nearly all of our asterisk servers.<br>
><br>
> in combination with php the freeswitch plattform would be heaven for me<br>
><br>
> i also thought Brian Fertig has some source written (as posted on<br>
> <a href="http://wiki.freeswitch.org/wiki/Mod_php" target="_blank">http://wiki.freeswitch.org/wiki/Mod_php</a>),<br>
> in combination of the mod_python rewrite (page was last modified in<br>
> june 2007).<br>
><br>
> br<br>
><br>
><br>
> On 2009-06-14 01:15, Nik Middleton wrote:<br>
> > I couldn’t agree more. We’re working with a group that are<br>
> developing a<br>
> > massive PHP based music application. They are experts in PHP and<br>
> MySQL<br>
> > but not in VOIP/Telephony. By tuning an abstraction layer that<br>
> uses PHP<br>
> > to communicate with the FS event socket, allows them to work on the<br>
> > areas they know best and not worry about the telephony side too much.<br>
> > We went the lua route, and don’t use the dial plan at all. My<br>
> view is<br>
> > to keep all db access and processing out of FS as much as<br>
> possible. With<br>
> > the event socket you simply don’t need to embed anything apart<br>
> from the<br>
> > essentials.<br>
> ><br>
> > We are now processing 100,000+ call setups a day (4 hours) per server<br>
> > all using php scripts to drive the application. We may well<br>
> ultimately<br>
> > use C++ instead of PHP for the event socket comms, but right now PHP<br>
> > does just fine.<br>
> ><br>
> > Regards<br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > *From:* <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>><br>
> > [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>>] *On Behalf Of<br>
> > *Michael Collins<br>
> > *Sent:* 13 June 2009 21:57<br>
> > *To:* <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
</div></div>> <mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
<div><div></div><div class="h5">> > *Subject:* Re: [Freeswitch-users] mod_php needed<br>
> ><br>
> > Perhaps you should look at controlling calls via the FreeSWITCH event<br>
> > socket instead of from the dialplan. The nice thing about the event<br>
> > socket is that your call control can happen on a separate<br>
> machine. There<br>
> > is a PHP module for the ESL (event socket library) and it would be<br>
> > relatively easy for you to get going. Here are some links to get you<br>
> > started:<br>
> ><br>
> > <a href="http://wiki.freeswitch.org/wiki/PHP_Event_Socket" target="_blank">http://wiki.freeswitch.org/wiki/PHP_Event_Socket</a><br>
> > <a href="http://wiki.freeswitch.org/wiki/Event_Socket" target="_blank">http://wiki.freeswitch.org/wiki/Event_Socket</a><br>
> ><br>
> > If you absolutely MUST have call control with scripts inside of the<br>
> > dialplan then there simply is no better choice than Lua. You can<br>
> learn<br>
> > Lua in a few hours, but getting mod_php finished and debugged<br>
> will take<br>
> > time, money, and other resources that no one seems willing to spend.<br>
> > Here is some information to consider:<br>
> ><br>
> > <a href="http://wiki.freeswitch.org/wiki/Mod_lua" target="_blank">http://wiki.freeswitch.org/wiki/Mod_lua</a><br>
> ><br>
> > Come join us on IRC (#freeswitch on <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a><br>
> <<a href="http://irc.freenode.net" target="_blank">http://irc.freenode.net</a>><br>
> > <<a href="http://irc.freenode.net" target="_blank">http://irc.freenode.net</a>>) if you want to discuss this further.<br>
> ><br>
> > -MC (IRC: mercutioviz)<br>
> ><br>
> > 2009/6/13 Christian Löschenkohl<br>
> <<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
> <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>><br>
</div></div>> > <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
<div><div></div><div class="h5">> <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>>>><br>
> ><br>
> > hello<br>
> ><br>
> > i am working for an austrian voip carrier.<br>
> > for a few months i work with freeswitch and it is simply great.<br>
> > it solves our needs in many places (high volume, flexible, stable).<br>
> > the only thing i really miss is the avalibilty of php as a call<br>
> control<br>
> > language.<br>
> > mod_php or mod_freehp are not compiling anymore and my c++<br>
> knowledge isn't<br>
> > that good (or even there :-) ).<br>
> > i know there is perl, i also implemented some applications<br>
> (conference<br>
> > system with provisioning,<br>
> > inbound call routing to our application servers, some tests as<br>
> pbx), but<br>
> > what should i say -<br>
> > perl and me aren't compatible in the end.<br>
> ><br>
> > the greatest thing for us would be that mod_php comes alive again<br>
> with<br>
> > the functional state<br>
> > of mod_perl<br>
> > (<a href="http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes" target="_blank">http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes</a>).<br>
> > there is also a bounty entry about mod_php, to pay for this would<br>
> also<br>
> > be an option and<br>
> > could be discussed.<br>
> ><br>
> > keep on with the excellent work and greetings from austria<br>
> ><br>
> > --<br>
> > Ing. Christian Löschenkohl<br>
> > Technische Leitung, Forschung& Entwicklung VoIP<br>
> ><br>
> > xpirio<br>
> > Telekommunikation& Service GmbH<br>
> > Lakeside B04<br>
> > 9020 Klagenfurt<br>
> > Austria<br>
> ><br>
> > T +43 (0) 5 77 11 - 1000<br>
> > F +43 (0) 5 77 11 - 1002<br>
> > E <a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
> <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>><br>
</div></div>> > <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
<div><div></div><div class="h5">> <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>>><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>><br>
> > <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>>><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> ><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> ><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
> --<br>
> Ing. Christian Löschenkohl<br>
> Technische Leitung, Forschung & Entwicklung VoIP<br>
><br>
> xpirio<br>
> Telekommunikation & Service GmbH<br>
> Lakeside B04<br>
> 9020 Klagenfurt<br>
> Austria<br>
><br>
> T +43 (0) 5 77 11 - 1000<br>
> F +43 (0) 5 77 11 - 1002<br>
> E <a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
> <mailto:<a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a>><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><br>
><br>
> --<br>
</div></div><div class="im">> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
</div>> <mailto:<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
<div class="im">> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
</div>> <mailto:<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> <<a href="http://irc.freenode.net" target="_blank">http://irc.freenode.net</a>> #freeswitch<br>
<div class="im">><br>
> FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
<div class="im">> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>> <<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">http://iax:guest@conference.freeswitch.org/888</a>><br>
<div class="im">> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> pstn:213-799-1400<br>
><br>
><br>
<div><div></div><div class="h5">> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
--<br>
Ing. Christian Löschenkohl<br>
Technische Leitung, Forschung & Entwicklung VoIP<br>
<br>
xpirio<br>
Telekommunikation & Service GmbH<br>
Lakeside B04<br>
9020 Klagenfurt<br>
Austria<br>
<br>
T +43 (0) 5 77 11 - 1000<br>
F +43 (0) 5 77 11 - 1002<br>
E <a href="mailto:christian.loeschenkohl@xpirio.com">christian.loeschenkohl@xpirio.com</a><br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>