[OpenSIPS-Users] Permanent registration replication

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Feb 19 11:51:04 CET 2016


Hi Flavio,

By different IPs, you mean in the socket the contact record, right ? If 
you want to have different sockets on each server, maybe it is not a 
"replication" anymore - the basic concept of replication is to "copy" 
something on different servers. But you want different records, not the 
same record.

A really crazy idea is to use the AOR_INSERT event in usrloc (see 
http://www.opensips.org/html/docs/modules/1.11.x/usrloc.html#id295241) 
to trigger a script route when the permanent registration is added (of 
course you have to check the AOR to see if is a permanent or not, based 
on username, if possible). And from event route, use t_new_request (see 
http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id295310) to 
build a REGISTER to go to the other servers, as a replicated register.
As said, this ^^^ is a bit SiFi :(

IMHO, you should stick to the idea of inserting the record on each 
machine, via MI . You mentioned some index issue - could you detail on 
this ?

Regards,

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

On 18.02.2016 00:19, Flavio Goncalves wrote:
> Hi Bogdan ,
>
> The binary replication does not support different IP addresses. There 
> is no NAT in the implementation, so the idea is to replicate and set 
> the local addres on each site.
>
> Regards,
>
> Flavio E. Goncalves
> CEO - V.Office Redes e Telecomunicações Ltda.
> Phone: +55 48-3332-8590
> Skype:flaviogoncalves1
> Linkedin: www.linkedin.com/in/flavioegoncalves 
> <http://www.linkedin.com/in/flavioegoncalves>
> Twitter: www.twitter.com/asteriskguide 
> <http://www.twitter.com/asteriskguide>
>
>
> 2016-02-17 17:48 GMT-02:00 Bogdan-Andrei Iancu <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>>:
>
>     Hi Flavio,
>
>     I haven;t tried, but MI registration may get replicated via BIN -
>     have you tried to set the BIN replication for usrloc (instead of
>     t_replicate) ?
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>     OpenSIPS Founder and Developer
>     http://www.opensips-solutions.com
>
>     On 17.02.2016 16:53, Flavio Goncalves wrote:
>>     Hi,
>>
>>     Does anyone has tried to replicate permanent registrations? For
>>     normal registrations is possible to use t_replicate, but for
>>     permanent inserted over MI, I don't know.
>>
>>     Inserting in two proxies at the same time using MI sometimes
>>     generate duplicate index and abort the process and in some cases
>>     remove all permanent records (using the same DB), I have tried.
>>
>>     Any clue helps,
>>
>>     Flavio E. Goncalves
>>
>>
>>
>>     _______________________________________________
>>     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/20160219/160ab33b/attachment.htm>


More information about the Users mailing list