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

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Feb 9 12:08:56 CET 2016


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

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
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

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


More information about the Users mailing list