<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Use comma,  pipe or enterprise operator to send call to multiple end points in parallel,  sequential or enterprise mode. </div><div><br></div><div>Ismail </div><div><br></div><div><br></div><div><br></div><div id="composer_signature"><div style="font-size:85%;color:#575757" dir="auto">Sent from my Samsung Galaxy smartphone.</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Danyi Lin <danyi.lin@gmail.com> </div><div>Date: 27/11/2017  7:11 p.m.  (GMT+01:00) </div><div>To: freeswitch-users@lists.freeswitch.org </div><div>Subject: [Freeswitch-users] Fork a call on registering </div><div><br></div></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">https://gist.github.com/dylin/5ef157f2bc4da8b1c0b145c03e9efcfd</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("sofia/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>
</body></html>