OpenSER and DNS SRV Lookups

Discussion in 'VOIP' started by Doug, Nov 23, 2005.

  1. Doug

    Doug Guest

    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.
     
    Doug, Nov 23, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. 'Captain' Kirk DeHaan

    Firefox and failed DNS lookups

    'Captain' Kirk DeHaan, Dec 21, 2004, in forum: Firefox
    Replies:
    3
    Views:
    730
    R Fruth in Houston
    Dec 22, 2004
  2. J1C

    DNS Lookups

    J1C, Feb 1, 2006, in forum: Cisco
    Replies:
    2
    Views:
    510
  3. Tim Lister

    reverse dns lookups in firewall logs

    Tim Lister, Aug 28, 2004, in forum: Computer Security
    Replies:
    0
    Views:
    477
    Tim Lister
    Aug 28, 2004
  4. christian koch

    STOPPING DNS LOOKUPS AT CLI

    christian koch, Sep 22, 2006, in forum: Cisco
    Replies:
    5
    Views:
    1,618
    Francois Labreque
    Sep 28, 2006
  5. John R...
    Replies:
    3
    Views:
    400
    Gurble
    Nov 18, 2004
Loading...

Share This Page