Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_php needed


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
christian.loeschenkohl...
Guest





PostPosted: Sat Jun 13, 2009 2:00 pm    Post subject: [Freeswitch-users] mod_php needed Reply with quote

hello

i am working for an austrian voip carrier.
for a few months i work with freeswitch and it is simply great.
it solves our needs in many places (high volume, flexible, stable).
the only thing i really miss is the avalibilty of php as a call control language.
mod_php or mod_freehp are not compiling anymore and my c++ knowledge isn't
that good (or even there Smile ).
i know there is perl, i also implemented some applications (conference system with provisioning,
inbound call routing to our application servers, some tests as pbx), but what should i say -
perl and me aren't compatible in the end.

the greatest thing for us would be that mod_php comes alive again with the functional state
of mod_perl (http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
there is also a bounty entry about mod_php, to pay for this would also be an option and
could be discussed.

keep on with the excellent work and greetings from austria

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung& Entwicklung VoIP

xpirio
Telekommunikation& Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
msc at freeswitch.org
Guest





PostPosted: Sat Jun 13, 2009 3:58 pm    Post subject: [Freeswitch-users] mod_php needed Reply with quote

Perhaps you should look at controlling calls via the FreeSWITCH event socket instead of from the dialplan. The nice thing about the event socket is that your call control can happen on a separate machine. There is a PHP module for the ESL (event socket library) and it would be relatively easy for you to get going. Here are some links to get you started:

http://wiki.freeswitch.org/wiki/PHP_Event_Socket
http://wiki.freeswitch.org/wiki/Event_Socket

If you absolutely MUST have call control with scripts inside of the dialplan then there simply is no better choice than Lua. You can learn Lua in a few hours, but getting mod_php finished and debugged will take time, money, and other resources that no one seems willing to spend. Here is some information to consider:

http://wiki.freeswitch.org/wiki/Mod_lua

Come join us on IRC (#freeswitch on irc.freenode.net) if you want to discuss this further.

-MC (IRC: mercutioviz)


2009/6/13 Christian Löschenkohl <christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>
Quote:
hello

i am working for an austrian voip carrier.
for a few months i work with freeswitch and it is simply great.
it solves our needs in many places (high volume, flexible, stable).
the only thing i really miss is the avalibilty of php as a call control language.
mod_php or mod_freehp are not compiling anymore and my c++ knowledge isn't
that good (or even there Smile ).
i know there is perl, i also implemented some applications (conference system with provisioning,
inbound call routing to our application servers, some tests as pbx), but what should i say -
perl and me aren't compatible in the end.

the greatest thing for us would be that mod_php comes alive again with the functional state
of mod_perl (http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
there is also a bounty entry about mod_php, to pay for this would also be an option and
could be discussed.

keep on with the excellent work and greetings from austria

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung&  Entwicklung VoIP

xpirio
Telekommunikation&  Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T  +43 (0) 5 77 11 - 1000
F  +43 (0) 5 77 11 - 1002
E  christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
nik.middleton at noble...
Guest





PostPosted: Sat Jun 13, 2009 6:17 pm    Post subject: [Freeswitch-users] mod_php needed Reply with quote

I couldn’t agree more.  We’re working with a group that are developing a massive PHP based music application.  They are experts in PHP and MySQL but not in VOIP/Telephony.  By tuning an abstraction layer that uses PHP to communicate with the FS event socket, allows them to work on the areas they know best and not worry about the telephony side too much.  We went the lua route, and don’t use the dial plan at all.  My view is to keep all db access and processing out of FS as much as possible. With the event socket you simply don’t need to embed anything apart from the essentials.

We are now processing 100,000+ call setups a day (4 hours) per server all using php scripts to drive the application.  We may well ultimately use C++ instead of PHP for the event socket comms, but right now PHP does just fine.


Regards



From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins
Sent: 13 June 2009 21:57
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] mod_php needed


Perhaps you should look at controlling calls via the FreeSWITCH event socket instead of from the dialplan. The nice thing about the event socket is that your call control can happen on a separate machine. There is a PHP module for the ESL (event socket library) and it would be relatively easy for you to get going. Here are some links to get you started:

http://wiki.freeswitch.org/wiki/PHP_Event_Socket
http://wiki.freeswitch.org/wiki/Event_Socket

If you absolutely MUST have call control with scripts inside of the dialplan then there simply is no better choice than Lua. You can learn Lua in a few hours, but getting mod_php finished and debugged will take time, money, and other resources that no one seems willing to spend. Here is some information to consider:

http://wiki.freeswitch.org/wiki/Mod_lua

Come join us on IRC (#freeswitch on irc.freenode.net) if you want to discuss this further.

-MC (IRC: mercutioviz)


2009/6/13 Christian Löschenkohl <christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>
hello

i am working for an austrian voip carrier.
for a few months i work with freeswitch and it is simply great.
it solves our needs in many places (high volume, flexible, stable).
the only thing i really miss is the avalibilty of php as a call control language.
mod_php or mod_freehp are not compiling anymore and my c++ knowledge isn't
that good (or even there Smile ).
i know there is perl, i also implemented some applications (conference system with provisioning,
inbound call routing to our application servers, some tests as pbx), but what should i say -
perl and me aren't compatible in the end.

the greatest thing for us would be that mod_php comes alive again with the functional state
of mod_perl (http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
there is also a bounty entry about mod_php, to pay for this would also be an option and
could be discussed.

keep on with the excellent work and greetings from austria

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung& Entwicklung VoIP

xpirio
Telekommunikation& Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
christian.loeschenkohl...
Guest





PostPosted: Mon Jun 15, 2009 4:40 am    Post subject: [Freeswitch-users] mod_php needed Reply with quote

hi

thank you very much for your input
i can say for me that i realy tried hard to use the event socket library,
but untill now i can't use it like i used all the agi scripts or even mod_perl now.

what i do most - in examples, if the server get's an incomming call

- find the right user for the number (not that easy because of did in austria),
from database or file
- build the right dial string for the bridge application (here i miss all the php
string functions most)
- unsing mod_php functions like setVariable, getVariable, answer, transfer, sleep
(i don't see how to do this with the php esl)
- or i check if the number is part of a conferencing product and build the right
conference setup

i think this would also be possible with lua and luasql, but i developed years with
phpagi und i'm very used to php in every kind of scripting or how-to-get-a-solution
situation (since over 10 years now).

for me in our setup it's also the highest goal to get the servers mostly independent
of each other. i think nobody of our costumers should be unreachable because a central
scripting/event server or also database server has gone away (as developers this happens
more often as we would like it to Smile)

do not get me wrong, freeswitch is very powerfull and in the near future it will replace
nearly all of our asterisk servers.

in combination with php the freeswitch plattform would be heaven for me

i also thought Brian Fertig has some source written (as posted on http://wiki.freeswitch.org/wiki/Mod_php),
in combination of the mod_python rewrite (page was last modified in june 2007).

br


On 2009-06-14 01:15, Nik Middleton wrote:
Quote:
I couldn’t agree more. We’re working with a group that are developing a
massive PHP based music application. They are experts in PHP and MySQL
but not in VOIP/Telephony. By tuning an abstraction layer that uses PHP
to communicate with the FS event socket, allows them to work on the
areas they know best and not worry about the telephony side too much.
We went the lua route, and don’t use the dial plan at all. My view is
to keep all db access and processing out of FS as much as possible. With
the event socket you simply don’t need to embed anything apart from the
essentials.

We are now processing 100,000+ call setups a day (4 hours) per server
all using php scripts to drive the application. We may well ultimately
use C++ instead of PHP for the event socket comms, but right now PHP
does just fine.

Regards

------------------------------------------------------------------------

*From:* freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of
*Michael Collins
*Sent:* 13 June 2009 21:57
*To:* freeswitch-users@lists.freeswitch.org
*Subject:* Re: [Freeswitch-users] mod_php needed

Perhaps you should look at controlling calls via the FreeSWITCH event
socket instead of from the dialplan. The nice thing about the event
socket is that your call control can happen on a separate machine. There
is a PHP module for the ESL (event socket library) and it would be
relatively easy for you to get going. Here are some links to get you
started:

http://wiki.freeswitch.org/wiki/PHP_Event_Socket
http://wiki.freeswitch.org/wiki/Event_Socket

If you absolutely MUST have call control with scripts inside of the
dialplan then there simply is no better choice than Lua. You can learn
Lua in a few hours, but getting mod_php finished and debugged will take
time, money, and other resources that no one seems willing to spend.
Here is some information to consider:

http://wiki.freeswitch.org/wiki/Mod_lua

Come join us on IRC (#freeswitch on irc.freenode.net
<http://irc.freenode.net>) if you want to discuss this further.

-MC (IRC: mercutioviz)

2009/6/13 Christian Löschenkohl <christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>>

hello

i am working for an austrian voip carrier.
for a few months i work with freeswitch and it is simply great.
it solves our needs in many places (high volume, flexible, stable).
the only thing i really miss is the avalibilty of php as a call control
language.
mod_php or mod_freehp are not compiling anymore and my c++ knowledge isn't
that good (or even there Smile ).
i know there is perl, i also implemented some applications (conference
system with provisioning,
inbound call routing to our application servers, some tests as pbx), but
what should i say -
perl and me aren't compatible in the end.

the greatest thing for us would be that mod_php comes alive again with
the functional state
of mod_perl
(http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
there is also a bounty entry about mod_php, to pay for this would also
be an option and
could be discussed.

keep on with the excellent work and greetings from austria

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung& Entwicklung VoIP

xpirio
Telekommunikation& Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
<mailto:Freeswitch-users@lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Jun 15, 2009 9:01 am    Post subject: [Freeswitch-users] mod_php needed Reply with quote

Did you actually use ESL with the php wrapper when you tried?
You can do all those things from outbound event socket fairly easily.

That mod_php you saw, never worked it was just a stub and it didn't actually ever work
when the guy who added it totally disappeared, I removed it from tree.

And you can still do event socket over localhost on the same box if you so choose.

If you really want a mod_php it's entirely possible but it would probably cost you upwards
of 5k in development costs.


2009/6/15 Christian Löschenkohl <christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>
Quote:
hi

thank you very much for your input
i can say for me that i realy tried hard to use the event socket library,
but untill now i can't use it like i used all the agi scripts or even mod_perl now.

what i do most - in examples, if the server get's an incomming call

- find the right user for the number (not that easy because of did in austria),
  from database or file
- build the right dial string for the bridge application (here i miss all the php
  string functions most)
- unsing mod_php functions like setVariable, getVariable, answer, transfer, sleep
  (i don't see how to do this with the php esl)
- or i check if the number is part of a conferencing product and build the right
  conference setup

i think this would also be possible with lua and luasql, but i developed years with
phpagi und i'm very used to php in every kind of scripting or how-to-get-a-solution
situation (since over 10 years now).

for me in our setup it's also the highest goal to get the servers mostly independent
of each other. i think nobody of our costumers should be unreachable because a central
scripting/event server or also database server has gone away (as developers this happens
more often as we would like it to Smile)

do not get me wrong, freeswitch is very powerfull and in the near future it will replace
nearly all of our asterisk servers.

in combination with php the freeswitch plattform would be heaven for me

i also thought Brian Fertig has some source written (as posted on http://wiki.freeswitch.org/wiki/Mod_php),
in combination of the mod_python rewrite (page was last modified in june 2007).

br



On 2009-06-14 01:15, Nik Middleton wrote:
Quote:
I couldn’t agree more.  We’re working with a group that are developing a
massive PHP based music application.  They are experts in PHP and MySQL
but not in VOIP/Telephony.  By tuning an abstraction layer that uses PHP
to communicate with the FS event socket, allows them to work on the
areas they know best and not worry about the telephony side too much.
We went the lua route, and don’t use the dial plan at all.  My view is
to keep all db access and processing out of FS as much as possible. With
the event socket you simply don’t need to embed anything apart from the
essentials.

We are now processing 100,000+ call setups a day (4 hours) per server
all using php scripts to drive the application.  We may well ultimately
use C++ instead of PHP for the event socket comms, but right now PHP
does just fine.

Regards

------------------------------------------------------------------------

*From:* freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] *On Behalf Of
*Michael Collins
*Sent:* 13 June 2009 21:57
*To:* freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
*Subject:* Re: [Freeswitch-users] mod_php needed

Perhaps you should look at controlling calls via the FreeSWITCH event
socket instead of from the dialplan. The nice thing about the event
socket is that your call control can happen on a separate machine. There
is a PHP module for the ESL (event socket library) and it would be
relatively easy for you to get going. Here are some links to get you
started:

http://wiki.freeswitch.org/wiki/PHP_Event_Socket
http://wiki.freeswitch.org/wiki/Event_Socket

If you absolutely MUST have call control with scripts inside of the
dialplan then there simply is no better choice than Lua. You can learn
Lua in a few hours, but getting mod_php finished and debugged will take
time, money, and other resources that no one seems willing to spend.
Here is some information to consider:

http://wiki.freeswitch.org/wiki/Mod_lua

Come join us on IRC (#freeswitch on irc.freenode.net


Quote:
<http://irc.freenode.net>) if you want to discuss this further.

-MC (IRC: mercutioviz)

2009/6/13 Christian Löschenkohl <christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)

Quote:
<mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>>

Quote:

hello

i am working for an austrian voip carrier.
for a few months i work with freeswitch and it is simply great.
it solves our needs in many places (high volume, flexible, stable).
the only thing i really miss is the avalibilty of php as a call control
language.
mod_php or mod_freehp are not compiling anymore and my c++ knowledge isn't
that good (or even there Smile ).
i know there is perl, i also implemented some applications (conference
system with provisioning,
inbound call routing to our application servers, some tests as pbx), but
what should i say -
perl and me aren't compatible in the end.

the greatest thing for us would be that mod_php comes alive again with
the functional state
of mod_perl
(http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
there is also a bounty entry about mod_php, to pay for this would also
be an option and
could be discussed.

keep on with the excellent work and greetings from austria

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung& Entwicklung VoIP

xpirio
Telekommunikation& Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)


Quote:
<mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)

Quote:
<mailto:Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



Quote:
------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--

Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T  +43 (0) 5 77 11 - 1000
F  +43 (0) 5 77 11 - 1002
E  christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mitul at enterux.com
Guest





PostPosted: Mon Jun 15, 2009 9:44 am    Post subject: [Freeswitch-users] mod_php needed Reply with quote

Anthm,

I actually compiled ESL on PHP but wasnt able to figure out how to use it, too little documentation. Can any one throw more light on ESL?

Regards,Mitul Limbani,
Founder & CEO,
Enterux Solutions Pvt Ltd,
The Enterprise Linux Company(r),
http://www.enterux.com/



On 15-Jun-09, at 19:29, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:



Quote:
Did you actually use ESL with the php wrapper when you tried?
You can do all those things from outbound event socket fairly easily.

That mod_php you saw, never worked it was just a stub and it didn't actually ever work
when the guy who added it totally disappeared, I removed it from tree.

And you can still do event socket over localhost on the same box if you so choose.

If you really want a mod_php it's entirely possible but it would probably cost you upwards
of 5k in development costs.


2009/6/15 Christian Löschenkohl <[url=mailto:christian.loeschenkohl@xpirio.com]christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)[/url]>
Quote:
hi

thank you very much for your input
i can say for me that i realy tried hard to use the event socket library,
but untill now i can't use it like i used all the agi scripts or even mod_perl now.

what i do most - in examples, if the server get's an incomming call

- find the right user for the number (not that easy because of did in austria),
from database or file
- build the right dial string for the bridge application (here i miss all the php
string functions most)
- unsing mod_php functions like setVariable, getVariable, answer, transfer, sleep
(i don't see how to do this with the php esl)
- or i check if the number is part of a conferencing product and build the right
conference setup

i think this would also be possible with lua and luasql, but i developed years with
phpagi und i'm very used to php in every kind of scripting or how-to-get-a-solution
situation (since over 10 years now).

for me in our setup it's also the highest goal to get the servers mostly independent
of each other. i think nobody of our costumers should be unreachable because a central
scripting/event server or also database server has gone away (as developers this happens
more often as we would like it to Smile)

do not get me wrong, freeswitch is very powerfull and in the near future it will replace
nearly all of our asterisk servers.

in combination with php the freeswitch plattform would be heaven for me

i also thought Brian Fertig has some source written (as posted on http://wiki.freeswitch.org/wiki/Mod_php),
in combination of the mod_python rewrite (page was last modified in june 2007).

br



On 2009-06-14 01:15, Nik Middleton wrote:
Quote:
I couldn’t agree more. We’re working with a group that are developing a
massive PHP based music application. They are experts in PHP and MySQL
but not in VOIP/Telephony. By tuning an abstraction layer that uses PHP
to communicate with the FS event socket, allows them to work on the
areas they know best and not worry about the telephony side too much.
We went the lua route, and don’t use the dial plan at all. My view is
to keep all db access and processing out of FS as much as possible. With
the event socket you simply don’t need to embed anything apart from the
essentials.

We are now processing 100,000+ call setups a day (4 hours) per server
all using php scripts to drive the application. We may well ultimately
use C++ instead of PHP for the event socket comms, but right now PHP
does just fine.

Regards

------------------------------------------------------------------------

*From:* [url=mailto:freeswitch-users-bounces@lists.freeswitch.org]freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)[/url]
[mailto:[url=mailto:freeswitch-users-bounces@lists.freeswitch.org]freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)[/url]] *On Behalf Of
*Michael Collins
*Sent:* 13 June 2009 21:57
*To:* [url=mailto:freeswitch-users@lists.freeswitch.org]freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)[/url]
*Subject:* Re: [Freeswitch-users] mod_php needed

Perhaps you should look at controlling calls via the FreeSWITCH event
socket instead of from the dialplan. The nice thing about the event
socket is that your call control can happen on a separate machine. There
is a PHP module for the ESL (event socket library) and it would be
relatively easy for you to get going. Here are some links to get you
started:

http://wiki.freeswitch.org/wiki/PHP_Event_Socket
http://wiki.freeswitch.org/wiki/Event_Socket

If you absolutely MUST have call control with scripts inside of the
dialplan then there simply is no better choice than Lua. You can learn
Lua in a few hours, but getting mod_php finished and debugged will take
time, money, and other resources that no one seems willing to spend.
Here is some information to consider:

http://wiki.freeswitch.org/wiki/Mod_lua

Come join us on IRC (#freeswitch on irc.freenode.net


Quote:
<http://irc.freenode.net>) if you want to discuss this further.

-MC (IRC: mercutioviz)

2009/6/13 Christian Löschenkohl <[url=mailto:christian.loeschenkohl@xpirio.com]christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)[/url]

Quote:
<mailto:[url=mailto:christian.loeschenkohl@xpirio.com]christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)[/url]>>

Quote:

hello

i am working for an austrian voip carrier.
for a few months i work with freeswitch and it is simply great.
it solves our needs in many places (high volume, flexible, stable).
the only thing i really miss is the avalibilty of php as a call control
language.
mod_php or mod_freehp are not compiling anymore and my c++ knowledge isn't
that good (or even there Smile ).
i know there is perl, i also implemented some applications (conference
system with provisioning,
inbound call routing to our application servers, some tests as pbx), but
what should i say -
perl and me aren't compatible in the end.

the greatest thing for us would be that mod_php comes alive again with
the functional state
of mod_perl
(http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
there is also a bounty entry about mod_php, to pay for this would also
be an option and
could be discussed.

keep on with the excellent work and greetings from austria

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung& Entwicklung VoIP

xpirio
Telekommunikation& Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E [url=mailto:christian.loeschenkohl@xpirio.com]christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)[/url]


Quote:
<mailto:[url=mailto:christian.loeschenkohl@xpirio.com]christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)[/url]>


_______________________________________________
Freeswitch-users mailing list
[url=mailto:Freeswitch-users@lists.freeswitch.org]Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)[/url]

Quote:
<mailto:[url=mailto:Freeswitch-users@lists.freeswitch.org]Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)[/url]>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



Quote:
------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
[url=mailto:Freeswitch-users@lists.freeswitch.org]Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--

Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E [url=mailto:christian.loeschenkohl@xpirio.com]christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)[/url]

_______________________________________________
Freeswitch-users mailing list
[url=mailto:Freeswitch-users@lists.freeswitch.org]Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:[url=mailto:anthony_minessale@hotmail.com]anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])[/url]
GTALK/JABBER/PAYPAL:[url=mailto:anthony.minessale@gmail.com]anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])[/url]
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:[url=mailto:888@conference.freeswitch.org]888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])[/url]
guest@conference.freeswitch.org (guest@conference.freeswitch.org)/888
googletalk:[url=mailto:conf+888@conference.freeswitch.org]conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])[/url]
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
christian.loeschenkohl...
Guest





