You may also be interested in a new feature added to r10110 (no we dont use binary version numbers)<br><br>you can call inbound to event_socket and once authenticated you can issue the command<br>myevents <uuid><br>where <uuid> is the uuid of some not-yet-controlled call. If all goes well you will get a positive reply and now you the behaviour will be identical to outbound event socket with async full flags and events on that one channel will begin to flow.<br>
<br><br><br><div class="gmail_quote">On Wed, Oct 22, 2008 at 11:00 AM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.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;">
You have to learn and understand the terminology and structure.<br><br>FSAPI is the name of the interface that allows the registration of arbitrary commands which can be executed by cli, xml-rpc and event socket, they are not tied to a specific channel at all.<br>
<br>APPLICATION is the name of the interface that provides applications to be executed by individual calls<br>they are designed with the concept that you have a channel and you want to make the channel do something these are the things you execute in the dialplan in the <action> tags.<br>
<br>event socket has the command sendmsg which lets you send a message to a specific channel. This can be any message but the one you are familiar with is the one that tells the session to execute an application. Think of it as you are sending an instant message to the channel saying, please execute this dialplan application.<br>
The caveat to this is that it will only listen to you if you have first parked the call which is a mutual agreement between you and the call that you are allowed to control it. The outbound event socket to your program explicitly puts the call into park and the originated sessions that execute park also fall into this category. <br>
<br>the "api" event socket command is a way to execute FSAPI commands from the socket (anything you can type from the cli like "show channels") There are several FSAPI commands that can manipulate calls but rather than sending them a message to execte some app you are specifiying the uuid to gain acces to the channel in order to carry out your command. Most of these commands begin with uuid_ so there are things like <br>
uuid_bridge, uuid_kill, uuid_transfer etc. <br><br>So in short, the answer is, yes, it's because you only started last week. Everything you want to be able to do is there for you you just have to shift your paradigm or as like Doc Brown likes to say "learn to think 4th dimensionally!" <br>
<br><br>You may find it useful to join irc <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch or use the applet on our homeage by looking for the chat login box on the right side of the page towards the bottom. There are over one hundered people in there who can offer advice etc.<div>
<div></div><div class="Wj3C7c"><br>
<br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Wed, Oct 22, 2008 at 10:23 AM, Dennis <span dir="ltr"><<a href="mailto:odermann@googlemail.com" target="_blank">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;">
Ahh, help, I found something out about my question and would like to<br>
know, if I am really in trouble...<br>
The problem is, when one does not read every single word.<br>
<br>
Till now I always worked with socket outbound and a PHP script, which<br>
forks the different processes. Everything seemed to work great (in my<br>
little test environment) and I am at the point, where I could do most<br>
if not all of the things I wanted to do with fs.<br>
<br>
Today I made an originate over api, passed the inbound uuid to the<br>
outbound and could control different things - I also could bridge both<br>
calls. Great, I thought. Then I wanted to start the next little test:<br>
Start a playfile from the outbound, so that the inbound can hear it...<br>
Negative!<br>
It seems to be impossible to send a playfile or hangup (and more) over<br>
api. Both command seem only to be available with sendmsg. But sendmsg<br>
<uuid> does not work with socket outbound, at least not from the<br>
outbound to the inbound.<br>
<br>
show application and show api tell a lot and I do know, when I stopped<br>
thinking :-( Perhaps my mistakes came up, because I started to use fs<br>
one and a half week ago - I don't know.<br>
<br>
So do I have to switch completely to socket inbound or is there a way<br>
to continue using socket outbound? Or will I perhaps find out, that I<br>
can not do some things with socket inbound, which I could do with<br>
socket outbound?<br>
<br>
In the moment I just do not know which way to go...<br>
<font color="#888888"><br>
Dennis<br>
</font><div><div></div><div><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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></div></div><div><div></div><div class="Wj3C7c">-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<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>