[SR-Users] cannot register UA when domain is not valid, using usrloc, auth_db and registrar modules

Vik Killa vipkilla at gmail.com
Thu Nov 13 22:42:44 CET 2014


Hello,

I'm trying to register 1004 at 3.local (yes i know 3.local is not a valid
domain) and kamailio is responding with SIP/2.0 478 Unresolvable
destination (478/SL)

Why does kamailio require a valid domain? Is there any way to disable
kamailio from looking up the domain (i don't see a reason to look it up
since it's just a REGISTER request)

Here is my cfg:


        if (!auth_check("$fd", "subscriber", "1")) {
                auth_challenge("$fd", "1");
                exit;
        }


And kamilio is responding with:


Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6931]: ERROR: <core>
[resolve.c:1726]: sip_hostport2su(): could not resolve hostname: "3.local"
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6931]: ERROR: tm
[ut.h:337]: uri2dst2(): failed to resolve "3.local"
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6931]: ERROR: tm
[t_fwd.c:1778]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add
branches
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6931]: ERROR: sl
[sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used:
Unresolvable destination (478/SL)
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6932]: ERROR: <core>
[resolve.c:1726]: sip_hostport2su(): could not resolve hostname: "3.local"
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6932]: ERROR: tm
[ut.h:337]: uri2dst2(): failed to resolve "3.local"
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6932]: ERROR: tm
[t_fwd.c:1778]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add
branches
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6932]: ERROR: sl
[sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used:
Unresolvable destination (478/SL)
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6933]: ERROR: <core>
[resolve.c:1726]: sip_hostport2su(): could not resolve hostname: "3.local"
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6933]: ERROR: tm
[ut.h:337]: uri2dst2(): failed to resolve "3.local"
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6933]: ERROR: tm
[t_fwd.c:1778]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add
branches
Nov 13 16:39:41 ua01-proxy01 /usr/sbin/kamailio[6933]: ERROR: sl
[sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used:
Unresolvable destination (478/SL)






Here is SIP



----------------begin of packet -----------------------------
U 2014/11/13 16:37:36.742489 192.168.207.162:63582 -> 192.168.207.156:5060

REGISTER sip:3.local SIP/2.0
Via: SIP/2.0/UDP 192.168.16.120:63582
;rport;branch=z9hG4bKPjbea638d5e7054e03bc4dfee6b6872275
Max-Forwards: 70
From: "1004" <sip:1003 at 3.local>;tag=ff09e20e549b4127a88ae6a6ec34e88b
To: "1004" <sip:1003 at 3.local>
Contact: <sip:98524760 at 192.168.16.120:63582
>;+sip.instance="<urn:uuid:7d4ed3bd-451a-4406-a8e2-80315408b7c5>"
Call-ID: a7454fb3539740ffb385c146303a926f
CSeq: 1 REGISTER
Expires: 600
Supported: gruu
User-Agent: Blink 0.9.1.2 (Windows)
Content-Length:  0



------------------end of packet -----------------------------
----------------begin of packet -----------------------------
U 2014/11/13 16:37:36.743505 192.168.207.156:5060 -> 192.168.207.162:63582

SIP/2.0 478 Unresolvable destination (478/SL)
Via: SIP/2.0/UDP 192.168.16.120:63582
;rport=63582;branch=z9hG4bKPjbea638d5e7054e03bc4dfee6b6872275;received=192.168.207.162
From: "1004" <sip:1003 at 3.local>;tag=ff09e20e549b4127a88ae6a6ec34e88b
To: "1004" <sip:1003 at 3.local>;tag=98beed43ea484d57160c0a87164dfce1.ff17
Call-ID: a7454fb3539740ffb385c146303a926f
CSeq: 1 REGISTER
Server: kamailio (4.2.0 (x86_64/linux))
Content-Length: 0




------------------end of packet -----------------------------
----------------begin of packet -----------------------------
U 2014/11/13 16:37:36.743625 192.168.207.156:5060 -> 192.168.207.162:63582

SIP/2.0 478 Unresolvable destination (478/TM)
Via: SIP/2.0/UDP 192.168.16.120:63582
;rport=63582;branch=z9hG4bKPjbea638d5e7054e03bc4dfee6b6872275;received=192.168.207.162
From: "1004" <sip:1003 at 3.local>;tag=ff09e20e549b4127a88ae6a6ec34e88b
To: "1004" <sip:1003 at 3.local>;tag=b9d45a0d611ee9eea95e269f12755a03-ff17
Call-ID: a7454fb3539740ffb385c146303a926f
CSeq: 1 REGISTER
Server: kamailio (4.2.0 (x86_64/linux))
Content-Length: 0




------------------end of packet -----------------------------
----------------begin of packet -----------------------------
U 2014/11/13 16:37:36.750939 192.168.207.156:5060 -> 192.168.207.162:63582

SIP/2.0 478 Unresolvable destination (478/SL)
Via: SIP/2.0/UDP 192.168.16.120:63582
;rport=63582;branch=z9hG4bKPj186bbf75b3964f06893742b853533302;received=192.168.207.162
From: "1004" <sip:1003 at 3.local>;tag=8b337cc975ab41c3b431a335a898128a
To: "1004" <sip:1003 at 3.local>;tag=98beed43ea484d57160c0a87164dfce1.10fc
Call-ID: fb19ff0b98f542849a249cd96dcd5f8c
CSeq: 1 PUBLISH
Server: kamailio (4.2.0 (x86_64/linux))
Content-Length: 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20141113/74106a56/attachment.html>


More information about the sr-users mailing list