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(a)otenet.gr
----- Original Message -----
From: "Nhadie Ramos" <nhadie(a)tbgi.net.ph>
To: <K.Marneris(a)otenet.gr>
Cc: <serusers(a)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