[Asterisk-cvs] asterisk/channels chan_zap.c,1.226,1.227

markster at lists.digium.com markster at lists.digium.com
Wed May 19 10:47:47 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Send proceeding if appropriate on audio transmission, too


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.226
retrieving revision 1.227
diff -u -d -r1.226 -r1.227
--- chan_zap.c	19 May 2004 14:51:11 -0000	1.226
+++ chan_zap.c	19 May 2004 15:00:14 -0000	1.227
@@ -3849,6 +3849,24 @@
 		return -1;
 	}
 	
+#ifdef PRI_EVENT_PROCEEDING
+	if (!p->proceeding && p->sig==SIG_PRI && p->pri && p->pri->overlapdial) {
+		if (p->pri->pri) {		
+			if (!pri_grab(p, p->pri)) {
+#ifdef PRI_PROGRESS
+					pri_progress(p->pri->pri,p->call);
+#else						
+					pri_acknowledge(p->pri->pri,p->call, p->prioffset, 1);
+#endif						
+					pri_rel(p->pri);
+			} else
+					ast_log(LOG_WARNING, "Unable to grab PRI on span %d\n", p->span);
+		}
+		p->proceeding=1;
+	}
+#else
+#warning "You need later PRI library"
+#endif
 	/* Write a frame of (presumably voice) data */
 	if (frame->frametype != AST_FRAME_VOICE) {
 		if (frame->frametype != AST_FRAME_IMAGE)




More information about the svn-commits mailing list