[Asterisk-cvs] asterisk/channels chan_h323.c,1.124,1.125

jeremy jeremy
Wed Sep 14 23:15:53 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv8133

Modified Files:
	chan_h323.c 
Log Message:
castrate the logic in oh323_digit to pass DTMF no matter what. (issue #4989)

Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- chan_h323.c	2 Aug 2005 03:25:28 -0000	1.124
+++ chan_h323.c	15 Sep 2005 03:14:21 -0000	1.125
@@ -356,16 +356,14 @@
 		ast_rtp_senddigit(pvt->rtp, digit);
 	}
 	/* If in-band DTMF is desired, send that */
-	if ((pvt->options.dtmfmode & H323_DTMF_INBAND)) {
-		token = pvt->cd.call_token ? strdup(pvt->cd.call_token) : NULL;
-		ast_mutex_unlock(&pvt->lock);
-		h323_send_tone(token, digit);
-		if (token)
-			free(token);
-		oh323_update_info(c);
-	}
-	else
-		ast_mutex_unlock(&pvt->lock);
+	if (h323debug)
+		ast_log(LOG_DEBUG, "Sending INB digit  %c on %s\n", digit, c->name);
+	token = pvt->cd.call_token ? strdup(pvt->cd.call_token) : NULL;
+	ast_mutex_unlock(&pvt->lock);
+	h323_send_tone(token, digit);
+	if (token)
+		free(token);
+	oh323_update_info(c);
 	return 0;
 }
 




More information about the svn-commits mailing list