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.
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.
On Tuesday 24 February 2009, Brian wrote:
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.
Hi Brian,
in OpenSER 1.3.x this is a know issue. If you've several SRV records with the same wight, then the requests are not forwarded equally to all of them. If i remember correctly it just uses the one that is returned from the DNS server first.
This is fixed in kamailio 1.4.X and also the upcoming 1.5.0 release, it will choose randomly from all SRV records.
Cheers,
Henning
On 02/25/2009 12:15 PM, Henning Westerholt wrote:
On Tuesday 24 February 2009, Brian wrote:
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.
Hi Brian,
in OpenSER 1.3.x this is a know issue. If you've several SRV records with the same wight, then the requests are not forwarded equally to all of them. If i remember correctly it just uses the one that is returned from the DNS server first.
indeed the first one is used in older versions.
Cheers, Daniel
This is fixed in kamailio 1.4.X and also the upcoming 1.5.0 release, it will choose randomly from all SRV records.
Cheers,
Henning
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users