res_pjsip_endpoint_identifier_ip: Read settings before resolving.
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:10:27 +0000 (10:10 -0600)
commit23690c1b353845a2687b0f92deedd91e86612f13
tree745068260ab7896c287f1722d9a6b96ede0e6baa
parent52f8a9e2ffd84c504b52596ed45dffc3d4031a8e
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