]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_endpoint_identifier_ip: Read settings before resolving. 64/4764/1
authorJoshua Colp <jcolp@digium.com>
Mon, 23 Jan 2017 16:08:37 +0000 (16:08 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 23 Jan 2017 16:08:37 +0000 (16:08 +0000)
commit6d23b2e360789f44923b527fa97564a2ff648268
treee493cb6c15ccc4df1de5fe0a6aa86e2ceb23ab1b
parentfb21931a5295140e28878d8a83b0baa18424771b
res_pjsip_endpoint_identifier_ip: Read settings before resolving.

An option has been added, srv_lookups, which controls whether
SRV lookups are performed on the provided match hosts or not.
It was possible for this option to be applied after resolution
had already happened.

This change makes it so hosts are stored away, settings are read
and applied, and then resolution is done. This ensures that no
matter the ordering the srv_lookups option is in effect.

ASTERISK-26735

Change-Id: I750378cb277be0140f8c5539450270afbfc43388
res/res_pjsip_endpoint_identifier_ip.c