Sorry, a copy and paste error. In the SRV entries, it is meant to be three different hosts, like this:

 

    _sip._udp.mydomain.com. 8805 IN SRV 100 33 5060 proxy1.mydomain.com.

    _sip._udp.mydomain.com. 8805 IN SRV 100 34 5060 proxy2.mydomain.com.

    _sip._udp.mydomain.com. 8805 IN SRV 100 33 5060 proxy3.mydomain.com.

 

Brian.

 

From: Brian [mailto:brian@proximosystems.com]
Sent: Tuesday, February 24, 2009 2:58 PM
To: users@lists.kamailio.org
Subject: [Kamailio-Users] openser not distributing to all DNS SRV entries

 

Hi,

 

I have a SRV setup with three equal priority entries and equal weights. I expected openser (version 1.3.3) to distribute the INVITE requests equally to all 3 hosts, but it seems that all requests are forwarded to only one host.

 

The SRV entries look like this:

 

    _sip._udp.mydomain.com. 8805 IN SRV 100 33 5060 proxy1.mydomain.com.

    _sip._udp.mydomain.com. 8805 IN SRV 100 34 5060 proxy1.mydomain.com.

    _sip._udp.mydomain.com. 8805 IN SRV 100 33 5060 proxy1.mydomain.com.

 

 

And my routing for INVITE request looks like this:

 

    rewritehost("mydomain.com");

    rewriteport("");

   

    if (!t_relay()) {

         sl_reply_error();

    };

    exit;

 

Am I wrong in expecting this to distribute equally to the three proxy hosts? I thought this would just “work”.

 

Thanks,

 

Brian.