[Freeswitch-users] Outbound socket PHP question

Greg Thoen gregt at cgicommunications.com
Tue Aug 4 12:12:25 PDT 2009

Hi, does anyone have an example of a simple PHP socket script that  
will listen and spawn of a process that handles the incoming call?

I understand the inbound socket and code such as this
that will let me initiate operations. It's the constantly running php  
socket program that I can't get my head around, and how it will spawn  
another php script that will be able to do things like answer the  
session, get dtmf, etc.

On Aug 2, 2009, at 6:35 PM, Michael Collins wrote:

> On Sun, Aug 2, 2009 at 12:38 PM, Nik Middleton <nik.middleton at noblesolutions.co.uk 
> > wrote:
> Hi Guys,
> I’m using an outbound socket to control calls, and it works a  
> charm.  However, what I’d like to do is send a custom event  
> regarding the call on hang-up.  The way I see things happening at  
> the moment, and I could be wrong, is that the socket is closed when  
> a hang-up occurs, so am I taking a chance trying to send the event  
> then? (try to sneak out the event before socket closure happens)   
> The other option is of course to open an inbound socket and send the  
> event, but I’d rather not do that if possible.
> Nik,
> Perhaps the "linger" event socket command will do what you need?  
> Check out this commit:
> http://lists.freeswitch.org/pipermail/freeswitch-svn/2009-January/009391.html
> Let me know if it works for you and I'll be sure to get it  
> documented properly. If you get it working I'd love to see a code  
> snippet so we can wikify this knowledge. :)
> Thanks,
> MC
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090804/e15f30b1/attachment-0002.html 

More information about the FreeSWITCH-users mailing list