[asterisk-commits] oej: branch group/rana-moh-sip-transfer-1.8 r390112 - /team/group/rana-moh-si...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 30 04:39:25 CDT 2013


Author: oej
Date: Thu May 30 04:39:19 2013
New Revision: 390112

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390112
Log:
Sometimes it feels like I'm coding in the mirror.

Modified:
    team/group/rana-moh-sip-transfer-1.8/channels/chan_sip.c

Modified: team/group/rana-moh-sip-transfer-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/rana-moh-sip-transfer-1.8/channels/chan_sip.c?view=diff&rev=390112&r1=390111&r2=390112
==============================================================================
--- team/group/rana-moh-sip-transfer-1.8/channels/chan_sip.c (original)
+++ team/group/rana-moh-sip-transfer-1.8/channels/chan_sip.c Thu May 30 04:39:19 2013
@@ -23991,10 +23991,10 @@
 		/* After the masq, the old current->chan2 is now target.chan1 bridged to target.chan2 */
 		if (target.chan1 && target.chan2 && ast_channel_get_local_hold_state(target.chan1)) {
 			ast_debug(4, "====>> Putting channel %s on remote hold since %s was locally held\n", target.chan2->name, target.chan1->name);
-			ast_channel_put_remote_on_hold(target.chan2, target.chan2->hold_state.mohsuggest);
+			ast_channel_put_remote_on_hold(target.chan1, target.chan1->hold_state.mohsuggest);
 		} else if (target.chan2 && target.chan1 && ast_channel_get_local_hold_state(target.chan2)) {
 			ast_debug(4, "====>> Putting channel %s on remote hold since %s was locally held\n", target.chan1->name, target.chan2->name);
-			ast_channel_put_remote_on_hold(target.chan1, target.chan1->hold_state.mohsuggest);
+			ast_channel_put_remote_on_hold(target.chan2, target.chan2->hold_state.mohsuggest);
 		} else if (target.chan2) {
 			ast_indicate(target.chan2, AST_CONTROL_UNHOLD);
 		}




More information about the asterisk-commits mailing list