[asterisk-commits] trunk r18342 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Apr 7 11:52:25 MST 2006


Author: oej
Date: Fri Apr  7 13:52:23 2006
New Revision: 18342

URL: http://svn.digium.com/view/asterisk?rev=18342&view=rev
Log:
Hmm. What is that keyword?? Let me see... Wait... Maybe... Ahh! OOPS!

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=18342&r1=18341&r2=18342&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Apr  7 13:52:23 2006
@@ -12112,7 +12112,7 @@
 	char *dest = data;
 
 	oldformat = format;
-	if ((format &= ((AST_FORMAT_MAX_AUDIO << 1) - 1))) {
+	if (!(format &= ((AST_FORMAT_MAX_AUDIO << 1) - 1))) {
 		ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format %s while capability is %s\n", ast_getformatname(oldformat), ast_getformatname(global_capability));
 		*cause = AST_CAUSE_BEARERCAPABILITY_NOTAVAIL;	/* Can't find codec to connect to host */
 		return NULL;



More information about the asterisk-commits mailing list