PostPosted: Mon Jun 15, 2009 9:57 am    Post subject: [Freeswitch-users] mod_php needed Reply with quote

i tried to
i think i tried everthing and looked closely to everything in libs/esl/php (of
course i build it and included the ESL.php file)

but i do not get the idea in complete, does i work in a client-server way or
in inbound mode like i want to (that is exactly my point)

no examples are there (i would put them in the wiki if i had one)
some simple code i would expect wot work, but i doesn't

<?php

require_once("ESL.php");
$esl = new eslConnection('127.0.0.1', '8021', 'asgag243tsa');

$esl->execute("setVariable", "codec_string=PCMA");
$esl->execute("answer");
$esl->execute("sleep", "2");
$esl->execute("streamFile", "/opt/freeswitch/sounds/en/us/callie/voicemail/8000/vm-hello");
$esl->execute("hangup", "16");

?>

can you please help me, what do i get wrong?

br


On 2009-06-15 15:59, Anthony Minessale wrote:
Quote:
Did you actually use ESL with the php wrapper when you tried?
You can do all those things from outbound event socket fairly easily.

That mod_php you saw, never worked it was just a stub and it didn't
actually ever work
when the guy who added it totally disappeared, I removed it from tree.

And you can still do event socket over localhost on the same box if you
so choose.

