Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > VOIP > OpenSER and DNS SRV Lookups

Reply
Thread Tools

OpenSER and DNS SRV Lookups

 
 
Doug
Guest
Posts: n/a
 
      11-23-2005
After much tearing out of hair, it looks like I have finally gotten
OpenSER to do DNS SRV lookups. Here's my DNS records...

proxy1 10 IN A 192.168.10.24
proxy2 10 IN A 192.168.10.52

proxy.voip.com. IN NAPTR 50 50 "s" "SIPS+D2T" ""
_sips._tcp.proxy.voip.com.
proxy.voip.com. IN NAPTR 60 40 "s" "SIP+D2T" ""
_sip._tcp.proxy.voip.com.
proxy.voip.com. IN NAPTR 60 60 "s" "SIP+D2U" ""
_sip._udp.proxy.voip.com.

_sips._tcp.proxy.voip.com. 10 IN SRV 0 0 5061 proxy1.proxy.voip.com.
_sips._tcp.proxy.voip.com. 10 IN SRV 0 0 5061 proxy2.proxy.voip.com.

_sip._udp.proxy.voip.com. 10 IN SRV 100 10 5060 proxy1.proxy.voip.com.
_sip._udp.proxy.voip.com. 10 IN SRV 100 10 5060 proxy2.proxy.voip.com.

_sip._tcp.proxy.voip.com. 10 IN SRV 300 10 5060 proxy1.proxy.voip.com.
_sip._tcp.proxy.voip.com. 10 IN SRV 300 10 5060 proxy2.proxy.voip.com.

And here's my code snippit from openser.cfg:

modparam("tm", "fr_timer", 5)

if ( is_method("INVITE") ) {
xlog ("L_INFO","Got an INVITE");
rewritehost ("proxy.voip.com");
rewriteport ("");
xlog ("L_INFO","Calling t_relay()");
if ( !t_relay() ) {
sl_send_reply("404", "ARRGH Not Found");
xlog ("L_INFO","Error on t_relay()");
} else {
xlog ("L_INFO","Call to t_relay() complete ok");
}
return;
}

The sip UDP SRV records have the same priority and weight, so OpenSER
should round-robin the queries, which it is doing.

Yay!

However, I had **REALLY** hoped that upon failure to connect to one of
the hosts, t_relay() would attempt to connect to the next host in the
SRV lookup on it's own accord. I was able to set the timeout that it
waits for an ACK to the INVITE down to 5 seconds with the modparam()
call above, but after that it just gives up and does not try to connect
to any other hosts.

All the OpenSER docs say that it 'fully' supports the SRV standard. Has
anyone gotten this to work?

This is OpenSer-1.0.x. I sure hope this works, because it it doesn't,
this really hinders the development of redundant SIP proxies.

Help appreciated.
doug -at- pobox . com
Doug.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSER ? why ? Steve UK VOIP 4 08-29-2008 09:30 PM
retrive TTL using JNDI DNS service provider for SRV records Suresh Java 0 06-02-2006 12:43 PM
URL's and Set's do not mix - DNS lookups are compulsory Rogan Dawes Java 4 05-17-2006 10:10 AM
Firefox and failed DNS lookups 'Captain' Kirk DeHaan Firefox 3 12-22-2004 02:40 AM
DNS SRV Records? Hadmut Danisch Ruby 0 09-20-2003 07:52 AM



Advertisments