[OpenSIPS-Users] SRV lookups with b2bua

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Nov 22 15:31:11 CET 2011


Hi Ryan,

Could you post the domain and the SRV records you have populated?  
OpenSIPS DNS engine is able to handle priorities and weights between 
records, so .....either records are not right, either there is a bug 
somewhere...

Regards,
Bogdan

On 11/21/2011 03:39 PM, Ryan Revels wrote:
> Ovidiu,
>
> The DNS server replies with both SRV records & indicates they are of 
> equal priority and weight.
> My question is why OpenSIPS would choose the same A record each and 
> every time?
>
> Thanks,
> Ryan
>
> On Fri, Nov 18, 2011 at 3:44 PM, Ovidiu Sas <osas at voipembedded.com 
> <mailto:osas at voipembedded.com>> wrote:
>
>     Probably your DNS server doesn't do round robin on your records.
>
>     On Fri, Nov 18, 2011 at 4:32 PM, Ryan Revels <ryan at revelous.net
>     <mailto:ryan at revelous.net>> wrote:
>     > Ovidiu,
>     >
>     > I am seeing the same behavior when in proxy mode. Can you help
>     me understand
>     > where the problem may be occurring?
>     >
>     > Thanks,
>     > Ryan
>     >
>     > On Fri, Nov 18, 2011 at 12:37 PM, Ovidiu Sas
>     <osas at voipembedded.com <mailto:osas at voipembedded.com>> wrote:
>     >>
>     >> The B2B modules are using the tm API to construct requests and
>     >> therefore the handling of SRV records should not be influenced
>     by how
>     >> INVITE requests are handled: proxy or b2b.
>     >> Try to handle the INVITE in proxy mode and check if you have
>     the same
>     >> behaviour.
>     >>
>     >> Regards,
>     >> Ovidiu Sas
>     >>
>     >> On Fri, Nov 18, 2011 at 1:12 PM, Ryan Revels <ryan at revelous.net
>     <mailto:ryan at revelous.net>> wrote:
>     >> > Bump
>     >> >
>     >> > On Nov 11, 2011 2:34 PM, "Ryan Revels" <ryan at revelous.net
>     <mailto:ryan at revelous.net>> wrote:
>     >> >>
>     >> >> Do the b2bua modules fully support resolving SRV records?
>     >> >> I have 2 records with equal priority and weight, but the
>     b2bua always
>     >> >> chooses the same one:
>     >> >>
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query NAPTR
>     sip.notreal.com <http://sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response NAPTR 10 10 S
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query SRV
>     _sip._udp.sip.notreal.com <http://udp.sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response SRV 0 0 5060
>     >> >> test2.notreal.net <http://test2.notreal.net> SRV 0 0 5060
>     test1.notreal.net <http://test1.notreal.net>
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query A test1.notreal.net
>     <http://test1.notreal.net>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response A 1.2.3.4
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query NAPTR
>     sip.notreal.com <http://sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response NAPTR 10 10 S
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query SRV
>     _sip._udp.sip.notreal.com <http://udp.sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response SRV 0 0 5060
>     >> >> test2.notreal.net <http://test2.notreal.net> SRV 0 0 5060
>     test1.notreal.net <http://test1.notreal.net>
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query A test1.notreal.net
>     <http://test1.notreal.net>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response A 1.2.3.4
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query NAPTR
>     sip.notreal.com <http://sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response NAPTR 10 10 S
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query SRV
>     _sip._udp.sip.notreal.com <http://udp.sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response SRV 0 0 5060
>     >> >> test2.notreal.net <http://test2.notreal.net> SRV 0 0 5060
>     test1.notreal.net <http://test1.notreal.net>
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query A test1.notreal.net
>     <http://test1.notreal.net>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response A 1.2.3.4
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query NAPTR
>     sip.notreal.com <http://sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response NAPTR 10 10 S
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query SRV
>     _sip._udp.sip.notreal.com <http://udp.sip.notreal.com>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response SRV 0 0 5060
>     >> >> test2.notreal.net <http://test2.notreal.net> SRV 0 0 5060
>     test1.notreal.net <http://test1.notreal.net>
>     >> >> 10.10.10.1 -> 8.8.8.8 DNS Standard query A test1.notreal.net
>     <http://test1.notreal.net>
>     >> >> 8.8.8.8 -> 10.10.10.1 DNS Standard query response A 1.2.3.4
>     >> >>
>     >> >> Any help would be much appreciated.
>     >> >> Thanks.
>     >> >
>     >> > _______________________________________________
>     >> > Users mailing list
>     >> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     >> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >>
>     >> _______________________________________________
>     >> Users mailing list
>     >> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>     >
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>     >
>
>
>
>     --
>     VoIP Embedded, Inc.
>     http://www.voipembedded.com
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and "know-how"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20111122/251aaeb9/attachment.htm>


More information about the Users mailing list