]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pidf_eyebeam_body_supplement: Correct status presentation
authorSean Bright <sean.bright@gmail.com>
Wed, 26 Jul 2017 13:48:29 +0000 (09:48 -0400)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 1 Aug 2017 21:44:30 +0000 (15:44 -0600)
commit4d318cac6835ce9448e88bbd31e64178ed815ce4
tree3a3a0e46aee761f8e10db8d121d9ac19e3847061
parent114602f43436b91bb043f832285180e74332c941
res_pjsip_pidf_eyebeam_body_supplement: Correct status presentation

This change fixes PIDF content generation when the underlying device
state is considered in use. Previously it was incorrectly marked
as closed meaning they were offline/unavailable. The code now
correctly marks them as open.

Additionally:

  * Generate an XML element for our activity instead of a using a text
    node.

  * Consider every extension state other than "unavailable" to be 'open'
    status.

  * Update the XML namespaces and structure to reflect those
    documented in RFC 4480

  * Use 'on-the-phone' (defined in RFC 4880) instead of 'busy' as the
    "in use" activity. This change results in eyeBeam using the
    appropriate icon for the watched user.

This was tested on eyeBeam 1.5.20.2 build 59030 on Windows.

ASTERISK-26659 #close
Reported by: Abraham Liebsch
patches:
  ASTERISK-26659.diff submitted by snuffy (license 5024)

Change-Id: I6e5ad450f91106029fb30517b8c0ea0c2058c810
res/res_pjsip/presence_xml.c
res/res_pjsip_pidf_body_generator.c
res/res_pjsip_pidf_eyebeam_body_supplement.c