[asterisk-commits] twilson: branch 1.6.2 r306126 - in /branches/1.6.2: ./ channels/chan_local.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Feb 3 14:56:04 CST 2011
Author: twilson
Date: Thu Feb 3 14:56:00 2011
New Revision: 306126
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=306126
Log:
Merged revisions 306119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r306119 | twilson | 2011-02-03 12:36:34 -0800 (Thu, 03 Feb 2011) | 9 lines
Set hangup cause in local_hangup
When a call involves a local channel (like SIP -> Local -> SIP), the hangup
cause was not being set. This resulted in SIP channels sometimes getting a
503 error instead of a 486 when the far side sent a busy. In Asterisk 1.8+
this also can cause issues with CCSS that involve a local channel. This patch
sets the hangupcause for one side of the local channel to the other in
local_hangup for outbound calls.
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/channels/chan_local.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: branches/1.6.2/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_local.c?view=diff&rev=306126&r1=306125&r2=306126
==============================================================================
--- branches/1.6.2/channels/chan_local.c (original)
+++ branches/1.6.2/channels/chan_local.c Thu Feb 3 14:56:00 2011
@@ -760,6 +760,7 @@
ao2_lock(p);
}
if (p->owner) {
+ p->owner->hangupcause = p->chan->hangupcause;
pbx_builtin_setvar_helper(p->owner, "CHANLOCALSTATUS", status);
ast_channel_unlock(p->owner);
}
More information about the asterisk-commits
mailing list