Russell Bryant
b288766b85
Change malloc+memset to calloc. Also, handle allocation failures early to reduce indentation.
...
(closes issue #11469 )
Reported by: eliel
Patches:
pri.c.patch uploaded by eliel (license 64)
q931.c.patch uploaded by eliel (license 64)
q921.c.patch uploaded by eliel (license 64)
pri_facility.c.patch uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@496 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-12-06 22:16:32 +00:00
Russell Bryant
1ee4f8aa3f
Change a use of malloc+memset to calloc. Also, reduce indentation of a function
...
by doing the check for memory allocation failure at the beginning.
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@495 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-12-06 03:48:07 +00:00
Russell Bryant
414fe8f956
Change the table used to hold the default timers to be global and const,
...
instead of allocating it on the stack each time the function is called.
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@494 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-12-06 03:44:59 +00:00
Matthew Fredrickson
3071a4da29
Add BRI support to libpri
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@486 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-11-21 21:49:30 +00:00
Matthew Fredrickson
dc7a314fb3
Merged revisions 462 via svnmerge from
...
https://origsvn.digium.com/svn/libpri/branches/1.4
................
r462 | mattf | 2007-09-06 10:11:29 -0500 (Thu, 06 Sep 2007) | 9 lines
Merged revisions 460 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.2
........
r460 | mattf | 2007-09-06 10:06:42 -0500 (Thu, 06 Sep 2007) | 1 line
TBCT now works. It should work for NI2, 4E, and 5E. This code was tested on NI2.
........
................
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@463 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-09-06 15:15:50 +00:00
Matthew Fredrickson
cbda0d7376
Patch to add PTMP mode (BRI support)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@429 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-06-19 20:31:54 +00:00
Matthew Fredrickson
bcd84a9d79
Preliminary patch plus mods for Q.SIG Path Replacement (Q.SIG version of 2BCT) #7778
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@422 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-06-06 21:47:36 +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
681a5f582e
RLT works!!! Tested successfully on a DMS100 switch. (For those wondering, RLT
...
is basically 2 B-channel transfer on DMS100)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@305 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-01-19 23:27:27 +00:00
Matthew Fredrickson
0e2e37b537
Numerous updates for RLT (just remember, trunk can be a bumpy ride)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@297 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-01-19 18:22:06 +00:00
Russell Bryant
9c8628715f
change 'char *' to 'const char *' for useruserinfo to go along with the fixes
...
from r7327 in the asterisk trunk
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@277 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-12-04 15:32:46 +00:00
Matthew Fredrickson
8d6d58ab09
Add in keypad facility transmission support
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@271 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-12-01 17:59:56 +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
Matthew Fredrickson
e0de929e20
Updates so that one can do user to user IE transmission
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@253 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-10-21 20:20:22 +00:00
Mark Spencer
cfee7ff007
Add ability to restart PRI at Q.921 layer
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@247 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-09-13 02:19:00 +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
Matthew Fredrickson
8205ce358a
Add support to enable/disable facility IE Supplementary Services
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@217 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-05-12 14:48:00 +00:00
Matthew Fredrickson
3803535593
pri show debug feature (bug 4210)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@215 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-05-10 21:02:41 +00:00
Matthew Fredrickson
240cd3ece0
Merging Advice of Charge code into libpri (bug #3843 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@206 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-04-05 03:55:58 +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
Matthew Fredrickson
86cf50b9c3
Big PRI commit. Merges bugs 3623 and 3554 back. Includes additional
...
event for Q931_IE_KEYPAD_FACILITY and all of the various Q.SIG functions,
2BCT on 5ESS, and a few other random changes
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@195 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2005-03-02 15:56:11 +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
Mark Spencer
e1d6903ed4
Fix order
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@164 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-12-15 15:44:22 +00:00
Mark Spencer
f0396f6fa5
Fix fputs/fprintf
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@163 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-12-15 15:43:17 +00:00
Mark Spencer
5b2bc04f41
Add ability to send redirecting number (bug #2760 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@155 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-10-30 20:13:20 +00:00
Matthew Fredrickson
cea480c941
Rudimentery support for transmitting and receiving calling name
...
via facility information elements
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@150 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-10-27 20:43:23 +00:00
James Golovich
542a5ffe0c
Change pri_dump_info to generate string instead of using pri_message (bug 2703)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@147 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-10-26 04:27:29 +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
5fd79b6b1b
Add notify patch (bug #1785 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@127 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-29 17:57:18 +00:00
Mark Spencer
b93317f38b
Make sure NSF is initialized properly
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@123 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-26 04:42:20 +00:00
Mark Spencer
18958fa7e8
Add NSF support (bug #1927 )
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@122 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-26 04:37:09 +00:00
Mark Spencer
d4eab6216e
Create new, more extensible setup method (pri_setup)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@114 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-16 15:33:58 +00:00
Mark Spencer
d0c78dd62d
Add the ability to slave one PRI to another with respect to calls
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@104 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-06-07 03:33:51 +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
7aac157b7f
Only send channel identifier with call proceeding
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@96 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-05-19 21:01:36 +00:00
Mark Spencer
2c26d98a89
Add separate ability to do both progress and proceeding
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@95 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-05-19 15:34:43 +00:00
Mark Spencer
8098266c90
Allow progress to be sent with 1
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@93 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-05-19 15:21:15 +00:00
Mark Spencer
c8528b633a
Allow ability to send just call proceeding
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@92 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-05-19 14:34:29 +00:00
James Golovich
2f5952fa86
Make pri_switch2str know about EuroISDN (bug 1348)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@82 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-04-04 21:41:43 +00:00
James Golovich
ee394a7916
Make pri_dump_info print newly added pri->windowlen
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@80 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2004-03-29 09:18:38 +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
Martin Pycko
24b85a379b
Add pri_destroycall
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@55 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2003-08-12 20:16:55 +00:00
Martin Pycko
2809056303
Fix and improve (based on callstates) the hangup routines
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@46 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2003-08-05 01:00:45 +00:00
Mark Spencer
5137d733f9
Add National ISDN 1 switchtype
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@41 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2003-05-28 22:34:59 +00:00
Martin Pycko
6e8e051464
Don't send IE field 'Sending Complete' when we want to do overlap dialing (sending)
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@39 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2003-05-15 19:35:05 +00:00
Martin Pycko
af1366fcde
Add sending INFORMATION messages
...
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@34 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2003-03-24 21:52:51 +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