<div dir="ltr"><div><div>I understood now, when invoking socket with async, it should start a new thread and continue to next step bridging the call.<br><br></div>Well, I have never tried such thing before, I will do some testing and when I get any result I return to you.<br><br></div>Regards,<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Valter</div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-10-13 11:06 GMT-03:00 Anis Bedhiafi <span dir="ltr">&lt;<a href="mailto:anis.bedhiafi@e-volut.io" target="_blank">anis.bedhiafi@e-volut.io</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Dear Valtar,</p>
<p dir="ltr">Thank you for your answer.</p>
<p dir="ltr">Yes I am using ESL bind for perl.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On 13 Oct 2016 2:59 pm, &quot;Valter Nogueira&quot; &lt;<a href="mailto:valter@fastway.com.br" target="_blank">valter@fastway.com.br</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When you are using  &lt;action application=&quot;socket&quot; data=&quot;<a href="http://127.0.0.1:8084" target="_blank">127.0.0.1:8084</a> async&quot;/&gt; it means you are in outbound mode (from the perspective of FS)<br><div><br>Are you using ESL bind for perl or have you written your own implementation?<br><br></div><div>After accepting a connection on 8084 port, you should issue a &quot;connect\n\n&quot; back to FS<br></div><div class="gmail_extra"><br clear="all"><div>Valter<br></div><div><br></div>
<br><div class="gmail_quote">2016-10-12 7:08 GMT-03:00 Anis Bedhiafi <span dir="ltr">&lt;<a href="mailto:anis.bedhiafi@e-volut.io" target="_blank">anis.bedhiafi@e-volut.io</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">Hi Guys,<div><br></div><div>I guess I have a little confusion here between inbound esl and outbound esl.</div><div><br></div><div><b>My Goal:</b> What I am trying to do is detect if the call is being transferred and notify the caller about it.</div><div><br></div><div><b>My Scenario:</b></div><div><br></div><div>1- I have an application based on SIP.js client that makes outbound calls via a registered SIP trunk on my Freeswitch box. I upload a list of phone numbers to call and hit Launch button.</div><div><br></div><div>2- Some calls can be transferred by the callee endpoint. I want to detect this fact.</div><div><br></div><div>3- According to my research, I can do this using Event Socket library.</div><div>4- To detect if there is a transfer, I can control the channel variable RDNIS or TRANSFER_TIME. If there is a transfer these variables are not empty.</div><div>5- Once I detect there is a transfer I want to send a NOTIFY packet to the client.</div><div><br></div><div><b>My confusion is the following:</b></div><div><b><br></b></div><div>I don&#39;t know whether to use an Outbound socket connection or an Inbound Connection.</div><div><br></div><div>I tried to do this with outbound connection as follows:</div><div><br></div><div><div><div>&lt;condition field=&quot;destination_number&quot; expression=&quot;^1703$&quot;&gt;</div><div>    &lt;action application=&quot;set&quot; data=&quot;socket_resume=true&quot;/&gt;</div><div>    &lt;action application=&quot;socket&quot; data=&quot;<a href="http://127.0.0.1:8084" target="_blank">127.0.0.1:8084</a> async&quot;/&gt; </div><div>    &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/mygateway/<wbr>$1&quot;/&gt;</div><div>&lt;/condition&gt;</div></div></div><div><br></div><div>I have a perl server listening on port 8084/tcp.</div><div>In this perl script I subscribe for CHANNEL_ANSWER Events and I filter by the call uuid.</div><div><br></div><div>The problem is when I call the socket connection, the bridge application never executes.</div><div><br></div><div>How am I supposed to listen for a specific event and make a bridge call?</div><div><br></div><div>Is what I am doing wrong. Please correct me.</div><div><br></div><div><div><div class="m_867921102261967005m_431809739644273137m_-5501540657824639526gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px">Thank you for your support.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Kind regards.</div><div dir="ltr" style="font-size:12.8px"><div><div dir="ltr"><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div></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/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></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></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></div>