<br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 6: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;">
2008/10/22 Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>>:<br>
<div class="Ih2E3d"><br>
> event socket has the command sendmsg which lets you send a message to a<br>
> specific channel. This can be any message but the one you are familiar with<br>
> is the one that tells the session to execute an application. Think of it as<br>
> you are sending an instant message to the channel saying, please execute<br>
> this dialplan application.<br>
> The caveat to this is that it will only listen to you if you have first<br>
> parked the call which is a mutual agreement between you and the call that<br>
> you are allowed to control it. The outbound event socket to your program<br>
> explicitly puts the call into park and the originated sessions that execute<br>
> park also fall into this category.<br>
<br>
</div>If you talk about "event socket", do you mean "event socket inbound",<br>
"event socket outbound" or both?<br>
When I use sendmsg <uuid> in socket outbound to handle the current<br>
process, everything works fine (I do not even need the uuid). But it<br>
does not help to use sendmsg <uuid> to send commands to other<br>
processes, although I know the uuid of the target.<br>
</blockquote><div><br>What messages do you want to send? Be Specific.<br>Like i said you CANNOT blindly call sendmsg on any channel that was not first parked to indicate you should be controlling it.<br>Also like I already said, if you open a new inbound event socket connection and isssue "myevents <uuid>"<br>
it is identical to as if that was an outbound event socket from the desired channel. It's new in latest trunk.<br><br>Probably if you explain *exactly* what you want to accomplish there is some simple way to do it.<br>
Don't fret about the difference between inbound and outbound there is no difference besides you cant control calls that <br>were not in park. <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>
It could be so easy (for me), if sendmsg would work to control another<br>
process and not just the current or api would be able to send the same<br>
commands as sendmsg...<br>
</blockquote><div><br>I'll tell you what, i'll lift that restriction in latest trunk and you tell me if it breaks anything or if it makes your life<br>
easier since it's not really doing much but protecting you from yourself. So with latest code you can use your one socket<br>to send messages to the other leg too.<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>
It seems as if I HAVE to use event socket inbound if I want to be able<br>
to send a playback command from one process or leg to the other.<br>
<br>
Or do I have to use event socket inbound AND socket event outbound? So<br>
that fs connects to one PHP script and another PHP script connects to<br>
the fs?<br>
You wrote: "you can call inbound to event_socket and once<br>
authenticated you can issue the command myevents <uuid>". This seems<br>
to tell me, that I have to connect to the fs, right?<br>
<div><div></div><div class="Wj3C7c"><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>