If you really want a mod_php it's entirely possible but it would
probably cost you upwards
of 5k in development costs.


2009/6/15 Christian Löschenkohl <christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>>

hi

thank you very much for your input
i can say for me that i realy tried hard to use the event socket
library,
but untill now i can't use it like i used all the agi scripts or
even mod_perl now.

what i do most - in examples, if the server get's an incomming call

- find the right user for the number (not that easy because of did
in austria),
from database or file
- build the right dial string for the bridge application (here i
miss all the php
string functions most)
- unsing mod_php functions like setVariable, getVariable, answer,
transfer, sleep
(i don't see how to do this with the php esl)
- or i check if the number is part of a conferencing product and
build the right
conference setup

i think this would also be possible with lua and luasql, but i
developed years with
phpagi und i'm very used to php in every kind of scripting or
how-to-get-a-solution
situation (since over 10 years now).

for me in our setup it's also the highest goal to get the servers
mostly independent
of each other. i think nobody of our costumers should be unreachable
because a central
scripting/event server or also database server has gone away (as
developers this happens
more often as we would like it to Smile)

do not get me wrong, freeswitch is very powerfull and in the near
future it will replace
nearly all of our asterisk servers.

in combination with php the freeswitch plattform would be heaven for me

i also thought Brian Fertig has some source written (as posted on
http://wiki.freeswitch.org/wiki/Mod_php),
in combination of the mod_python rewrite (page was last modified in
june 2007).

br


On 2009-06-14 01:15, Nik Middleton wrote:
Quote:
I couldn’t agree more. We’re working with a group that are
developing a
Quote:
massive PHP based music application. They are experts in PHP and
MySQL
Quote:
but not in VOIP/Telephony. By tuning an abstraction layer that
uses PHP
Quote:
to communicate with the FS event socket, allows them to work on the
areas they know best and not worry about the telephony side too much.
We went the lua route, and don’t use the dial plan at all. My
view is
Quote:
to keep all db access and processing out of FS as much as
possible. With
Quote:
the event socket you simply don’t need to embed anything apart
from the
Quote:
essentials.

We are now processing 100,000+ call setups a day (4 hours) per server
all using php scripts to drive the application. We may well
ultimately
Quote:
use C++ instead of PHP for the event socket comms, but right now PHP
does just fine.

Regards


------------------------------------------------------------------------
Quote:

*From:* freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org>
Quote:
[mailto:freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org>] *On Behalf Of
Quote:
*Michael Collins
*Sent:* 13 June 2009 21:57
*To:* freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org>
Quote:
*Subject:* Re: [Freeswitch-users] mod_php needed

Perhaps you should look at controlling calls via the FreeSWITCH event
socket instead of from the dialplan. The nice thing about the event
socket is that your call control can happen on a separate
machine. There
Quote:
is a PHP module for the ESL (event socket library) and it would be
relatively easy for you to get going. Here are some links to get you
started:

http://wiki.freeswitch.org/wiki/PHP_Event_Socket
http://wiki.freeswitch.org/wiki/Event_Socket

If you absolutely MUST have call control with scripts inside of the
dialplan then there simply is no better choice than Lua. You can
learn
Quote:
Lua in a few hours, but getting mod_php finished and debugged
will take
Quote:
time, money, and other resources that no one seems willing to spend.
Here is some information to consider:

http://wiki.freeswitch.org/wiki/Mod_lua

Come join us on IRC (#freeswitch on irc.freenode.net
<http://irc.freenode.net>
Quote:
<http://irc.freenode.net>) if you want to discuss this further.

-MC (IRC: mercutioviz)

2009/6/13 Christian Löschenkohl
<christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>
Quote:
<mailto:christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>>>
Quote:

hello

i am working for an austrian voip carrier.
for a few months i work with freeswitch and it is simply great.
it solves our needs in many places (high volume, flexible, stable).
the only thing i really miss is the avalibilty of php as a call
control
Quote:
language.
mod_php or mod_freehp are not compiling anymore and my c++
knowledge isn't
Quote:
that good (or even there Smile ).
i know there is perl, i also implemented some applications
(conference
Quote:
system with provisioning,
inbound call routing to our application servers, some tests as
pbx), but
Quote:
what should i say -
perl and me aren't compatible in the end.

the greatest thing for us would be that mod_php comes alive again
with
Quote:
the functional state
of mod_perl
(http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
there is also a bounty entry about mod_php, to pay for this would
also
Quote:
be an option and
could be discussed.

keep on with the excellent work and greetings from austria

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung& Entwicklung VoIP

xpirio
Telekommunikation& Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>
Quote:
<mailto:christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>>
Quote:


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
<mailto:Freeswitch-users@lists.freeswitch.org>
Quote:
<mailto:Freeswitch-users@lists.freeswitch.org
<mailto:Freeswitch-users@lists.freeswitch.org>>
Quote:
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Quote:
http://www.freeswitch.org



------------------------------------------------------------------------
Quote:

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
<mailto:Freeswitch-users@lists.freeswitch.org>
Quote:
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Quote:
http://www.freeswitch.org

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com
<mailto:christian.loeschenkohl@xpirio.com>

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
<mailto:Freeswitch-users@lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
<mailto:MSN%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
<mailto:PAYPAL%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888@conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org>
pstn:213-799-1400


------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
william.suffill at gma...
Guest





PostPosted: Mon Jun 15, 2009 10:14 am    Post subject: [Freeswitch-users] mod_php needed Reply with quote

Any suggestions of what would be a good example in PHP using ESL to document? I'll take a stab at writing something up this week but it would help to have some idea what would be useful. I've used it and got it working but rather document a generic real life example versus my unique use cases.

-- W
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Jun 15, 2009 10:21 am    Post subject: [Freeswitch-users] mod_php needed Reply with quote

look at the perl examples they should translate to php as all the objects and methods are the same.

Does anyone who uses ESL + scripting have any time to toss up some wiki pages?


2009/6/15 Christian Löschenkohl <christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>
Quote:
i tried to
i think i tried everthing and looked closely to everything in libs/esl/php (of
course i build it and included the ESL.php file)

but i do not get the idea in complete, does i work in a client-server way or
in inbound mode like i want to (that is exactly my point)

no examples are there (i would put them in the wiki if i had one)
some simple code i would expect wot work, but i doesn't

<?php

require_once("ESL.php");
$esl = new eslConnection('127.0.0.1', '8021', 'asgag243tsa');

$esl->execute("setVariable", "codec_string=PCMA");
$esl->execute("answer");
$esl->execute("sleep", "2");
$esl->execute("streamFile", "/opt/freeswitch/sounds/en/us/callie/voicemail/8000/vm-hello");
$esl->execute("hangup", "16");

?>

can you please help me, what do i get wrong?

br


On 2009-06-15 15:59, Anthony Minessale wrote:
Quote:
Did you actually use ESL with the php wrapper when you tried?
You can do all those things from outbound event socket fairly easily.

That mod_php you saw, never worked it was just a stub and it didn't
actually ever work
when the guy who added it totally disappeared, I removed it from tree.

And you can still do event socket over localhost on the same box if you
so choose.

If you really want a mod_php it's entirely possible but it would
probably cost you upwards
of 5k in development costs.


2009/6/15 Christian Löschenkohl <christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)

Quote:
<mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>>

Quote:

    hi

    thank you very much for your input
    i can say for me that i realy tried hard to use the event socket
    library,
    but untill now i can't use it like i used all the agi scripts or
    even mod_perl now.

    what i do most - in examples, if the server get's an incomming call

    - find the right user for the number (not that easy because of did
    in austria),
       from database or file
    - build the right dial string for the bridge application (here i
    miss all the php
       string functions most)
    - unsing mod_php functions like setVariable, getVariable, answer,
    transfer, sleep
       (i don't see how to do this with the php esl)
    - or i check if the number is part of a conferencing product and
    build the right
       conference setup

    i think this would also be possible with lua and luasql, but i
    developed years with
    phpagi und i'm very used to php in every kind of scripting or
    how-to-get-a-solution
    situation (since over 10 years now).

    for me in our setup it's also the highest goal to get the servers
    mostly independent
    of each other. i think nobody of our costumers should be unreachable
    because a central
    scripting/event server or also database server has gone away (as
    developers this happens
    more often as we would like it to Smile)

    do not get me wrong, freeswitch is very powerfull and in the near
    future it will replace
    nearly all of our asterisk servers.

    in combination with php the freeswitch plattform would be heaven for me

    i also thought Brian Fertig has some source written (as posted on
    http://wiki.freeswitch.org/wiki/Mod_php),
    in combination of the mod_python rewrite (page was last modified in
    june 2007).

    br


    On 2009-06-14 01:15, Nik Middleton wrote:
     > I couldn’t agree more.  We’re working with a group that are
    developing a
     > massive PHP based music application.  They are experts in PHP and
    MySQL
     > but not in VOIP/Telephony.  By tuning an abstraction layer that
    uses PHP
     > to communicate with the FS event socket, allows them to work on the
     > areas they know best and not worry about the telephony side too much.
     > We went the lua route, and don’t use the dial plan at all.  My
    view is
     > to keep all db access and processing out of FS as much as
    possible. With
     > the event socket you simply don’t need to embed anything apart
    from the
     > essentials.
     >
     > We are now processing 100,000+ call setups a day (4 hours) per server
     > all using php scripts to drive the application.  We may well
    ultimately
     > use C++ instead of PHP for the event socket comms, but right now PHP
     > does just fine.
     >
     > Regards
     >
     >
    ------------------------------------------------------------------------
     >
     > *From:* freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
    <mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)>
     > [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
    <mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)>] *On Behalf Of
     > *Michael Collins
     > *Sent:* 13 June 2009 21:57
     > *To:* freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)


Quote:
    <mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>

Quote:
     > *Subject:* Re: [Freeswitch-users] mod_php needed
     >
     > Perhaps you should look at controlling calls via the FreeSWITCH event
     > socket instead of from the dialplan. The nice thing about the event
     > socket is that your call control can happen on a separate
    machine. There
     > is a PHP module for the ESL (event socket library) and it would be
     > relatively easy for you to get going. Here are some links to get you
     > started:
     >
     > http://wiki.freeswitch.org/wiki/PHP_Event_Socket
     > http://wiki.freeswitch.org/wiki/Event_Socket
     >
     > If you absolutely MUST have call control with scripts inside of the
     > dialplan then there simply is no better choice than Lua. You can
    learn
     > Lua in a few hours, but getting mod_php finished and debugged
    will take
     > time, money, and other resources that no one seems willing to spend.
     > Here is some information to consider:
     >
     > http://wiki.freeswitch.org/wiki/Mod_lua
     >
     > Come join us on IRC (#freeswitch on irc.freenode.net
    <http://irc.freenode.net>
     > <http://irc.freenode.net>) if you want to discuss this further.
     >
     > -MC (IRC: mercutioviz)
     >
     > 2009/6/13 Christian Löschenkohl
    <christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)
    <mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>


Quote:
     > <mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)

Quote:
    <mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>>>
     >
     > hello
     >
     > i am working for an austrian voip carrier.
     > for a few months i work with freeswitch and it is simply great.
     > it solves our needs in many places (high volume, flexible, stable).
     > the only thing i really miss is the avalibilty of php as a call
    control
     > language.
     > mod_php or mod_freehp are not compiling anymore and my c++
    knowledge isn't
     > that good (or even there Smile ).
     > i know there is perl, i also implemented some applications
    (conference
     > system with provisioning,
     > inbound call routing to our application servers, some tests as
    pbx), but
     > what should i say -
     > perl and me aren't compatible in the end.
     >
     > the greatest thing for us would be that mod_php comes alive again
    with
     > the functional state
     > of mod_perl
     > (http://wiki.freeswitch.org/wiki/Mod_perl_functions_and_classes).
     > there is also a bounty entry about mod_php, to pay for this would
    also
     > be an option and
     > could be discussed.
     >
     > keep on with the excellent work and greetings from austria
     >
     > --
     > Ing. Christian Löschenkohl
     > Technische Leitung, Forschung& Entwicklung VoIP
     >
     > xpirio
     > Telekommunikation& Service GmbH
     > Lakeside B04
     > 9020 Klagenfurt
     > Austria
     >
     > T +43 (0) 5 77 11 - 1000
     > F +43 (0) 5 77 11 - 1002
     > E christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)
    <mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>


Quote:
     > <mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)

