<div dir="ltr"><br><div class="gmail_quote">On Fri, Oct 17, 2008 at 7:45 AM, Dennis <span dir="ltr"><<a href="mailto:odermann@googlemail.com">odermann@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I am new to freeswitch and found out quite a lot of things the past<br>
days. But there are still many questions left, which I can't figure<br>
out without some help.<br>
<br>
I want to use freeswitch for a project, where freeswitch should<br>
communicate with PHP-scripts and receive the messages to different<br>
events.<br>
I was told to use socket and found some quite helpful PHP-scripts in<br>
this mailing list. One was for using socket outbound, one was for<br>
socket inbound.<br>
<br>
I would like to ask, which direction is the best oder most reliable?<br>
<br>
When using socket outbound, freeswitch connects to the PHP-script, the<br>
PHP-script forks and is registered to "myevents" (events all seems to<br>
give me all events from all connections).<br>
One of the problems I have with "outbound" is, that I won't get all<br>
events. For example I do not get "hangup", because the socket<br>
connection seems to die, before freeswitch sends the last command when<br>
hanging up. With "ringing" the problem seems to be the same.<br>
I only get a "hangup", when I register to "events all" and have to<br>
active calls. When one of the two calls hangs up, i can see it by<br>
printing out all events in the PHP-script.<br>
</blockquote><div><br><br>Good point. I fixed latest release to linger on the socket until you get the channel_hangup<br>
event providing you did "myevents" <br>
<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
When using socket inbound, the PHP-script does not fork and seems to<br>
handle all events for all calls. What, if a request hangs for one<br>
call? Do all the other calls have to wait, till the other call is<br>
killed?<br>
</blockquote><div><br>events are not connected to channels at all the events are in their own backend. and each<br>event_socket connection has a dedicated thread and it's own copy of all the events.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Another thing ist the events "heartbeat". Will I get the "heartbeat"<br>
for every single call or just one heartbeat for all calls?<br>
</blockquote><div><br><br>The regular heartbeat event is for the whole system in case you are managing a connection<br>to several boxes or you want to be sure the box is up.<br><br>There is a per call heartbeat you can enable at a desired interval for calls with media<br>
flowing through FS.<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I feel that I am missing some basic knowledge about sockets and<br>
freeswitch. Could someone help to find the right way, please?<br>
<br>
Thanks and kind regards<br>
Dennis<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>