Jonathan H
2018-Jul-28 20:42 UTC
[asterisk-users] SRV with pjsip on Asterisk 15.5: yes or no?
I'm trying to configure sip2sip, which says: http://wiki.sip2sip.info/projects/sip2sip/wiki/SipDevicesAsterisk "Asterisk, is currently unable to handle more that one result for a DNS SRV lookup, and the Asterisk configuration needed for getting it work with the SIP2SIP service is not trivial" It then gives a complex multi-section workaround in SIP. I remember reading there'd be the same issue with PJSIP, and then I found this post in the Asterisk blog from 2016: https://blogs.asterisk.org/2016/04/20/pjsip-dns-support/ which says: "chan_pjsip will now look for SRV records based on what transports are configured on the system". Does this mean there's now a way of doing it? Because https://github.com/asterisk/asterisk/blob/master/configs/samples/pjsip_wizard.conf.sample says: ; Hostnames must resolve to A, AAAA or CNAME records. ; SRV records are not currently supported. Hmmmm... I'm confused!
Joshua Colp
2018-Jul-28 20:49 UTC
[asterisk-users] SRV with pjsip on Asterisk 15.5: yes or no?
On Sat, Jul 28, 2018, at 5:42 PM, Jonathan H wrote:> I'm trying to configure sip2sip, which says: > http://wiki.sip2sip.info/projects/sip2sip/wiki/SipDevicesAsterisk > "Asterisk, is currently unable to handle more that one result for a > DNS SRV lookup, and the Asterisk configuration needed for getting it > work with the SIP2SIP service is not trivial" > > It then gives a complex multi-section workaround in SIP. I remember > reading there'd be the same issue with PJSIP, and then I found this > post in the Asterisk blog from 2016: > https://blogs.asterisk.org/2016/04/20/pjsip-dns-support/ which says: > "chan_pjsip will now look for SRV records based on what transports are > configured on the system". > > Does this mean there's now a way of doing it? Because > https://github.com/asterisk/asterisk/blob/master/configs/samples/pjsip_wizard.conf.sample > says: > ; Hostnames must resolve to A, AAAA or CNAME records. > ; SRV records are not currently supported. > > Hmmmm... I'm confused!SRV support for inbound matching was added after that comment was written. Identifying by IP address resolve a hostname down to all addresses (including SRV) - not just a single one. Outgoing supports A, AAAA, SRV, and NAPTR automatically. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Jonathan H
2018-Jul-28 21:28 UTC
[asterisk-users] SRV with pjsip on Asterisk 15.5: yes or no?
OK, thanks. Shall I file a ticket to get that example file updated? On Sat, 28 Jul 2018 at 21:50, Joshua Colp <jcolp at digium.com> wrote:> > On Sat, Jul 28, 2018, at 5:42 PM, Jonathan H wrote: > > I'm trying to configure sip2sip, which says: > > http://wiki.sip2sip.info/projects/sip2sip/wiki/SipDevicesAsterisk > > "Asterisk, is currently unable to handle more that one result for a > > DNS SRV lookup, and the Asterisk configuration needed for getting it > > work with the SIP2SIP service is not trivial" > > > > It then gives a complex multi-section workaround in SIP. I remember > > reading there'd be the same issue with PJSIP, and then I found this > > post in the Asterisk blog from 2016: > > https://blogs.asterisk.org/2016/04/20/pjsip-dns-support/ which says: > > "chan_pjsip will now look for SRV records based on what transports are > > configured on the system". > > > > Does this mean there's now a way of doing it? Because > > https://github.com/asterisk/asterisk/blob/master/configs/samples/pjsip_wizard.conf.sample > > says: > > ; Hostnames must resolve to A, AAAA or CNAME records. > > ; SRV records are not currently supported. > > > > Hmmmm... I'm confused! > > SRV support for inbound matching was added after that comment was written. Identifying by IP address resolve a hostname down to all addresses (including SRV) - not just a single one. > > Outgoing supports A, AAAA, SRV, and NAPTR automatically. > > -- > Joshua Colp > Digium, Inc. | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Apparently Analagous Threads
- Can someone please help with this sip2sip pjsip_wizard "no matching endpoint" issue?
- Asterisk 13.6 + pjsip: sip2sip registers but incoming calls get "No matching endpoint found".
- How configure asterisk server extension.conf.
- pjsip direct_media=yes and "unknown" endpoints
- Cannot call to my server with SIP