Richard Mudgett
175c1e470f
Merged revisions 1143, 1144 from
...
https://origsvn.digium.com/svn/libpri/tags/1.4.10.2
..........
r1144 | mattf | 2009-09-29 10:32:23 -0500 (Tue, 29 Sep 2009) | 1 line
This fix is more like the fix that was used to resolve the issue for the PRI case
..........
r1143 | mattf | 2009-09-28 14:07:01 -0500 (Mon, 28 Sep 2009) | 1 line
Changes for 1.4.10.2
..........
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1151 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-10-07 18:33:09 +00:00
Matthew Fredrickson
25b2496b0f
Output multiline output with multiple calls to pri_message, so that logs look normal in Asterisk
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1077 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-09-14 22:32:40 +00:00
Richard Mudgett
6d9c1cb0d9
Optimized calls to pri_schedule_del().
...
There is no need to test if a scheduled event is running before calling
pri_schedule_del().
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1060 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-09-02 20:04:03 +00:00
Matthew Fredrickson
3a1739883b
There are two changes in this commit that are bug fixes for various Q.921 issues found in internal testing.
...
Both were exposed/introduced by the TBR4 compliance patch for bug #12861 , in changing how retransmissions and in how
the transmission queue was maintained. TX-RX message flow and acknowledgement was severely restricted,
since the patch changed the behavior so that pending untransmitted frames would not actually be send until
the next RR was received in normal circumstances, or REJ when a reject frame was received. On busy links,
this can severly limit the amount of useful traffic that is sent, and can slow down message transmission.
Until someone can point out where in Q.921 it is mandated for us to wait for RR frames to start sending
untransmitted messages, the first change is to allow us to send untransmitted frames when we receive new
I frames as well, with updated N(R).
The other bug fixed is a situation caused by the restricted traffic flow, if an outside process tries to send
an I-frame asynchronous to an RR frame, when the transmit window was previously closed and then opened up but
an RR has not been received yet. A bug was found with the integration of the old transmit code with the new reject
handling code which caused the new frame to be sent immediately, regardless if there were any pending untransmitted
I-frames in the queue to be sent and causing an out of order I-frame to be sent to the other side. This bug is
also fixed in this patch.
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@859 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-06-09 19:47:05 +00:00
Richard Mudgett
ac40946c11
Comment changes.
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@782 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-05-01 22:47:41 +00:00
Jeff Peeler
18fa4716a5
Add service maintenance message support
...
This adds support for two new message types: Service and Service Acknowledge.
When a channel receives a service message it will either take the channel in
or out of service and then send a service acknowledgment. Although not
enforced here (enforced in chan_dahdi), the service messages are only supported
with switch types 4ess/5ess. The required Asterisk changes will be coming next.
(issue #3450 )
Reported by: cmaj
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@732 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-04-14 15:05:21 +00:00
Matthew Fredrickson
3d91cd5e30
A couple of last BRI fixes in libpri... don't discard pending iframes when we call the q921_dchannel_up routine, since we need to be able to send the ones that were queued up while the D-channel went down and is being reactivated. Also fix some buggy logic in the frame transmission decision code.
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@680 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-01-27 23:22:06 +00:00
Matthew Fredrickson
a30eeee9a8
Change behavior so that we do not send I-frames when link is down, but instead queue them up until the link comes up and send them out then.
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@675 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-01-22 21:48:41 +00:00
Matthew Fredrickson
07c4195876
Add additional case where T200 expires greater than N200 times and we need to release and reacquire the TEI.
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@656 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2009-01-09 17:58:28 +00:00
Matthew Fredrickson
40ae2a030a
Add some additional debug for Q.921 MDL messages as well as fix a bug in RESTART messages on BRI
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@653 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2008-12-23 21:38:25 +00:00
Matthew Fredrickson
2c104c4dbd
Fix a number of Q.921 bugs, found doing TBR4 compliance testing, thanks to Tzafrir, Xorcom, and co. ( #12861 ). Thanks!
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@645 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2008-11-22 00:34:26 +00:00
Kevin P. Fleming
64eaca5bfa
Merged revisions 610 via svnmerge from
...
https://origsvn.digium.com/svn/libpri/branches/1.2
........
r610 | kpfleming | 2008-08-05 17:16:58 -0500 (Tue, 05 Aug 2008) | 2 lines
clean up license headers, and explicitly grant additional permissions when used with Asterisk
........
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@611 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2008-08-05 22:18:12 +00:00
Matthew Fredrickson
b9a6ab0c69
Moving trunk changes back into 1.4
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@557 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2008-05-07 19:51:44 +00:00
Kevin P. Fleming
b9bd97cdb7
fix the indentation in this function so that it is actually possible to read it and understand the logic and flow
...
git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@544 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2008-04-16 00:21:01 +00:00
Matthew Fredrickson
8c69834e21
Updates to add T309 to libpri. Thanks flefoll!
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@356 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-06 21:11:37 +00:00
Matthew Fredrickson
de008c4d60
Changes to improve state reporting in libpri. ( #7260 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@350 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-06-06 22:06:52 +00:00
Matthew Fredrickson
424fa816e3
Send RR as command instead of response when T200 expires after receiving RNR.
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@279 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-12-06 21:18:44 +00:00
Kevin P. Fleming
cf8c723f8b
remove extraneous svn:executable properties
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@266 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-11-29 18:39:18 +00:00
Kevin P. Fleming
f622f51004
use libpri_copy_string() (same as ast_copy_string()) instead of strncpy
...
update file headers for proper copyrights and licenses
various other minor optimizations
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@230 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-06-21 22:47:39 +00:00
Matthew Fredrickson
64088fe864
PRI debug additions -- testing...
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@219 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-05-23 15:06:33 +00:00
Mark Spencer
23a638cf66
Allow PRI to support callback functions (Diana's patch, placed in public domain)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@202 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-03-17 15:46:23 +00:00
Mark Spencer
a6977c6ddb
Complete port to solaris (bug #3062 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@168 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-12-15 20:15:28 +00:00
James Golovich
ba5a5ca907
Allow PRI timers to be congfigurable. (bug 2518)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@138 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-10-02 14:55:20 +00:00
Mark Spencer
748702c5c5
Don't seg when out of memory (bug #2120 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@129 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-07-23 16:04:01 +00:00
Mark Spencer
6dd859f5de
Don't process subchannels by default
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@128 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-07-16 02:14:04 +00:00
Mark Spencer
de0e6ba4cc
Formatting fixes
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@106 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-07 17:00:29 +00:00
Mark Spencer
30d983f45f
More GR-303 fixes, detect drop of D-channel
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@105 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-07 15:55:39 +00:00
Mark Spencer
f065327cc1
Major changes in preparation for GR-303 and NFAS support
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@101 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-05 06:50:55 +00:00
Mark Spencer
c591726079
We have to update n_r when transmitting backlogged packets
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@91 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-05-17 03:32:11 +00:00
Mark Spencer
f2eb8afb7f
Revert jcdutton's changes which are not subject to be disclaimed
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@87 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-04-11 01:55:54 +00:00
Mark Spencer
8da0a1e5a7
Debug improvements (bug #1329 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@86 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-04-11 01:27:11 +00:00
James Golovich
949afd2385
Format q921 log string before printing. Fixes those annoying half patch
...
packet decodes when logging data with something like script or tee
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@84 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-04-05 08:22:14 +00:00
Mark Spencer
91b4a60c1f
Add test program for windowing, implement proper windowing
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@79 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-03-29 08:09:01 +00:00
James Golovich
d00abddee3
Add pri_dump_info and q921/q931 counters to libpri
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@78 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-03-15 05:53:25 +00:00
Mark Spencer
06d9c2aeb3
Bring into full TBR4 compliance
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@60 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2003-09-25 06:13:14 +00:00
Matteo Brancaleoni
c0ce1c85ed
mer feb 12 14:56:57 CET 2003
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@29 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2003-02-12 13:59:23 +00:00
Mark Spencer
a68a6bd01d
Version 0.3.0 from FTP
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@21 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2002-03-18 13:59:09 +00:00
Mark Spencer
ecca15537d
Version 0.2.0 from FTP
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@14 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2001-11-29 18:09:09 +00:00
Mark Spencer
ecb32ede6a
Version 0.1.1 from FTP
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@8 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2001-05-21 13:39:30 +00:00
Mark Spencer
30f86c22db
Version 0.1.0 from FTP
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@3 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2001-05-12 16:41:32 +00:00