]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip_options: Fix non-qualified contacts showing as unavailable 47/147/4
authorGeorge Joseph <george.joseph@fairview5.com>
Sat, 18 Apr 2015 18:36:19 +0000 (12:36 -0600)
committerGeorge Joseph <george.joseph@fairview5.com>
Mon, 20 Apr 2015 00:45:39 +0000 (18:45 -0600)
commit63169e00ff21d528e40568dec6dcfd0114b55c48
tree1b47b1390e4dfb184e0fc7cf399656d6134f1e8a
parente05b0768278a4d697f8b02d1fb81a8c602fc6516
pjsip_options:  Fix non-qualified contacts showing as unavailable

The "Add qualify_timeout processing and eventing" patch introduced
an issue where contacts that had qualify_frequency set to 0 were
showing Unavailable instead Unknown.  This patch checks for
qualify_frequency=0 and create an "Unknown"  contact_status
with an RTT = 0.

Previously, the lack of contact_status implied Unknown but since
we're now changing endpoint state based on contact_status, I've
had to add new UNKNOWN status so that changes could trigger the
appropriate contact_status observers.

ASTERISK-24977: #close

Change-Id: Ifcbc01533ce57f0e4e584b89a395326e098b8fe7
funcs/func_pjsip_contact.c
include/asterisk/res_pjsip.h
res/res_pjsip/location.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip/pjsip_options.c