Quote:
    <mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>>
     >
     >
     > _______________________________________________
     > Freeswitch-users mailing list
     > Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
    <mailto:Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)>
     > <mailto:Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
    <mailto:Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)>>
     > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
     >
    UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
     > http://www.freeswitch.org
     >
     >
     >
    ------------------------------------------------------------------------
     >
     > _______________________________________________
     > Freeswitch-users mailing list
     > Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
    <mailto:Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)>
     > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
     >
    UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
     > http://www.freeswitch.org

    --
    Ing. Christian Löschenkohl
    Technische Leitung, Forschung & Entwicklung VoIP

    xpirio
    Telekommunikation & Service GmbH
    Lakeside B04
    9020 Klagenfurt
    Austria

    T  +43 (0) 5 77 11 - 1000
    F  +43 (0) 5 77 11 - 1002
    E christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)
    <mailto:christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)>

    _______________________________________________
    Freeswitch-users mailing list
    Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
    <mailto:Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)>
    http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
    UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
    http://www.freeswitch.org




--


Quote:
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])

Quote:
<mailto:MSN%3Aanthony_minessale@hotmail.com ([email]MSN%253Aanthony_minessale@hotmail.com[/email])>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])

Quote:
<mailto:PAYPAL%3Aanthony.minessale@gmail.com ([email]PAYPAL%253Aanthony.minessale@gmail.com[/email])>
IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])

