<div dir="ltr">What you describe here will also force you to control the flow of the call, and if I understand you correctly you only want to monitor events etc.<div><br></div><div>In that case it&#39;s much better to use inbound ESL connection. However, you need to login, and &quot;subscribe&quot; to the events you&#39;re interested in. Read more here: <a href="http://wiki.freeswitch.org/wiki/Mod_event_socket#Inbound">http://wiki.freeswitch.org/wiki/Mod_event_socket#Inbound</a><div>
<br></div><div style>/Peter</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/29 Vincent Xia <span dir="ltr">&lt;<a href="mailto:gmangudai@gmail.com" target="_blank">gmangudai@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>can i monitor an ongoing call session by receiving freeswitch events through esl outbound socket? for example, i can have another process </div>
<div><br></div><div>monitoring the sip call sessioin by acquiring call events(answer, hangup, etc.) from freeswitch.</div>
<div><br></div><div>are the following steps ok?</div><div>1. create a socket server in a process</div><div>2. adding &lt;action application=&quot;socket&quot; data=&quot;IPaddr:port async&quot;/&gt; to the dialplan xml.</div>

<div>3. get the outbound socket connection from freeswitch</div><div>4. acquire call events</div><div><br></div><div>should i do some event subscription before step 4?</div><div><br></div><div>any response is appreciated!</div>

</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
<br></blockquote></div><br></div>