[OpenSIPS-Users] t_replicate to multiple destinations over TLS

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Oct 12 15:49:25 EDT 2017


Hi Arsen,

Yes, you can try setting the AVP in branch route - it will have local 
(per branch only) effect, so you can do different values for each 
destination.

Best regards,

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

On 10/11/2017 05:00 PM, Arsen wrote:
> Hi guys,
>
> I am trying to implement scenario when REGISTER requests are 
> replicated to more than one server. Documentation says that each new 
> server have to be added using append_branch function.
>
> So it will look like this:
>
> append_branch("sip:reg1.domain.com <http://reg1.domain.com>")
> append_branch("sip:reg2.domain.com <http://reg2.domain.com>")
> t_replicate("sip:reg3.domain.com <http://reg3.domain.com>")
>
> The servers must communicate via TLS. All servers form a cluster and 
> share one main domain (tls default domain) for end users. For 
> intra-servers communication I use self-signed certificates and mod 
> tls_mgm.
>
> Replication only to one server works fine, I select client_domain by 
> setting $avp(tls_cli_dom) avp right before 
> t_replicate("reg2.domain.com <http://reg2.domain.com>");
>
> Now the issue: what is the best way to set client_domain avp for each 
> particular domain in the cluster so, for example, to replicate to 
> reg1.domain.com <http://reg1.domain.com> opensips will use client crt 
> for reg1, for reg2.domain.com <http://reg2.domain.com> cert for reg2 
> and so on.
>
> can I set  client_domain_avp in the branch route?
>
> branch_route[1] {
>
> if ($rd == "reg1.domain.com <http://reg1.domain.com>")
>         $avp(tls_cli_dom) = "reg1";
>     else if ($rd == "reg2.domain.com <http://reg2.domain.com>")
>         $avp(tls_cli_dom) = "reg2";
> ...
> }
>
>
> Thanks,
>
>
> Arsen Semionov
> www.eurolan.info <http://www.eurolan.info>
> cell: +442035198881
>
>
> _______________________________________________
> 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/20171012/3a27e8bd/attachment.html>


More information about the Users mailing list