]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx: Update device and presence state when changing a hint extension. 62/1262/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:16:58 +0000 (10:16 -0300)
commit51013b052d242717fce8b30bfba083721981b769
treeb1a5099a937535edc37cc80dc4747defcde80ba8
parent3cf0f293101cb8f044b3b1b57e3ecaaaf47365bf
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