[Serusers] Multiple SIP server

Greger V. Teigre greger at teigre.com
Mon Jul 10 12:12:46 CEST 2006


t_replicate only supports one server. You need to use forward_tcp.
g-)

Nhadie wrote:
> Hi Sir,
>
> I tired using the config the only prob i have now is that when I add this
> lines:
>
> t_replicate("10.10.10.2", "5060");
> t_replicate("10.10.10.3", "5060");
>
> it gives me error that ERROR: t_newtran: transaction already in process
>
> So I tried removing the second t_replicate and it work. but unfortunately i
> need to replicate three sip servers, is there any workaround?
>
> if I try replicating 10.10.10.1 to 10.10.10.2 then replicate 10.10.10.2 to
> 10.10.10.3 then 10.10.10.3 to 10.10.10.1, would that work?
>
>
> Tnx!
>
> Regards,
> Nhadie
>
>
> The problem may be here :
>
> "To avoid DNS lookups, don't enclose IP addresses in quotes.
> Otherwise, reverse DNS lookup can be performed to compare to host
> aliases. "
>
>
>
>
> REGISTER block @ 10.10.10.1
> ---------------------------
> if ((src_ip == 10.10.10.2) || (src_ip == 10.10.10.3)) {
> save_memory("location");
> };
> ...
> ...
> (Do what you have to do with authentication)
> ...
> ...
> if ((!src_ip == 10.10.10.2) && (src_ip == 10.10.10.3)) {
> t_replicate("10.10.10.2", "5060");
> t_replicate("10.10.10.3", "5060");
> };
>
>
> Similar block @ the other boxes...
>
>
>
> ---
> K.Marneris at otenet.gr
>
> ----- Original Message -----
> From: "Nhadie Ramos" <nhadie at tbgi.net.ph>
> To: <K.Marneris at otenet.gr>
> Cc: <serusers at iptel.org>
> Sent: 06 July 2006 05:29
> Subject: Re: [Serusers] Multiple SIP server
>
>
>   
>> 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 Servern");};
>>        save("location");
>>        t_replicate("10.10.10.1", "5060");
>> };
>>
>> if (isflagset(8)) {xlog("L_INFO", "Register: Authorized, saving
>> locationn");};
>> 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
>>     
>
> ________________________________________________
> Message sent using UebiMiau 2.7
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060710/95cae5e2/attachment.htm>


More information about the sr-users mailing list