[OpenSIPS-Users] OpenSIPS searches for wrong SRV record
Nabeel
nabeelshikder at gmail.com
Mon Jul 6 14:49:06 CEST 2015
The URI it seems to be resolving is "sip:mydomain.com" (from the log):
Jul 6 10:27:20 server0 /usr/local/sbin/opensips[1731]:
DBG:core:parse_msg: uri: <sip:mydomain.com>
Jul 6 10:27:20 server0 /usr/local/sbin/opensips[1731]: DBG:core:parse_to:
display={}, ruri={sip:+447479189410 at mydomain.com}
Jul 6 10:27:20 server0 /usr/local/sbin/opensips[1731]:
DBG:core:get_hdr_field: <To> [38];
uri=[sip:+447479189410 at mydomain.com]
I think the routing URI should be "sip:mydomain.com;transport=tls". Please
let me know how I can specify the URI for TLS in OpenSIPS.
I have an SRV record at my domain for TLS, but not a NAPTR record. In the
log below, OpenSIPS first looks for NAPTR record, doesn't find it, then
looks for SRV record, but it is for UDP so it fails:
Jul 6 07:42:14 server0 /usr/local/sbin/opensips[1731]: DBG:core:mk_proxy:
doing DNS lookup...
Jul 6 07:42:14 server0 /usr/local/sbin/opensips[1731]:
DBG:core:sip_resolvehost: no port, no proto -> do NAPTR lookup!
Jul 6 07:42:14 server0 /usr/local/sbin/opensips[1731]:
DBG:core:get_record: lookup(mydomain.com, 35) failed
Jul 6 07:42:14 server0 /usr/local/sbin/opensips[1731]:
DBG:core:sip_resolvehost: no valid NAPTR record found for mydomain.com,
trying direct SRV lookup...
Jul 6 07:42:14 server0 /usr/local/sbin/opensips[1731]:
DBG:core:get_record: lookup(_sip._udp.mydomain.com, 33)
failed Jul 6 07:42:14
server0 /usr/local/sbin/opensips[1731]: DBG:core:sip_resolvehost: no valid
SRV record found for _sip._udp.mydomain.com, trying A record lookup...
Jul 6 07:42:14 server0 /usr/local/sbin/opensips[1731]:
ERROR:tm:update_uac_dst: failed to fwd to af 2, proto 1 (no corresponding
listening socket)
On 6 Jul 2015 09:34, "Bogdan-Andrei Iancu" <bogdan at opensips.org> wrote:
> Hi,
>
> What is the complete SIP URI that OpenSIPS tries to resolve ? What kind of
> query (NATPR , SRV, AAA) and the query string depends on the RURI you have.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 05.07.2015 09:36, Nabeel wrote:
>
> I'm running OpenSIPS with TLS support compiled and enabled. The first
> SRV record OpenSIPS searches for when connecting is _sip._udp. (as shown
> below).
>
> It should be _sips._tcp. How can this be fixed?
>
>
> DBG:core:get_record: lookup(_sip._udp.domain.com, 33) failed
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150706/d706ef07/attachment.htm>
More information about the Users
mailing list