[asterisk-users] PJSIP with registratrion to DNS SRV records fail with PJLIB_UTIL_EDNSNOANSWERREC

Daniel Tryba daniel at tryba.nl
Wed Nov 4 09:19:22 CST 2015


I finally thought it might be a good time to start looking at the pjsip
implementation in Asterisk 13. But trying to register to a sip cluster
that uses SRV records fails randomly with:

[Nov  4 15:50:59] WARNING[31330]: pjsip:0 <?>:  tsx0x7f075c006 Failed to
send Request msg REGISTER/cseq=17800 (tdta0x7f075c0058f0)! err=320047
(No answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC))
[Nov  4 15:50:59] WARNING[31330]: res_pjsip_outbound_registration.c:735
schedule_retry: No response received from 'sip:sip.itco.nl' on
registration attempt to 'sip:tryba at sip.itco.nl', retrying in '60'

[Nov  4 15:51:59] WARNING[31330]: pjsip:0 <?>:  tsx0x7f075c006 Failed to
send Request msg REGISTER/cseq=17801 (tdta0x7f075c0058f0)! err=320047
(No answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC))
[Nov  4 15:51:59] WARNING[31330]: res_pjsip_outbound_registration.c:735
schedule_retry: No response received from 'sip:sip.itco.nl' on
registration attempt to 'sip:tryba at sip.itco.nl', retrying in '60'

At 15:52:59 the register succeeds somehow.

Attached is a pcap of the DNS request and the responses (capture filter:
port 53 or port 5060 or port 5061). Unlike the warning says the
responses are there.

Does anybody have a hint of what is going on/what I do wrong?

pjsip.conf:
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[transport-tcp]
type=transport
protocol=tcp
bind=0.0.0.0

[tryba]
type=endpoint
transport=transport-udp
context=tryba
disallow=all
allow=alaw
outbound_auth=tryba_auth
force_rport=yes
direct_media=no
ice_support=yes
auth=tryba_auth

[tryba_auth]
type=auth
auth_type=userpass
password=**************
username=tryba

[tryba_register]
transport=transport-udp
type=registration
server_uri=sip:sip.itco.nl
client_uri=sip:tryba at sip.itco.nl
contact_user=tryba
outbound_auth=tryba_auth
expiration=180

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnsrsrv.pcapng.gz
Type: application/gzip
Size: 2091 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151104/b7ca7b2b/attachment.bin>


More information about the asterisk-users mailing list