Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
daniel at tryba.nl
Guest





PostPosted: Wed Nov 04, 2015 10:54 am    Post subject: [asterisk-users] PJSIP with registratrion to DNS SRV records Reply with quote

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@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@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@sip.itco.nl
contact_user=tryba
outbound_auth=tryba_auth
expiration=180


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
rnewton at digium.com
Guest





PostPosted: Fri Nov 06, 2015 10:15 am    Post subject: [asterisk-users] PJSIP with registratrion to DNS SRV records Reply with quote

On Wed, Nov 4, 2015 at 9:19 AM, Daniel Tryba <daniel@tryba.nl> wrote:
Quote:

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@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@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@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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services