[asterisk-commits] rmudgett: trunk r371863 - in /trunk: ./ apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 29 13:40:08 CDT 2012


Author: rmudgett
Date: Wed Aug 29 13:40:04 2012
New Revision: 371863

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=371863
Log:
Fix hangup cause passthrough regression.

The v1.8 -r369258 change to fix the F and F(x) action logic introduced a
regression in passing the hangup cause from the called channel to the
caller channel.

(closes issue ASTERISK-20287)
Reported by: Konstantin Suvorov
Patches:
      app_dial_hangupcause.patch (license #6421) patch uploaded by Konstantin Suvorov (modified)
Tested by: rmudgett
........

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

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

Merged revisions 371862 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/apps/app_dial.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: trunk/apps/app_dial.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_dial.c?view=diff&rev=371863&r1=371862&r2=371863
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Wed Aug 29 13:40:04 2012
@@ -3065,9 +3065,9 @@
 					/* The peer is now running its own PBX. */
 					goto out;
 				}
-			} else {
-				ast_channel_hangupcause_set(chan, ast_channel_hangupcause(peer));
-			}
+			}
+		} else if (!ast_check_hangup(chan)) {
+			ast_channel_hangupcause_set(chan, ast_channel_hangupcause(peer));
 		}
 		ast_autoservice_chan_hangup_peer(chan, peer);
 	}




More information about the asterisk-commits mailing list