]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Allow call pickup to set the hangup cause. 41/1141/1
authorJoshua Colp <jcolp@digium.com>
Wed, 26 Aug 2015 10:40:32 +0000 (07:40 -0300)
committerJoshua Colp <jcolp@digium.com>
Wed, 26 Aug 2015 11:09:12 +0000 (06:09 -0500)
commit059591091a69d35b200dcc5c4b6bb8f802bbb08f
treea07329f22da3fb070f7ab7b425d909759940a03c
parentc11ec74f1d4b0b96313eae7b4e1689fca82e0967
chan_sip: Allow call pickup to set the hangup cause.

The call pickup implementation in chan_sip currently sets the channel
hangup cause to "normal clearing" if call pickup is successfully
performed. This action overwrites the "answered elsewhere" hangup cause
set by the call pickup code and can result in the SIP device in
question showing a missed call when it should not.

This change sets the hangup cause to "normal clearing" as a
default initially but allows the call pickup to change it as
needed.

ASTERISK-25346 #close

Change-Id: I00ac2c269cee9e29586ee2c65e83c70e52a02cff
channels/chan_sip.c