]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx: Update device and presence state when changing a hint extension. 65/1265/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:39 +0000 (08:20 -0500)
commitca401c6842231a77180c48dd3bec427ee6909424
tree921a28318370c0a1fb42c1c066d57c80c92691eb
parent20702e0cf23c159a22350ccc0fd37cff2a098072
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