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

martinp at lists.digium.com martinp at lists.digium.com
Thu Dec 18 17:50:36 CST 2003


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

Modified Files:
	chan_zap.c 
Log Message:
Allow doing digital PRI to PRI calls automatically


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- chan_zap.c	18 Dec 2003 16:02:33 -0000	1.157
+++ chan_zap.c	18 Dec 2003 23:42:10 -0000	1.158
@@ -1558,6 +1558,7 @@
 			ast_log(LOG_WARNING, "Unable to create call on channel %d\n", p->channel);
 			return -1;
 		}
+		p->digital = ast_test_flag(ast,AST_FLAG_DIGITAL);
 		if (pri_call(p->pri->pri, p->call, p->digital ? PRI_TRANS_CAP_DIGITAL : PRI_TRANS_CAP_SPEECH, 
 			p->prioffset, p->pri->nodetype == PRI_NETWORK ? 0 : 1, 1, l, p->pri->dialplan - 1, n,
 			l ? (ast->restrictcid ? PRES_PROHIB_USER_NUMBER_PASSED_SCREEN : (p->use_callingpres ? ast->callingpres : PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN)) : PRES_NUMBER_NOT_AVAILABLE,
@@ -3914,6 +3915,8 @@
 		/* 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);
 #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