<div dir="ltr">Just a note, &quot;plain&quot;,&quot;all&quot; <b>does</b> work, but sends ALL events (which are many many) to your app, so your app needs to filter out those it doesn&#39;t need. The best idea is to subscribe to those it needs, no more, no less.<div><br></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&amp;type=zerocontent&amp;guid=5fb43a01-a11d-46fa-9724-9687ee20becd"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div>
<br><div class="gmail_quote">On Fri, Dec 2, 2016 at 5:29 PM, Lợi Đặng <span dir="ltr">&lt;<a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">haha, that was my mistake, in inbound mode I tried con.events(&quot;plain&quot;, &quot;all&quot;) and no event capture, and that leads me to some furthur confusion. I tried con.events(&quot;plain&quot;, &quot;CHANNEL_CREATE CHANNEL_DESTROY&quot;) and things fine now, not sure why the document page say &quot;all&quot; will work. Thanks @Michael for your enthusiasm.<div>@Colin, hmm, I need a lot of information from the channel, so your solution might not work for me in this case, but mod_amqp is interesting, I might need that in the future.</div><div><br></div><div>rgds,</div><div class="gmail_extra"><div><div class="m_-7993241637638902311gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Loi Dang Thanh<br></div>Phone : +841224.735.448<br></div>Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Thu, Dec 1, 2016 at 9:59 PM, Colin Morelli <span dir="ltr">&lt;<a href="mailto:colin.morelli@gmail.com" target="_blank">colin.morelli@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Obviously this largely depends on your use case, but if you&#39;re just looking to receive events of things happening in FS (and not trying to control FS through ESL), using something like mod_amqp may be a better choice. You&#39;ll remove the complexity of having to connect to the FS instances directly, and buy the flexibility of processing the events however you want. You&#39;re also less likely to miss events due to application errors (assuming that your AMQP host is more &quot;reliable&quot; than your application).</div><div class="m_-7993241637638902311HOEnZb"><div class="m_-7993241637638902311h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 at 9:53 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you want to get those events just connect to ESL and subscribe to them.  Are you saying you want to have a connection per channel but include create events?  You would have a chicken and egg problem there but in that case what do you actually need the create event for, surely another event can be used instead.<br>
<span><br>
&gt; On Dec 1, 2016, at 5:00 AM, Lợi Đặng &lt;<a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi List, I want, but is unable to subscribe to 2 events CHANNEL_CREATE and CHANNEL_DESTROY using ESL.<br>
&gt;<br>
&gt; In a normal call caller &lt;--&gt; FS &lt;--&gt; callee, 2 CHANNEL_CREATE and 2 CHANNEL_DESTROY events fired and captured is my expectation.<br>
&gt;<br>
&gt; I achieved it easily via writing a new FS module in C. But I have some portion of python codes needed to be executed, so I tried alternative (my thought) way:<br>
&gt; - ESL inbound mode, but inbound connection is not bound to any particular channel<br>
&gt; - ESL outbound mode, but outbound connection is created from dialplan, so I guess CHANNEL_CREATE event could not be captured.<br>
&gt; - set up hangup_hook with mod_python, but python application is also called from dialplan.<br>
&gt;<br>
&gt; Please correct me if I&#39;m wrong somehow, and give me some advices for what I&#39;m trying to accomplish, since I don&#39;t want to rewrite my python code in C.<br>
&gt;<br>
<br>
<br>
</span>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div><br></div>
</div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>