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

Rusty Newton rnewton at digium.com
Fri Nov 6 09:14:54 CST 2015


On Wed, Nov 4, 2015 at 9:19 AM, Daniel Tryba <daniel at tryba.nl> wrote:
>
> 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
>

For those wandering web-searching souls:

https://issues.asterisk.org/jira/browse/ASTERISK-25528


-- 
Rusty Newton
Digium, Inc. | Community Support Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
direct: +1 256 428 6200

Check us out at: http://digium.com & http://asterisk.org



More information about the asterisk-users mailing list