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

markster at lists.digium.com markster at lists.digium.com
Sat Feb 7 18:15:41 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	chan_zap.c 
Log Message:
Don't send layer 1 info with data call (bug #1012) (needs updated libpri)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.171
retrieving revision 1.171.2.1
diff -u -d -r1.171 -r1.171.2.1
--- chan_zap.c	31 Jan 2004 20:22:25 -0000	1.171
+++ chan_zap.c	8 Feb 2004 00:24:25 -0000	1.171.2.1
@@ -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