Quote:
<mailto:sip%3A888@conference.freeswitch.org ([email]sip%253A888@conference.freeswitch.org[/email])>
iax:guest@conference.freeswitch.org/888

Quote:
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])

Quote:
<mailto:googletalk%3Aconf%2B888@conference.freeswitch.org ([email]googletalk%253Aconf%252B888@conference.freeswitch.org[/email])>
pstn:213-799-1400



Quote:
------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T  +43 (0) 5 77 11 - 1000
F  +43 (0) 5 77 11 - 1002
E  christian.loeschenkohl@xpirio.com (christian.loeschenkohl@xpirio.com)

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Jun 15, 2009 10:35 am    Post subject: [Freeswitch-users] mod_php needed Reply with quote

A good start would probably be:

example of making an inbound connection from script to FS and execute a FSAPI command, like status or show channels.
example of making an inbound connection and listening for events and printing them serialized.
example of an outbound socket connection where the call is answered, a variable is set then perhaps play one of the pre-installed files and hangup.

That last one could be demonstrated using a native socket server or by using ivrd, a little mini forking daemon
I added to listen for socket outbound calls and determine a script from channel variables and call that script assuming to use stdin/stdout as the socket. (kinda like agi's)

I think that if everyone pooled their experienced together you could probably produce a wrapper that would allow you to use some of your legacy
agi code with ESL, naturally you would have to change the names of the apps and a few other things but there is a lot to build on here.

I left this portiion of the system where it is so that the community and how it's most commonly used will drive the direction the top layer of code
takes.


On Mon, Jun 15, 2009 at 10:12 AM, William Suffill <william.suffill@gmail.com (william.suffill@gmail.com)> wrote:
Quote:
Any suggestions of what would be a good example in PHP using ESL to document? I'll take a stab at writing something up this week but it would help to have some idea what would be useful. I've used it and got it working but rather document a generic real life example versus my unique use cases.

-- W

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
christian.loeschenkohl...
Guest





PostPosted: Mon Jun 15, 2009 2:10 pm    Post subject: [Freeswitch-users] mod_php needed Reply with quote

hi

could you provide me a simple example?

- connect with esl
- get uuid
- set a variable (e.g. codec_string=PCMA)
- answer the channel
- playback a file

the script ist called from ivrd, if i get it right
in the dialplan it's

<action application="set" data="ivr_path=/opt/freeswitch/scripts/test.php"/>
<action application="socket" data="127.0.0.1:9999 full"/>

with ivrd started as ./ivrd -h 127.0.0.1 -p 9999

--------------------
in my setup $esl->api("help") works and also $esl->sendRecv("api help")
but $esl->execute() does nothing

i use version 1.0.4pre8 if it is helpfull

br


On 2009-06-15 17:12, William Suffill wrote:
Quote:
Any suggestions of what would be a good example in PHP using ESL to
document? I'll take a stab at writing something up this week but it
would help to have some idea what would be useful. I've used it and got
it working but rather document a generic real life example versus my
unique use cases.

-- W


------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

--
Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T +43 (0) 5 77 11 - 1000
F +43 (0) 5 77 11 - 1002
E christian.loeschenkohl@xpirio.com

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services