[asterisk-bugs] [JIRA] (ASTERISK-25009) DNS Tests: SRV Priority

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Apr 24 11:44:33 CDT 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-25009:
-----------------------------------

    Component/s: Tests/testsuite

> DNS Tests: SRV Priority
> -----------------------
>
>                 Key: ASTERISK-25009
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25009
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Tests/testsuite
>            Reporter: Matt Jordan
>
> h2. Priority
> *Goal:* To ensure that when multiple SRV records are returned, that records with the greatest priority (meaning smallest number) are chosen before others.
> h3. Procedure:
> # Set _sip._udp.test.internal to have the following records
> {noformat}
>     ;;     Priority Weight Port   Target
>     IN SRV        0      1 5060   main.test.internal.
>     IN SRV        1      1 5060   backup.test.internal.
> {noformat}
> # Disable NAPTR lookups for this test. Only allow UDP transport to be used.
> # Place an outbound SIP request to sip:test.internal.
> # Ensure that an SRV lookup of _sip._udp.test.internal is performed.
> # Ensure that this results in an A and/or AAAA lookup of main.test.internal.
> h3. Notes
> It is unknown whether the DNS engine in Asterisk will try to optimize by performing simultaneous lookups of both main.test.internal and backup.test.internal instead of going sequentially. If the domains are looked up in parallel, then this test cannot determine if the correct priority is being honored simply by monitoring A/AAAA record lookups. The test would have to be expanded in the following way:
> Add distinct A records for both main.test.internal and backup.test.internal. Ensure that the outgoing SIP request ends up being sent to the IP address retrieved from the A record lookup of main.test.internal and not the IP address retrieved by an A record lookup of backup.test.internal



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list