[Freeswitch-users] Fs event socket inbound or outbound?
Michael Collins
msc at freeswitch.org
Tue Nov 8 21:59:04 MSK 2011
The modes are both "event socket" and therefore quite scalable. The primary
difference is in how the connection gets started.
With outbound event socket, there is always a call involved. A call comes
in to FreeSWITCH and somewhere in the dialplan there is a call to the
socket application. At that point FreeSWITCH makes an "outbound" connection
to your application which is listening for connections on the IP:Port in
question.
With inbound event socket, FreeSWITCH is the one sitting there waiting for
your application to connect, i.e. an "inbound" socket connection from your
program. Once your program is connected it can do pretty much whatever you
want: show channels to see what's going on, originate to create new
channels, fifo list, conference list, etc. etc. BTW, fs_cli is a great
example of an inbound event socket application. fs_cli literally connects
to FS via event socket.
Hope this helps.
-MC
On Tue, Nov 8, 2011 at 10:53 AM, envelopes envelopes
<sunwood360 at gmail.com>wrote:
> Both modes can send command and receive events. Which mode is more
> scalable?
> And pros vs cons of each mode.
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111108/4951aa7a/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list