[OpenSIPS-Users] How to send a call request to every online peer?

Rodrigo Pimenta Carvalho pimenta at inatel.br
Thu Feb 11 18:42:12 CET 2016


Hi Bogdan-Andrei.


Thank you very much for the hint.


By the way, I have tried it but without success.


It seems that the call request is only forwarded to the last subscriber, not sent to every online subscriber. See:


The code :

                       append_branch();
                       seturi("sip:5454 at 192.168.xx.yy");
                       append_branch();
                       seturi("sip:7474 at 192.168.xx.yy");
                       append_branch();
                       seturi("sip:6000 at 192.168.xx.yy");


will make the SIP INVITE be forwarded only to number 6000


And the code


                       append_branch();
                       seturi("sip:5454 at 192.168.xx.yy");
                       append_branch();
                       seturi("sip:6000 at 192.168.xx.yy");
                       append_branch();
                       seturi("sip:7474 at 192.168.xx.yy");


will make the SIP INVITE be forwarded only to number 7474. I'm trying to forward the SIP INVITE to 5454, 6000 and 7474 at same time.


What I'm missing? Can you see?


Any hint will be very helpful!

Thanks a lot.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


________________________________
De: Bogdan-Andrei Iancu <bogdan at opensips.org>
Enviado: terça-feira, 9 de fevereiro de 2016 09:08
Para: OpenSIPS users mailling list; Rodrigo Pimenta Carvalho
Assunto: Re: [OpenSIPS-Users] How to send a call request to every online peer?

Hi Rodrigo,

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.

In OpenSIPS you can easily do parallel forking by adding multiple destinations / branches by using the append_branch() function:
    http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc3
[http://www.opensips.org/pub/skins/opensips/images/logo2.jpg]<http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc3>

openSIPS | Documentation / Core Functions - 2.1<http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc3>
www.opensips.org
This section lists the all the functions exported by OpenSIPS core for script usage (to be used in opensips.cfg)



Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.02.2016 16:05, Rodrigo Pimenta Carvalho wrote:


Hi.


I have the situation:


Caller A needs call every online peer. That is, A needs call B, C, D, F...

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.


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.


What kind of functionality am I talking about, in terms of OpenSIPS?

Is it possible?

Is the code simple?




Any hint will be very helpful!

Thanks a lot.




RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160211/846dc49f/attachment.htm>


More information about the Users mailing list