<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Rodrigo,<br>
      <br>
      What you are looking for is called in SIP terminology "parallel
      forking" - a call attempt is sent to multiple destinations in the
      same time and only one can pick up the call.<br>
      <br>
      In OpenSIPS you can easily do parallel forking by adding multiple
      destinations / branches by using the append_branch() function:<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc3">http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc3</a><br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 05.02.2016 16:05, Rodrigo Pimenta
      Carvalho wrote:<br>
    </div>
    <blockquote
cite="mid:BY2PR02MB16557A0FBE6735759C94E4C7B5D20@BY2PR02MB1655.namprd02.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p><br>
        </p>
        <p>Hi.</p>
        <p><br>
        </p>
        <p>I have the situation:</p>
        <p><br>
        </p>
        <p>Caller A needs call every online peer. That is, A needs call
          B, C, D, F...</p>
        <p>The user should just push a 'call button' in his/her
          softphone and than OpenSIPs should receive only one SIP INVITE
          (let's say inviting number 9999). After receiving such INVITE,
          OpenSIPS should spread the request to every one. That is: SIP
          INVITE B, SIP INVITE C, SIP INVITE D, and so on.</p>
        <p><br>
        </p>
        <p>In addiction, If one answers the call, others should receive
          SIP BYE immediately. Because A wants to call just with one
          peer and doesn't matter who will answer first. It is not a
          conference.</p>
        <p><br>
        </p>
        <p>What kind of functionality am I talking about, in terms of
          OpenSIPS?</p>
        <p>Is it possible?</p>
        <p>Is the code simple?<br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <p>Any hint will be very helpful!</p>
        <p>Thanks a lot.<br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <div id="Signature">
          <div name="divtagdefaultwrapper"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:; margin:0">
            <div class="BodyFragment"><font size="2">
                <div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
                  Inatel Competence Center<br>
                  Software<br>
                  Ph: +55 35 3471 9200 RAMAL 979<br>
                </div>
              </font></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>