Merged revisions 172169 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Thu, 29 Jan 2009 09:18:01 +0000 (09:18 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 29 Jan 2009 09:18:01 +0000 (09:18 +0000)
commit55782a8dfa4becfaf2a0d64c5c37dabfc1d7adc4
treee7fb443e6f0fb0e0ed9a34ae82aa203eb2ccad77
parentf029e410ecb61a92bd77362d19e885e8f655191b
Merged revisions 172169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r172169 | oej | 2009-01-29 09:48:18 +0100 (Tor, 29 Jan 2009) | 16 lines

Make sure that we always add the hangupcause headers. In some cases, the owner was disconnected before we checked for the cause.
This patch implements a temporary storage in the pvt and use that instead.

The code is based on ideas from code from Adomjan in issue #13385 (Add support for Reason: header)
Thanks to Klaus Darillion for testing!

(closes issue #14294)
related to issue #13385

Reported by: klaus3000 and adomjan
Patches:
      bug14294b.diff uploaded by oej (license 306)
      Based on 20080829_chan_sip.c-q850reason_header.patch uploaded by adomjan (license 487)
Tested by: oej, klaus3000

........

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