[Serusers] Multiple SIP server

Nhadie Ramos nhadie at tbgi.net.ph
Thu Jul 6 04:29:36 CEST 2006


Hi Sir,

i looked for sample on the net and tried it but still didn't work, 
here's the sample config:
I have 3 SIP 10.10.10.1, 10.10.10.2, 10.10.10.3

On 10.10.10.2 and 10.10.10.3 I added this under if (method=="REGISTER") {

if (!src_ip==10.10.10.1) {
        if (isflagset(8)) {xlog("L_INFO", "Register: Replicating to Main 
SIP Server\n");};
        save("location");
        t_replicate("10.10.10.1", "5060");
};

 if (isflagset(8)) {xlog("L_INFO", "Register: Authorized, saving 
location\n");};
 save_memory("location");
 break;


I did not do any changes on the main sip 10.10.10.1. What did I do wrong?
Regards,
Nhadie

Kostas Marneris wrote:
> Use t_replicate() function for REGISTER mesgs to each SIP server.
>
> Then, on the target SIP server use save_memory("location"),
> so the location information is stored only on SER's memory
> (and not on MySQL DB).
>
>
>
> Nhadie wrote:
>   
>> Hi All,
>>
>> I setup 3 SIP servers:
>>
>> sip1 10.10.10.1
>> sip2 10.10.10.2
>> sip3 10.10.10.3
>>
>> I setup the the DNS to do load balancing using SRV and also by defining
>> sip.mydomain.com IN A 10.10.10.1
>> IN A 10.10.10.2
>> In A 10.10.10.3
>>
>> the three servers are using a single database which is 10.10.10.1
>> but 10.10.10.2 and 10.10.10.3 are slaves for replicating 10.10.10.1
>>
>> My only problem is that when 1 extension is registered on one sip and the
>> other on another sip, they can't call each other. e.g. 1001 at 10.10.10.1 and
>> 1002 at 10.10.10.2 and 1003 at 10.10.10.3 wont be able to call each other.
>>
>> How can I fix this? TIA
>>
>> Regards,
>> Nhadie
>>
>> ________________________________________________
>> Message sent using UebiMiau 2.7
>>
>> _______________________________________________
>> Serusers mailing list
>> Serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>     
>
>
>   




More information about the sr-users mailing list