Fix __sip_subscribe_mwi_do() incorectly changing dialogs hash key callid.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 7 Nov 2011 21:29:01 +0000 (21:29 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 7 Nov 2011 21:29:01 +0000 (21:29 +0000)
commit98e494d4a0523b3308fc20991ef87d21efefd9ec
tree27cfff7f49eccd778bf2bbab967de24b88bf0d6e
parent1c526d3d7d7d42bb253e8fb5acc8ff366217437c
Fix __sip_subscribe_mwi_do() incorectly changing dialogs hash key callid.

Changing an object value used as a container key requires removing the
object from the container and reinserting it.

* Created change_callid_pvt() to call instead of build_callid_pvt().  The
change_callid_pvt() will correctly change the dialog callid so the ao2
conainter can explicitly unlink it.
........

Merged revisions 343637 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 343677 from http://svn.asterisk.org/svn/asterisk/branches/10

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