[Asterisk-cvs] asterisk/channels chan_zap.c,1.171,1.172

markster at lists.digium.com markster at lists.digium.com
Sat Feb 7 18:14:36 CST 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Omit PRI layer 1 information for data call (need updated libpri too) (bug #1012)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -d -r1.171 -r1.172
--- chan_zap.c	31 Jan 2004 20:22:25 -0000	1.171
+++ chan_zap.c	8 Feb 2004 00:23:20 -0000	1.172
@@ -1598,7 +1598,8 @@
 			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,
 			c + p->stripmsd, p->pri->dialplan - 1, 
-			((p->law == ZT_LAW_ALAW) ? PRI_LAYER_1_ALAW : PRI_LAYER_1_ULAW))) {
+			(p->digital ? -1 : 
+			((p->law == ZT_LAW_ALAW) ? PRI_LAYER_1_ALAW : PRI_LAYER_1_ULAW)))) {
 			ast_log(LOG_WARNING, "Unable to setup call to %s\n", c + p->stripmsd);
 			return -1;
 		}




More information about the svn-commits mailing list