]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_endpoint_identifier_ip: Read settings before resolving. 65/4765/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:10:18 +0000 (10:10 -0600)
commit74577cf32d9cf57389d4e5327d64ced0eb271e24
tree86ce04c7cc1a07346c0b7bca496d87cd2395fb1c
parentdd92feb7fdd2197f59df879e948a99b03c83ef91
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