[asterisk-bugs] [JIRA] (ASTERISK-26735) PJSIP DNS SRV: incoming calls are refused due to wrong autocreated match entry
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Fri Jan 20 01:13:10 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-26735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234746#comment-234746 ]
Asterisk Team commented on ASTERISK-26735:
------------------------------------------
Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.
A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.
Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].
> PJSIP DNS SRV: incoming calls are refused due to wrong autocreated match entry
> ------------------------------------------------------------------------------
>
> Key: ASTERISK-26735
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26735
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/DNS, pjproject/pjsip
> Affects Versions: 13.13.1, 14.2.1
> Environment: Centos 6 / 64bit
> FreePBX 13.0.190.7
> Reporter: Michael Maier
> Severity: Critical
>
> Using DNS SRV functionality with PJSIP leads to a wrong auto generated match entry, if DNS SRV results differ from standard resolution.
> Example:
> # dig tel.t-online.de
> ;; QUESTION SECTION:
> ;tel.t-online.de. IN A
> ;; ANSWER SECTION:
> tel.t-online.de. 584 IN CNAME ims.voip.t-ipnet.de.
> ims.voip.t-ipnet.de. 42403 IN CNAME ims001.voip.t-ipnet.de.
> ims001.voip.t-ipnet.de. 42403 IN CNAME s-epp-001.isp.t-ipnet.de.
> s-epp-001.isp.t-ipnet.de. 165 IN A 217.0.23.4
> Asterisk builds the auto generated match entry on base of tel.t-online.de (217.0.23.4).
> The SRV entries are like this:
> # dig _sip._udp.tel.t-online.de SRV
> ;; QUESTION SECTION:
> ;_sip._udp.tel.t-online.de. IN SRV
> ;; ANSWER SECTION:
> _sip._udp.tel.t-online.de. 3600 IN SRV 1 5 5060
> hh-epp-009.isp.t-ipnet.de.
> _sip._udp.tel.t-online.de. 3600 IN SRV 0 5 5060
> b-epp-009.isp.t-ipnet.de.
> # dig b-epp-009.isp.t-ipnet.de
> ;; QUESTION SECTION:
> ;b-epp-009.isp.t-ipnet.de. IN A
> ;; ANSWER SECTION:
> b-epp-009.isp.t-ipnet.de. 595 IN A 217.0.23.108
> # dig hh-epp-009.isp.t-ipnet.de
> ;; QUESTION SECTION:
> ;hh-epp-009.isp.t-ipnet.de. IN A
> ;; ANSWER SECTION:
> hh-epp-009.isp.t-ipnet.de. 246 IN A 217.0.23.140
> PJSIP now registers e.g. to 217.0.23.108. This means, all incoming calls are sent from this IP - which is refused by asterisk, because asterisk uses the standard resolution of tel.t-online.de, which is 217.0.23.4 (in my case).
> Please do an auto generated match entry on base of the IP address PJSIP registered to.
> Workaround:
> Manual definition of a huge Telekom net as match entry in pjsip.identify.conf (217.0.18.0/23,217.0.20.0/22,217.0.24.0/24) as nobody really knows which IPs Telekom will use.
> If used with stateful iptables rules not that big problem, nevertheless it would be good to have an accurate entry as it took me quite some time to get the reason!
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list