We should only unsubscribe to the device state event
authorMark Michelson <mmichelson@digium.com>
Fri, 19 Sep 2008 15:43:28 +0000 (15:43 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 19 Sep 2008 15:43:28 +0000 (15:43 +0000)
commit02a0855e57755964cd6c95cc4007cc99b1923525
tree5c58535d7acba9e1ea944e6942f5d0df00edd05d
parent12073c2a96becf7a0264a69770db4650dd82708e
We should only unsubscribe to the device state event
subscription if we have previously subscribed. Otherwise
a segfault will occur.

(closes issue #13476)
Reported by: jonnt
Patches:
      13476.patch uploaded by putnopvut (license 60)
Tested by: jonnt

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@143609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_agent.c