Re: [Freeswitch-users] mod_php needed

2009-08-08 Thread Michael Giagnocavo
You should be able to use PHP with mod_managed just fine. You'll just need 
Phalanger:
http://www.codeplex.com/Phalanger
http://www.php-compiler.net/doku.php

I don't have any use for PHP, but if anyone is interested in this, I'd be happy 
to help out if it doesn't "just work" out of the box. It should work on MS CLR 
and Mono. It also has CodeDom support, so enabling it for 
dynamic-compilation/scripting should also be easy.

As an added bonus (apart from the claims of 2x the performance), it even has 
Visual Studio support, complete with some designers: 
http://www.php-compiler.net/doku.php?id=core%3aphp-in-vs2008

-Michael

-Original Message-
From: freeswitch-users-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of William 
Suffill
Sent: Saturday, August 08, 2009 12:34 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] mod_php needed

http://wiki.freeswitch.org/wiki/PHP_ESL

Formatting could use a bit of help just exported my working document
to MediaWiki. Hope to add some more information to ESL as I continue
to do more with it.

I'm going to start a page on fs_ivrd as well. Feedback welcome.

-- W

IRC: wsuff on freenode

___
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

___
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


Re: [Freeswitch-users] mod_php needed

2009-08-08 Thread Diego Viola
Damn, looks like we need to learn some formatting =D.

I made some changes on that article to fix the formatting a bit, lets take
care of the wiki as we care about the software :).

On Sat, Aug 8, 2009 at 2:34 PM, William Suffill
wrote:

> http://wiki.freeswitch.org/wiki/PHP_ESL
>
> Formatting could use a bit of help just exported my working document
> to MediaWiki. Hope to add some more information to ESL as I continue
> to do more with it.
>
> I'm going to start a page on fs_ivrd as well. Feedback welcome.
>
> -- W
>
> IRC: wsuff on freenode
>
> ___
> 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
>
___
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


Re: [Freeswitch-users] mod_php needed

2009-08-08 Thread William Suffill
http://wiki.freeswitch.org/wiki/PHP_ESL

Formatting could use a bit of help just exported my working document
to MediaWiki. Hope to add some more information to ESL as I continue
to do more with it.

I'm going to start a page on fs_ivrd as well. Feedback welcome.

-- W

IRC: wsuff on freenode

___
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


Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread Christian Löschenkohl
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




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


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:
> 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.loeschenk...@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


Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread Anthony Minessale
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  wrote:

> 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
>
>


-- 
Anthony Minessale II

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

AIM: anthm
MSN:anthony_miness...@hotmail.com 
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org 
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@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


Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread William Suffill
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


Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread Anthony Minessale
t; 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-boun...@lists.freeswitch.org
> > <mailto:freeswitch-users-boun...@lists.freeswitch.org>
> >  > [mailto:freeswitch-users-boun...@lists.freeswitch.org
> > <mailto:freeswitch-users-boun...@lists.freeswitch.org>] *On Behalf
> Of
> >  > *Michael Collins
> >  > *Sent:* 13 June 2009 21:57
> >  > *To:* freeswitch-users@lists.freeswitch.org
> > <mailto: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>
> >  > <http://irc.freenode.net>) if you want to discuss this further.
> >  >
> >  > -MC (IRC: mercutioviz)
> >  >
> >  > 2009/6/13 Christian Löschenkohl
> >  > <mailto:christian.loeschenk...@xpirio.com>
> >  > <mailto:christian.loeschenk...@xpirio.com
> > <mailto:christian.loeschenk...@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 :-) ).
> >  > 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
> >  >

Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread Christian Löschenkohl
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

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:
> 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  <mailto:christian.loeschenk...@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 :-))
>
> 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-boun...@lists.freeswitch.org
> <mailto:freeswitch-users-boun...@lists.freeswitch.org>
> 

Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread Mitul Limbani

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  
 wrote:



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 
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 :-))

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 vie 
w 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 fro 
m 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-boun...@lists.freeswitch.org
> [mailto:freeswitch-users-boun...@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)
>
> 200

Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread Anthony Minessale
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 

> 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 :-))
>
> 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-boun...@lists.freeswitch.org
> > [mailto:freeswitch-users-boun...@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 fur

Re: [Freeswitch-users] mod_php needed

2009-06-15 Thread Christian Löschenkohl
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 :-))

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-boun...@lists.freeswitch.org
> [mailto:freeswitch-users-boun...@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  <mailto:christian.loeschenk...@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 :-) ).
> 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_function

Re: [Freeswitch-users] mod_php needed

2009-06-13 Thread Nik Middleton
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-boun...@lists.freeswitch.org 
[mailto:freeswitch-users-boun...@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 

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 :-) ).
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.loeschenk...@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

 

___
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


Re: [Freeswitch-users] mod_php needed

2009-06-13 Thread Michael Collins
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 

> 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 :-) ).
> 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.loeschenk...@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
>
___
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


[Freeswitch-users] mod_php needed

2009-06-13 Thread Christian Löschenkohl
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 :-) ).
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.loeschenk...@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