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

Modified Files:
        libpri.h pri.c 
Log Message:
pri show debug feature (bug 4210)


Index: libpri.h
===================================================================
RCS file: /usr/cvsroot/libpri/libpri.h,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- libpri.h    6 Apr 2005 19:42:41 -0000       1.49
+++ libpri.h    10 May 2005 21:02:41 -0000      1.50
@@ -408,6 +408,9 @@
 /* Set debug parameters on PRI -- see above debug definitions */
 extern void pri_set_debug(struct pri *pri, int debug);
 
+/* Get debug parameters on PRI -- see above debug definitions */
+extern int pri_get_debug(struct pri *pri);
+
 /* Run PRI on the given D-channel, taking care of any events that
    need to be handled.  If block is set, it will block until an event
    occurs which needs to be handled */

Index: pri.c
===================================================================
RCS file: /usr/cvsroot/libpri/pri.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- pri.c       5 Apr 2005 03:55:58 -0000       1.34
+++ pri.c       10 May 2005 21:02:41 -0000      1.35
@@ -391,6 +391,15 @@
                pri_set_debug(pri->subchannel, debug);
 }
 
+int pri_get_debug(struct pri *pri)
+{
+       if (!pri)
+               return -1;
+       if (pri->subchannel)
+               return pri_get_debug(pri->subchannel);
+       return pri->debug;
+}
+
 int pri_acknowledge(struct pri *pri, q931_call *call, int channel, int info)
 {
        if (!pri || !call)

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to