[Freeswitch-users] SIP external profile - Error looking up host name

Anton VG anton.vazir at gmail.com
Thu Apr 28 11:38:12 MSD 2011


Looks like a nasty bug.
Until I have put a gateway IP in realm sip_profiles/external - FS
gives a DNS error and will not register
Freeswitch  - fresh GIT

At the same time I can resolve a dns record via nslookup
(note real domain name was replaced by name.tld and real IP by X.X.X.)

freeswitch at host1> version
FreeSWITCH Version 1.0.head (git-adffe07 2011-04-23 23-52-03 -0400)


host1# nslookup
> set type=any
> name.tld
Server:         X.X.X.X
Address:        X.X.X.X#53

name.tld
        origin = name.tld
        mail addr = anton.name.tld
        serial = 9110229
        refresh = 10800
        retry = 3600
        expire = 259200
        minimum = 86400
Name:   name.tld
Address: X.X.X.33
name.tld  nameserver = ns1.name.tld
name.tld  nameserver = ns2.name.tld

> _sip._udp.name.tld
Server:         X.X.X.7
Address:        X.X.X.7#53

_sip._udp.name.tld        service = 0 1 5060 X.X.X.33.name.tld.
>

tcpdump for FS requests gives the following

12:24:12.135842 IP 192.168.100.12.34358 > X.X.X.X.53: 20007+ SRV?
_sip._udp.name.tld. (34)
12:24:12.136423 IP X.X.X.X.53 > 192.168.100.12.34358: 20007* 1/2/3 SRV
X.X.X.X.name.tld.:5060 0 1 (170)
12:24:12.136505 IP 192.168.100.12.34358 > X.X.X.X.53: 20263+ A? name.tld. (24)
12:24:12.136995 IP X.X.X.X.53 > 192.168.100.12.34358: 20263* 1/2/2 A
X.X.X.X (120)

Fs sofia debug gives the following:


freeswitch at host1> sofia profile external register name.tld

+OK

freeswitch at skype1> nua: nh_create_handle: entering
nua: nua_handle_bind: entering
2011-04-28 12:25:53.145595 [NOTICE] sofia_reg.c:367 Registering name.tld
nua: nua_register: entering
nua(0x169afe0): sent signal r_register
nua(0x169afe0): recv signal r_register
nua: nua_stack_set_params: entering
soa_clone(static::0x1669f30, 0x1659f50, 0x169afe0) called
soa_set_params(static::0x7f4330030580, ...) called
soa_set_params(static::0x7f4330030580, ...) called
nua(0x169afe0): adding register usage
nta_leg_tcreate(0x7f4338036980)
nta: selecting scheme sip
sres_cache_get(0x7f433000ac10, SRV, "_sip._udp.name.tld.") called
nta: for "name.tld" query "_sip._udp.name.tld" SRV
sres_query(0x7f433002ed40, 0x7f4338035d20, SRV, "_sip._udp.name.tld") called
sres_send_dns_query(0x7f433002ed40, 0x7f433800aa40) called
sres_send_dns_query(0x7f433002ed40, 0x7f433800aa40) id=10068 SRV
_sip._udp.name.tld (to [X.X.X.7]:53)
sres_resolver_receive(0x7f433002ed40, 39) called
ANSWER RR received . 8448? 448? 201335040 rdlen=256
sres_create_record: truncated message
sres_create_record: truncated message
sres_decode_msg: got 0 but expected errors=0 an=1 ar=3 ns=2
sres_resolver_receive(0x7f433002ed40, 0x7f433800aa40) id=10068 (from
[X.X.X.7]:53)
sres(q=0x7f433800aa40): reporting error NETWORK_ERR for SRV _sip._udp.name.tld
sres_cache_get(0x7f433000ac10, A, "name.tld.") called
nta: for "name.tld" query "name.tld" A
sres_query(0x7f433002ed40, 0x7f4338035d20, A, "name.tld") called
sres_send_dns_query(0x7f433002ed40, 0x7f433802a770) called
sres_send_dns_query(0x7f433002ed40, 0x7f433802a770) id=10069 A
name.tld (to [X.X.X.7]:53)
sres_resolver_receive(0x7f433002ed40, 39) called
ANSWER RR received . 256? 448? 201326848 rdlen=256
sres_create_record: truncated message
sres_create_record: truncated message
sres_decode_msg: got 0 but expected errors=0 an=1 ar=2 ns=2
sres_resolver_receive(0x7f433002ed40, 0x7f433802a770) id=10069 (from
[X.X.X.7]:53)
sres(q=0x7f433802a770): reporting error NETWORK_ERR for A name.tld
nta: timer set to 32000 ms
nta: timer shortened to 5000 ms
nua(0x169afe0): event r_register 503 DNS Error
nua(0x169afe0): removing register usage
nta_leg_destroy(0x7f4338036980)
nua: nua_application_event: entering
nua: nua_handle_destroy: entering
nua(0x169afe0): sent signal r_destroy
2011-04-28 12:25:53.146606 [ERR] sofia_reg.c:1771 name.tld
Registration Failed with status DNS Error [503]. failure #11
nua(0x169afe0): recv signal r_destroy
nta_leg_destroy((nil))
soa_destroy(static::0x7f4330030580) called
nua: nua_handle_magic: entering
nua: nua_handle_bind: entering
nua: nua_handle_destroy: entering
2011-04-28 12:25:54.145598 [WARNING] sofia_reg.c:425 name.tld Failed
Registration [0], setting retry to 30 seconds.
nta: timer K fired, terminate REGISTER (11651712)
outgoing_reclaim_all((nil), (nil), 0x7f433e970cf0)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
nta: timer not set



More information about the FreeSWITCH-users mailing list