Thanks Zeus.
The problem is solved. In the Contact address I had the port well i.e.
user@testdomain.com:5060. Once I removed the port, the SER did do SRV
lookup.
Just to learn from it, do you if this a SIP/SRV protocol nuance or a
SER implementation issue ?
thanks,
Chetan
On Thu, 24 Feb 2005 20:04:03 +1100, Zeus Ng <zeus.ng(a)isquare.com.au> wrote:
Are you absolutely sure the contact address is stored
as user(a)testdomain.com
and not user(a)some.ip.address in the location table? I'm sure t_relay() will
do SRV lookup, with one condition. The URI should be in the form
sip:user@testdomain.com, with no port specified. If the URI does have the
port included like sip:user@testdomain.com:5060, then SER will not do SRV
lookup.
Most UAs I saw use IP address in contact header and that means no SRV
lookup. Better check yours with serctl ul show.
You can verify the SRV lookup with the following script.
loadmodule "/usr/local/lib/ser/modules/tm.so"
route{
rewritehost("stupid.domain");
t_relay();
}
The ethereal output will show SRV lookup.
Zeus
-----Original Message-----
From: serusers-bounces(a)lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org] On Behalf Of Gandhi, Chetan
Sent: Wednesday, 23 February 2005 9:15 AM
To: serusers(a)lists.iptel.org
Subject: [Serusers] DNS SRV lookup issue
Hi All,
I am facing problem to get SER to do a SRV lookup. I have the
following scenario.
Step 1:
SIP UA1 registers with SER (
testdomain.com) with contact
address user(a)testdomain.com
SIP UA2 registers with SER (
testdomain.com) with contact
address user(a)testdomain.com
Step 2:
SIP UA3 calls user(a)testdomain.com
Problem
I would expect SER to do a DNS SRV lookup on
testdomain.com
and get
sip1.testdomain.com and
sip2.testdomain.com.
Unfortunately, SER only does A and AAAA query. (verified via
ethereal) and does not do SRV lookup. How can I make it do
SRV lookup ? I am using the default ser.cfg file.
DNS entries
_sip._udp.testdomain.com. 3600 IN
SRV 0 1 5060
sip1.testdomain.com.
_sip._udp.testdomain.com. 3600 IN
SRV 0 1 5060
sip2.testdomain.com.
I am trying to do load balancing but the SRV lookup failure
has got me stuck. Any pointers would be really appreciated.
Thanks,
Chetan
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers