? libpri.diff.txt Index: libpri.h =================================================================== RCS file: /usr/cvsroot/libpri/libpri.h,v retrieving revision 1.49 diff -u -r1.49 libpri.h --- libpri.h 6 Apr 2005 19:42:41 -0000 1.49 +++ libpri.h 8 May 2005 04:10:28 -0000 @@ -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 diff -u -r1.34 pri.c --- pri.c 5 Apr 2005 03:55:58 -0000 1.34 +++ pri.c 8 May 2005 04:10:29 -0000 @@ -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)