Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e523c168a2 | ||
|
|
91ab439a15 | ||
|
|
cbd9c37c29 | ||
|
|
c3854dede0 | ||
|
|
29d1983e4d | ||
|
|
8fc524e6e7 | ||
|
|
50e2d23352 | ||
|
|
8c424cc4ff | ||
|
|
2f6aee20d9 | ||
|
|
1328ab60de | ||
|
|
f826a6e4ad | ||
|
|
4ec90f7435 |
@@ -1,5 +0,0 @@
|
|||||||
.depend
|
|
||||||
*.lo
|
|
||||||
libpri.so.1.0
|
|
||||||
pritest
|
|
||||||
|
|
||||||
43
ChangeLog
Executable file → Normal file
43
ChangeLog
Executable file → Normal file
@@ -1,16 +1,33 @@
|
|||||||
libpri 0.3.0
|
2006-01-18 Russell Bryant <russell@digium.com>
|
||||||
-- Fix talking to switch
|
|
||||||
-- Add pri dump
|
|
||||||
-- Add test application
|
|
||||||
-- Fix strncpy stuff
|
|
||||||
libpri 0.1.2
|
|
||||||
-- Added PRI_EVENT_HANGUP_ACK so you can know when the disconnect was
|
|
||||||
acknowledged
|
|
||||||
|
|
||||||
libpri 0.1.1
|
* Libpri 1.2.2 Released
|
||||||
-- Added PRI_DEBUG_Q931_ANOMALY flag so that certain non-error-related
|
|
||||||
messages would not be output unless specifically desired.
|
2006-01-17 13:43 +0000 [r291] Kevin P. Fleming <kpfleming@digium.com>
|
||||||
|
|
||||||
|
* q931.c: ensure that user-user info field in call is properly
|
||||||
|
reset when not needed
|
||||||
|
|
||||||
|
2006-01-10 20:19 +0000 [r290] Matt Frederickson <creslin@digium.com>
|
||||||
|
|
||||||
|
* Makefile: Backport of doing correct minor numbers to 1.2 (#6188)
|
||||||
|
|
||||||
|
2005-12-27 14:01 +0000 [r284] Matt Frederickson <creslin@digium.com>
|
||||||
|
|
||||||
|
* q931.c: Fix for issue #6039 backported to 1.2
|
||||||
|
|
||||||
|
2005-12-06 21:35 +0000 [r280] Matt Frederickson <creslin@digium.com>
|
||||||
|
|
||||||
|
* q921.c: Send RR as command instead of response when T200 expires
|
||||||
|
after receiving RNR.
|
||||||
|
|
||||||
|
2005-12-01 23:13 +0000 [r274] Kevin P. Fleming <kpfleming@digium.com>
|
||||||
|
|
||||||
|
* Makefile: Makefile 'update' target now supports Subversion
|
||||||
|
repositories (issue #5875)
|
||||||
|
|
||||||
|
2005-12-01 02:34 +0000 [r270] Matt Frederickson <creslin@digium.com>
|
||||||
|
|
||||||
|
* q931.c: Backport of fix from trunk. Fix broken single digit
|
||||||
|
keypad facility code.
|
||||||
|
|
||||||
libpri 0.1.0
|
|
||||||
-- Initial release
|
|
||||||
|
|
||||||
|
|||||||
16
Makefile
Executable file → Normal file
16
Makefile
Executable file → Normal file
@@ -41,7 +41,7 @@ DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
|
|||||||
CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
|
CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
|
||||||
INSTALL_PREFIX?=
|
INSTALL_PREFIX?=
|
||||||
INSTALL_BASE=/usr
|
INSTALL_BASE=/usr
|
||||||
SOFLAGS = -Wl,-hlibpri.so.1
|
SOFLAGS = -Wl,-hlibpri.so.1.0
|
||||||
LDCONFIG = /sbin/ldconfig
|
LDCONFIG = /sbin/ldconfig
|
||||||
ifeq (${OSARCH},Linux)
|
ifeq (${OSARCH},Linux)
|
||||||
LDCONFIG_FLAGS=-n
|
LDCONFIG_FLAGS=-n
|
||||||
@@ -70,11 +70,14 @@ endif
|
|||||||
all: depend $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
|
all: depend $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
|
||||||
|
|
||||||
update:
|
update:
|
||||||
@if [ -d CVS ]; then \
|
@if [ -d .svn ]; then \
|
||||||
|
echo "Updating from Subversion..." ; \
|
||||||
|
svn update -q; \
|
||||||
|
elif [ -d CVS ]; then \
|
||||||
echo "Updating from CVS..." ; \
|
echo "Updating from CVS..." ; \
|
||||||
cvs -q -z3 update -Pd; \
|
cvs -q -z3 update -Pd; \
|
||||||
else \
|
else \
|
||||||
echo "Not CVS"; \
|
echo "Not under version control"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
|
install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
|
||||||
@@ -84,13 +87,13 @@ ifneq (${OSARCH},SunOS)
|
|||||||
install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
|
install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
|
||||||
install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
|
install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
|
||||||
if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then restorecon -v $(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
|
if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then restorecon -v $(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
|
||||||
( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1 libpri.so )
|
( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1.0 libpri.so ; ln -sf libpri.so.1.0 libpri.so.1 )
|
||||||
install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
|
install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
|
||||||
if test $$(id -u) = 0; then $(LDCONFIG); fi
|
if test $$(id -u) = 0; then $(LDCONFIG); fi
|
||||||
else
|
else
|
||||||
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
|
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
|
||||||
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 755 $(DYNAMIC_LIBRARY)
|
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 755 $(DYNAMIC_LIBRARY)
|
||||||
( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1 libpri.so ; $(SOSLINK) )
|
( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1.0 libpri.so ; $(SOSLINK) )
|
||||||
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 644 $(STATIC_LIBRARY)
|
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 644 $(STATIC_LIBRARY)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -128,7 +131,8 @@ $(STATIC_LIBRARY): $(STATIC_OBJS)
|
|||||||
$(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
|
$(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
|
||||||
$(CC) -shared $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
|
$(CC) -shared $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
|
||||||
$(LDCONFIG) $(LDCONFIG_FLAGS) .
|
$(LDCONFIG) $(LDCONFIG_FLAGS) .
|
||||||
ln -sf libpri.so.1 libpri.so
|
ln -sf libpri.so.1.0 libpri.so
|
||||||
|
ln -sf libpri.so.1.0 libpri.so.1
|
||||||
$(SOSLINK)
|
$(SOSLINK)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
0
compiler.h
Executable file → Normal file
0
compiler.h
Executable file → Normal file
0
copy_string.c
Executable file → Normal file
0
copy_string.c
Executable file → Normal file
0
pri_facility.c
Executable file → Normal file
0
pri_facility.c
Executable file → Normal file
0
pri_facility.h
Executable file → Normal file
0
pri_facility.h
Executable file → Normal file
0
pri_internal.h
Executable file → Normal file
0
pri_internal.h
Executable file → Normal file
0
pri_q921.h
Executable file → Normal file
0
pri_q921.h
Executable file → Normal file
0
pri_q931.h
Executable file → Normal file
0
pri_q931.h
Executable file → Normal file
0
pri_timers.h
Executable file → Normal file
0
pri_timers.h
Executable file → Normal file
0
prisched.c
Executable file → Normal file
0
prisched.c
Executable file → Normal file
2
q921.c
Executable file → Normal file
2
q921.c
Executable file → Normal file
@@ -338,7 +338,7 @@ static void t200_expire(void *vpri)
|
|||||||
if (pri->debug & PRI_DEBUG_Q921_STATE)
|
if (pri->debug & PRI_DEBUG_Q921_STATE)
|
||||||
pri_message(pri, "-- Retransmitting %d bytes\n", pri->txqueue->len);
|
pri_message(pri, "-- Retransmitting %d bytes\n", pri->txqueue->len);
|
||||||
if (pri->busy)
|
if (pri->busy)
|
||||||
q921_rr(pri, 1, 0);
|
q921_rr(pri, 1, 1);
|
||||||
else {
|
else {
|
||||||
if (!pri->txqueue->transmitted)
|
if (!pri->txqueue->transmitted)
|
||||||
pri_error(pri, "!! Not good - head of queue has not been transmitted yet\n");
|
pri_error(pri, "!! Not good - head of queue has not been transmitted yet\n");
|
||||||
|
|||||||
11
q931.c
Executable file → Normal file
11
q931.c
Executable file → Normal file
@@ -1382,12 +1382,14 @@ static FUNC_RECV(receive_keypad_facility)
|
|||||||
if (ie->len == 0)
|
if (ie->len == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (ie->len > sizeof(call->digitbuf))
|
if (ie->len > (sizeof(call->digitbuf) - 1))
|
||||||
mylen = sizeof(call->digitbuf);
|
mylen = (sizeof(call->digitbuf) - 1);
|
||||||
else
|
else
|
||||||
mylen = ie->len;
|
mylen = ie->len;
|
||||||
|
|
||||||
libpri_copy_string(call->digitbuf, (char *) ie->data, mylen);
|
memcpy(call->digitbuf, ie->data, mylen);
|
||||||
|
|
||||||
|
call->digitbuf[mylen] = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -2796,6 +2798,8 @@ int q931_setup(struct pri *pri, q931_call *c, struct pri_sr *req)
|
|||||||
|
|
||||||
if (req->useruserinfo)
|
if (req->useruserinfo)
|
||||||
libpri_copy_string(c->useruserinfo, req->useruserinfo, sizeof(c->useruserinfo));
|
libpri_copy_string(c->useruserinfo, req->useruserinfo, sizeof(c->useruserinfo));
|
||||||
|
else
|
||||||
|
c->useruserinfo[0] = '\0';
|
||||||
|
|
||||||
if (req->nonisdn && (pri->switchtype == PRI_SWITCH_NI2))
|
if (req->nonisdn && (pri->switchtype == PRI_SWITCH_NI2))
|
||||||
c->progressmask = PRI_PROG_CALLER_NOT_ISDN;
|
c->progressmask = PRI_PROG_CALLER_NOT_ISDN;
|
||||||
@@ -3080,6 +3084,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
|
|||||||
c->channelno = -1;
|
c->channelno = -1;
|
||||||
break;
|
break;
|
||||||
case Q931_INFORMATION:
|
case Q931_INFORMATION:
|
||||||
|
c->callednum[0] = '\0';
|
||||||
break;
|
break;
|
||||||
case Q931_STATUS_ENQUIRY:
|
case Q931_STATUS_ENQUIRY:
|
||||||
break;
|
break;
|
||||||
|
|||||||
0
testprilib.c
Executable file → Normal file
0
testprilib.c
Executable file → Normal file
Reference in New Issue
Block a user