<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 28, 2017 at 1:33 AM, Jurijs Ivolga <span dir="ltr"><<a href="mailto:jurijs.ivolga@gmail.com" target="_blank">jurijs.ivolga@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div>I believe what you need can be achieved using
 custom events in freeswitch and lua scripts. So if you don't get a 
cancel you can trigger script on answer event and hangup a call to 
specific device. So if dev1 answer you can hangup call to dev2:<br><br><a href="https://wiki.freeswitch.org/wiki/Variable_api_on_answer" target="_blank">https://wiki.freeswitch.org/<wbr>wiki/Variable_api_on_answer</a><br><br></div>With kind regards,</div><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_-4399383382890374078gmail_signature"><div dir="ltr">Jurijs<br></div></div></div><div><div class="gmail-h5">
<br><div class="gmail_quote">On Tue, Nov 28, 2017 at 1:48 AM, Srigo Kanapathipillai <span dir="ltr"><<a href="mailto:ksrigo@gmail.com" target="_blank">ksrigo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Hi Danyi,</div><div id="gmail-m_-4399383382890374078m_467381075075561861AppleMailSignature"><br></div><div id="gmail-m_-4399383382890374078m_467381075075561861AppleMailSignature">You can achieve it using Opensips (and freeswitch) (<a href="https://blog.opensips.org/2017/03/10/advanced-sip-scenarios-with-event-based-routing/" target="_blank">https://blog.opensips.org/201<wbr>7/03/10/advanced-sip-scenarios<wbr>-with-event-based-routing/</a>) See the push notification example at the bottom.</div></div></blockquote></div></div></div></div></blockquote><div><br></div><div>Thanks a lot Srigo, that's exactly what I expected.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div><div class="gmail-h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div id="gmail-m_-4399383382890374078m_467381075075561861AppleMailSignature"><br></div><div id="gmail-m_-4399383382890374078m_467381075075561861AppleMailSignature">Srigo<span style="color:rgb(34,34,34)"> </span></div></div></blockquote></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div><div class="gmail-h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div id="gmail-m_-4399383382890374078m_467381075075561861AppleMailSignature"><br>Sent from my iPhone</div></div></blockquote></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div><div class="gmail-h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail-m_-4399383382890374078h5"><div><br>On 27 Nov 2017, at 23:50, Michael Jerris <<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>> wrote:<br><br></div><blockquote type="cite"><div>We have no plans to add it but if you are interested in sponsoring such an addition you could contact our professional services group at <a href="mailto:consulting@freeswitch.com" target="_blank">consulting@freeswitch.com</a> to discuss.<div><br></div><div><br><div><blockquote type="cite"><div>On Nov 27, 2017, at 4:12 PM, Danyi Lin <<a href="mailto:danyi.lin@gmail.com" target="_blank">danyi.lin@gmail.com</a>> wrote:</div><br class="gmail-m_-4399383382890374078m_467381075075561861Apple-interchange-newline"><div><div dir="ltr">Thanks for replying.<div><br></div><div>Michael, Is there any plan to add such feature into FreeSWITCH?</div><div><br></div><div>It will be very useful for mobile app, because usually mobile (iOS) app can't keep registration alive all the time.</div><div>Intercepting call could solve my problem, but not as straight forward as this way.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 27, 2017 at 3:49 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">We do not support such a feature at this time.<div><div class="gmail-m_-4399383382890374078m_467381075075561861h5"><div><br><div><blockquote type="cite"><div>On Nov 27, 2017, at 1:11 PM, Danyi Lin <<a href="mailto:danyi.lin@gmail.com" target="_blank">danyi.lin@gmail.com</a>> wrote:</div><br class="gmail-m_-4399383382890374078m_467381075075561861m_6343381506286931918Apple-interchange-newline"><div><div dir="ltr"><font face="monospace, monospace">How can I fork a call to a new registered endpoint?<br><br>Here is the scenario:<br>Callee has 2 devices: dev1 online (registered), dev2 offline<br><br>1. An incoming call to the user, dev1 is ringing<br>2. dev2 register now<br>3. fork call to dev2<br><br>Call flow as below (<a href="https://gist.github.com/dylin/5ef157f2bc4da8b1c0b145c03e9efcfd" target="_blank">https://gist.github.com/dylin<wbr>/5ef157f2bc4da8b1c0b145c03e9ef<wbr>cfd</a>):</font><div><font face="monospace, monospace"><br>  Caller    |     FS      |    dev1     |   dev2<br>-----------   -----------   -----------   -----------<br>     |  INVITE     |            |            |<br>     |------------>|            |            |<br>     |             |            |            |<br>     |             | INVITE     |            |<br>     |             |----------->|            |<br>     |             |            |            |<br>     |             |            | REGISTER   |<br>     |             |<-----------+------------|<br>     |             |            |            |<br>     |             | INVITE     |            |<br>     |             |------------+----------->|<br>     |             |            |            |<br><br>I tried </font><span style="font-family:monospace,monospace">freeswitch.Session("sofi<wbr>a/to/dev2", lega) to originate call to dev2,</span><div><span style="font-family:monospace,monospace">and dev2 got call. However if dev1 answered call, it won't cancel INVITE</span></div><div><font face="monospace, monospace">to dev2 as a normal fork.<br></font><div><div><font face="monospace, monospace"><br></font></div><div><div><br></div><div><div><font face="monospace, monospace">Any suggestions are welcome.<br><br>Best regards,<br>Danyi Lin</font><br></div></div></div></div></div></div></div></div></blockquote></div></div></div></div></div></blockquote></div></div></div></blockquote></div><br></div></div></blockquote></div></div><span><blockquote type="cite"><div><span>______________________________<wbr>______________________________<wbr>_____________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions<wbr>.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.o<wbr>rg</a></span><br><span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></span></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>
<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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Cheers,<br>Danyi Lin</div><div><div><br></div></div></div></div></div></div></div></div>
</div></div>