[Asterisk-cvs] asterisk/channels chan_zap.c,1.158,1.159

martinp at lists.digium.com martinp at lists.digium.com
Fri Dec 19 10:16:36 CST 2003


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

Modified Files:
	chan_zap.c 
Log Message:
Fix the passing of digital PRI-PRI


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- chan_zap.c	18 Dec 2003 23:42:10 -0000	1.158
+++ chan_zap.c	19 Dec 2003 16:08:10 -0000	1.159
@@ -3915,8 +3915,10 @@
 		/* Assume calls are not idle calls unless we're told differently */
 		i->isidlecall = 0;
 		i->alreadyhungup = 0;
-		i->digital = ctype;
-		ast_set2_flag(tmp, ctype, AST_FLAG_DIGITAL);
+		if (ctype & PRI_TRANS_CAP_DIGITAL) {
+			i->digital = 1;
+			ast_set_flag(tmp, AST_FLAG_DIGITAL);
+		}
 #endif
 		/* clear the fake event in case we posted one before we had ast_chanenl */
 		i->fake_event = 0;




More information about the svn-commits mailing list