<br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 6:45 AM, Dennis <span dir="ltr">&lt;<a href="mailto:odermann@googlemail.com">odermann@googlemail.com</a>&gt;</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 &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;:<br>
<div class="Ih2E3d"><br>
&gt; event socket has the command sendmsg which lets you send a message to a<br>
&gt; specific channel. &nbsp;This can be any message but the one you are familiar with<br>
&gt; is the one that tells the session to execute an application. &nbsp;Think of it as<br>
&gt; you are sending an instant message to the channel saying, please execute<br>
&gt; this dialplan application.<br>
&gt; The caveat to this is that it will only listen to you if you have first<br>
&gt; parked the call which is a mutual agreement between you and the call that<br>
&gt; you are allowed to control it. &nbsp;The outbound event socket to your program<br>
&gt; explicitly puts the call into park and the originated sessions that execute<br>
&gt; park also fall into this category.<br>
<br>
</div>If you talk about &quot;event socket&quot;, do you mean &quot;event socket inbound&quot;,<br>
&quot;event socket outbound&quot; or both?<br>
When I use sendmsg &lt;uuid&gt; 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 &lt;uuid&gt; 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&nbsp; 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 &quot;myevents &lt;uuid&gt;&quot;<br>
it is identical to as if that was an outbound event socket from the desired channel.&nbsp; It&#39;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&#39;t fret about the difference between inbound and outbound there is no difference besides you cant control calls that <br>were not in park.&nbsp; <br><br>&nbsp;</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&#39;ll tell you what, i&#39;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&#39;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>&nbsp;
<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: &quot;you can call inbound to event_socket and once<br>
authenticated you can issue the command myevents &lt;uuid&gt;&quot;. 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>