diff --git a/Makefile b/Makefile index fcf23f9..55a2774 100755 --- a/Makefile +++ b/Makefile @@ -38,6 +38,12 @@ install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY) install -m 644 $(STATIC_LIBRARY) /usr/lib /sbin/ldconfig +pritest: pritest.o + $(CC) -o pritest pritest.o -L. -lpri -lzap + +pridump: pridump.o + $(CC) -o pridump pridump.o -L. -lpri -lzap + %.lo : %.c $(CC) -fPIC $(CFLAGS) -o $@ -c $< @@ -53,3 +59,4 @@ $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS) clean: rm -f *.o *.so *.lo rm -f testpri $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY) + rm -f pritest pridump diff --git a/pri_q931.h b/pri_q931.h index 12f29fd..b129a94 100755 --- a/pri_q931.h +++ b/pri_q931.h @@ -234,5 +234,5 @@ extern q931_call *q931_new_call(struct pri *pri); extern int q931_setup(struct pri *pri, q931_call *c, int transmode, int channel, int exclusive, int nonisdn, char *caller, int callerplan, int callerpres, char *called, int calledplan, int ulay1); - +extern void q931_dump(q931_h *h, int len, int txrx); #endif