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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 29 09:14:48 CDT 2013


Author: oej
Date: Wed May 29 09:14:44 2013
New Revision: 390018

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390018
Log:
Bitmaps. Who cares. As long as they do what I want to do. ANd that wasn't the case.

Modified:
    team/group/rana-moh-sip-transfer-1.8/main/channel.c

Modified: team/group/rana-moh-sip-transfer-1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/group/rana-moh-sip-transfer-1.8/main/channel.c?view=diff&rev=390018&r1=390017&r2=390018
==============================================================================
--- team/group/rana-moh-sip-transfer-1.8/main/channel.c (original)
+++ team/group/rana-moh-sip-transfer-1.8/main/channel.c Wed May 29 09:14:44 2013
@@ -9784,9 +9784,9 @@
 		return -1;
 	}
 	if (hold) {
-		chan->hold_state.state &= AST_MEDIA_LOCAL_HOLD;
+		chan->hold_state.state |= AST_MEDIA_LOCAL_HOLD;
 	} else {
-		chan->hold_state.state |= AST_MEDIA_LOCAL_HOLD;	/* ?? */
+		chan->hold_state.state &= ~AST_MEDIA_LOCAL_HOLD;
 	}
 	return 0;
 }
@@ -9797,9 +9797,9 @@
 		return -1;
 	}
 	if (hold) {
-		chan->hold_state.state &= AST_MEDIA_REMOTE_HOLD;
+		chan->hold_state.state |= AST_MEDIA_REMOTE_HOLD;
 	} else {
-		chan->hold_state.state |= AST_MEDIA_REMOTE_HOLD;	/* ?? */
+		chan->hold_state.state &= ~AST_MEDIA_REMOTE_HOLD;
 	}
 	return 0;
 }




More information about the asterisk-commits mailing list