Based on the following patch, changed for trunk...
authorOlle Johansson <oej@edvina.net>
Tue, 9 Jan 2007 12:25:33 +0000 (12:25 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 9 Jan 2007 12:25:33 +0000 (12:25 +0000)
commit3246ad09a4fc4f3a678f3bf7d79a3aa64c0905ff
treeed00e32d099829cba3fb74247e3906357554b4fd
parent3a98c6af87871a55accb5a45ad3ee8461aacc02c
Based on the following patch, changed for trunk...

Merged revisions 50124 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50124 | oej | 2007-01-09 12:25:20 +0100 (Tue, 09 Jan 2007) | 3 lines

- handle re-invites properly in sip_hangup()
- Add some invitestate status changes just to be sure

........

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