<div dir="ltr"><br><br><div class="gmail_quote">On Sat, Oct 18, 2008 at 3:50 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;">
<div class="Ih2E3d">>> 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>
><br>
><br>
> Good point. I fixed latest release to linger on the socket until you get<br>
> the channel_hangup<br>
> event providing you did "myevents"<br>
<br>
</div>Anthony, that is so cool! It works exactly as I whished now. As far as<br>
I can see, I get all needed events thanks to your changes. Thanks a<br>
lot for the great support!<br>
<div class="Ih2E3d"><br>
<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>
><br>
><br>
> The regular heartbeat event is for the whole system in case you are managing<br>
> 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<br>
> with media flowing through FS.<br>
<br>
</div>A per call heartbeat is exactly what I am looking for (as far, as I<br>
get it, when registering to myevents). What does "calls with media<br>
flowing" mean? What makes them different from other calls?<br>
Where can I aktivate a per call heartbeat and where can I set the interval?<br>
</blockquote><div><br>Meaning in bypass_media mode it will not work because the logic lives<br>in the media io handler. Supporting it in calls where media is point to point would require<br>some more code.<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>
<br>
A more precise question about inbound/outbound: I want to read out the<br>
events from freeswitch with my PHP-script and then tell freeswitch,<br>
what to do next. I have the feeling, that "outbound" is the way to go.<br>
But of course I also want to be able to start calls. Can I do this by<br>
using "outbound"?<br>
</blockquote><div><br>yes<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>
If I want to start a call without bridging two sides, is "originate"<br>
the command to use? I have problems to understand, when to use<br>
"sendmsg" and when to use "api". Like "bridge" works with "sendmsg"<br>
and "originate" seems only to work with the "api" command.<br>
<br>
</blockquote><div><br>sendmsg is for dialplan applications (show application) on the cli<br>api is for FSAPI interface (show api)<br><br>btw you should update again to latest as I made another tweak regarding this<br>behavior change <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>
Thanks again<br>
<div><div></div><div class="Wj3C7c">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>