[Asterisk-cvs] libpri libpri.h,1.54,1.55 q931.c,1.132,1.133

mattf at lists.digium.com mattf at lists.digium.com
Wed Jun 29 13:27:10 CDT 2005


Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv11607

Modified Files:
	libpri.h q931.c 
Log Message:
Allow cause IEs to be passed through libpri in PROGRESS messages


Index: libpri.h
===================================================================
RCS file: /usr/cvsroot/libpri/libpri.h,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- libpri.h	21 Jun 2005 20:37:22 -0000	1.54
+++ libpri.h	29 Jun 2005 17:27:03 -0000	1.55
@@ -343,6 +343,7 @@
 	int cref;
 	int progress;
 	int progressmask;
+	int cause;
 	q931_call *call;
 } pri_event_proceeding;
  

Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- q931.c	22 Jun 2005 19:27:43 -0000	1.132
+++ q931.c	29 Jun 2005 17:27:03 -0000	1.133
@@ -3189,6 +3189,7 @@
 	case Q931_CONNECT:
 	case Q931_ALERTING:
 	case Q931_PROGRESS:
+		c->cause = -1;
 	case Q931_CALL_PROCEEDING:
 		c->progress = -1;
 		c->progressmask = 0;
@@ -3463,6 +3464,7 @@
 			break;
 		}
 		pri->ev.e = PRI_EVENT_PROGRESS;
+		pri->ev.proceeding.cause = c->cause;
 		/* Fall through */
 	case Q931_CALL_PROCEEDING:
 		if (c->newcall) {




More information about the svn-commits mailing list