res_pjsip: Add support for returning only reachable contacts and use it.
authorJoshua Colp <jcolp@digium.com>
Wed, 31 May 2017 15:41:45 +0000 (15:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 6 Jun 2017 14:46:39 +0000 (09:46 -0500)
commit861984eac0d9d3582db6922a89e2d75796ae108f
treed939381d1a4d848c8395636d6533a94072af3e69
parent452e6315bb8be7578937de279aa1d906662faa20
res_pjsip: Add support for returning only reachable contacts and use it.

This introduces the ability for PJSIP code to specify filtering flags
when retrieving PJSIP contacts. The first flag for use causes the
query code to only retrieve contacts that are not unreachable. This
change has been leveraged by both the Dial() process and the
PJSIP_DIAL_CONTACTS dialplan function so they will now only attempt
calls to contacts which are not unreachable.

ASTERISK-26281

Change-Id: I8233b4faa21ba3db114f5a42e946e4b191446f6c
CHANGES
channels/pjsip/dialplan_functions.c
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/location.c
res/res_pjsip_session.c