<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
t_replicate only supports one server. You need to use forward_tcp.<br>
g-)<br>
<br>
Nhadie wrote:
<blockquote cite="mid20060708090614.7000B20A0DB@mail.iptel.org"
type="cite">
<pre wrap="">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...
---
<a class="moz-txt-link-abbreviated" href="mailto:K.Marneris@otenet.gr">K.Marneris@otenet.gr</a>
----- Original Message -----
From: "Nhadie Ramos" <a class="moz-txt-link-rfc2396E" href="mailto:nhadie@tbgi.net.ph"><nhadie@tbgi.net.ph></a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:K.Marneris@otenet.gr"><K.Marneris@otenet.gr></a>
Cc: <a class="moz-txt-link-rfc2396E" href="mailto:serusers@iptel.org"><serusers@iptel.org></a>
Sent: 06 July 2006 05:29
Subject: Re: [Serusers] Multiple SIP server
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->(method=="REGISTER") {
</pre>
<blockquote type="cite">
<pre wrap="">if (!src_ip==10.10.10.1) {
if (isflagset(8)) {xlog("L_INFO", "Register: Replicating to
</pre>
</blockquote>
<pre wrap=""><!---->Main
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->wrong?
</pre>
<blockquote type="cite">
<pre wrap="">Regards,
Nhadie
</pre>
</blockquote>
<pre wrap=""><!---->
________________________________________________
Message sent using UebiMiau 2.7
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
</pre>
</blockquote>
</body>
</html>