]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx: Update device and presence state when changing a hint extension. 63/1263/3
authorJoshua Colp <jcolp@digium.com>
Wed, 16 Sep 2015 13:22:35 +0000 (10:22 -0300)
committerJoshua Colp <jcolp@digium.com>
Sat, 19 Sep 2015 13:20:20 +0000 (08:20 -0500)
commit2bd27d12223fe33b58c453965ed5c6ed3af7c4f5
treebbe64454cd45b9defeb6ba7dac2a054c4cb99717
parenta665b3128177fc87036d7eb8b3174ac85e791d22
pbx: Update device and presence state when changing a hint extension.

When changing a hint extension without removing the hint first the
device state and presence state is not updated. This causes the state
of the hint to be that of the previous extension and not the current
one. This state is kept until a state change occurs as a result of
something (presence state change, device state change).

This change updates the hint with the current device and presence
state of the new extension when it is changed. Any state callbacks
which may have been added before the hint extension is changed are
also informed of the new device and presence state if either have
changed.

ASTERISK-25394 #close

Change-Id: If268f1110290e502c73dd289c9e7e7b27bc8432f
main/pbx.c