Commit Graph

303 Commits

Author SHA1 Message Date
Russell Bryant
a80635e804 Remove unnecessary usage of the extern keyword.
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@505 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-12-26 17:35:41 +00:00
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
79bb2373f9 Improve the parameter name to better reflect its use
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@493 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-12-05 00:20:13 +00:00
Matthew Fredrickson
dd553ed543 More PTMP fixes. Stand by, more changes to come
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@492 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-12-05 00:12:54 +00:00
Matthew Fredrickson
813b2d1176 More magic to make BRI CPE PTMP work
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@491 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-12-04 18:01:51 +00:00
Matthew Fredrickson
581287c8dc Make sure we loop BRI call references for one byte CREFs instead of two
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@487 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-11-21 22:30:09 +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
Kevin P. Fleming
9857425714 Merged revisions 479 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

................
r479 | kpfleming | 2007-10-22 10:10:06 -0500 (Mon, 22 Oct 2007) | 11 lines

Merged revisions 478 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r478 | kpfleming | 2007-10-22 10:09:27 -0500 (Mon, 22 Oct 2007) | 3 lines

we need to include stddef.h for 'size_t'


........

................


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@480 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-10-22 15:15:31 +00:00
Matthew Fredrickson
ad076ee67b Make sure that we only output the message handling debug when we're actually debugging
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@473 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-10-13 16:00:09 +00:00
Jason Parker
8bb0942f1a Merged revisions 470 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

(closes issue #10832)
........
r470 | qwell | 2007-10-05 11:45:39 -0500 (Fri, 05 Oct 2007) | 4 lines

Fix an incorrect pri_event structure definition.

Issue 10832, patch by flefoll

........


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@471 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-10-05 16:46:18 +00:00
Matthew Fredrickson
9e05c336b1 Fix user-user IE order in setup message (#10705)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@469 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-09-25 21:56:47 +00:00
Matthew Fredrickson
b4970d79e9 Merged revisions 465 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

........
r465 | mattf | 2007-09-14 16:32:54 -0500 (Fri, 14 Sep 2007) | 1 line

Fix for #10189.  Make sure we properly report the user layer 1 for H.223 and H.245
........


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@466 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-09-14 21:34:11 +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
Jason Parker
68b9ad1084 Merged revisions 446 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

................
r446 | qwell | 2007-08-27 14:21:08 -0500 (Mon, 27 Aug 2007) | 10 lines

Merged revisions 445 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r445 | qwell | 2007-08-27 14:20:23 -0500 (Mon, 27 Aug 2007) | 2 lines

Make sure we build both the static and shared modules with -fPIC.

........

................


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@447 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-08-27 19:22:03 +00:00
Jason Parker
f611084923 Merged revisions 441 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

(closes issue #10253)
........
r441 | qwell | 2007-08-06 14:58:19 -0500 (Mon, 06 Aug 2007) | 4 lines

Allow setting CC to something with a space, such as `make CC="gcc -m32"`

Issue 10253.

........


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@442 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-08-06 19:58:56 +00:00
Matthew Fredrickson
a19cc73b41 Revert that back to how it was
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@430 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-06-20 15:18:34 +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
453e006faa Merged revisions 427 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

................
r427 | mattf | 2007-06-19 13:23:36 -0500 (Tue, 19 Jun 2007) | 9 lines

Merged revisions 426 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r426 | mattf | 2007-06-19 13:22:33 -0500 (Tue, 19 Jun 2007) | 1 line

Try to send pending facility messages if we receive alerting (for when we don't get proceeding) (#9651)
........

................


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@428 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-06-19 18:24:20 +00:00
Matthew Fredrickson
3fba8aa932 Merged revisions 424 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

................
r424 | mattf | 2007-06-06 16:58:22 -0500 (Wed, 06 Jun 2007) | 9 lines

Merged revisions 423 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r423 | mattf | 2007-06-06 16:57:15 -0500 (Wed, 06 Jun 2007) | 1 line

Oops, that should not be on one line
........

................


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@425 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-06-06 21:59:19 +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
f5d76bd5d2 Merged revisions 416 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

................
r416 | mattf | 2007-06-06 08:22:15 -0500 (Wed, 06 Jun 2007) | 10 lines

Merged revisions 415 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r415 | mattf | 2007-06-06 08:20:05 -0500 (Wed, 06 Jun 2007) | 2 lines

Make sure we only send the NFE when we are talking QSIG

........

................


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@417 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-06-06 13:23:29 +00:00
Matthew Fredrickson
0a62b72633 Commit path for ROSE-12 and ROSE-13 support (#9076)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@413 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-05-25 17:36:28 +00:00
Matthew Fredrickson
ec3b7c156e Merged revisions 390 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

................
r390 | mattf | 2007-01-22 16:29:24 -0600 (Mon, 22 Jan 2007) | 10 lines

Merged revisions 389 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r389 | mattf | 2007-01-22 16:20:59 -0600 (Mon, 22 Jan 2007) | 2 lines

Make sure we send DISCONNECT if we reached the active state and a call is disconnected, regardless of cause code.

........

................


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@393 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-01-23 22:02:44 +00:00
Matthew Fredrickson
bcee9e2fd6 Fix mess up in up-port
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@392 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-01-23 22:01:28 +00:00
Matthew Fredrickson
054a30cd94 Merged revisions 389 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

........
........


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@391 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2007-01-22 22:31:13 +00:00
Joshua Colp
fd22b45abb Merged revisions 386 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.4

................
r386 | file | 2006-12-30 14:17:34 -0500 (Sat, 30 Dec 2006) | 10 lines

Merged revisions 385 via svnmerge from 
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r385 | file | 2006-12-30 14:16:17 -0500 (Sat, 30 Dec 2006) | 2 lines

Specify full path to restorecon instead of assuming it will be available from what is in $PATH. (issue #8670 reported by djflux)

........

................


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@387 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-12-30 19:18:43 +00:00
Matthew Fredrickson
9a0d8c4df9 Remove pointless recursion. (#8281)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@382 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-11-03 18:16:49 +00:00
Kevin P. Fleming
c7f3a4b899 set up merge tracking from 1.4 branch
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@374 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-09-20 21:00:58 +00:00
Matthew Fredrickson
342c1f81ca Make sure we send any pending facility APDUs after we receive proceeding. #7551
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@367 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-28 14:41:57 +00:00
Matthew Fredrickson
9969553056 Make IE debug more consistent and readable. (#7559)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@366 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-21 15:55:54 +00:00
Matthew Fredrickson
9037525b7b Improve call state handling code. (#7269)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@365 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-21 15:43:31 +00:00
Russell Bryant
f245f64a2e Blocked revisions 360 via svnmerge
........
r360 | russell | 2006-07-12 15:08:31 -0400 (Wed, 12 Jul 2006) | 2 lines

ensure buffer is initialized (issue #7512, klaus3000)

........


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@361 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-12 19:09:07 +00:00
Russell Bryant
cd91dba660 ensure buffer gets initialized (issue #7512, klaus3000)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@359 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-12 19:04:12 +00:00
Matthew Fredrickson
a24748c0f8 Fix for #7378, namespace collision issue.
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@357 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-07 15:35:48 +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
Kevin P. Fleming
8192b42674 prepare for new zaptel.h location
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@355 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-07-05 16:17:05 +00:00
Kevin P. Fleming
de00a26f71 remove support for CVS checkouts
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@354 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-06-19 15:18:47 +00:00
Kevin P. Fleming
fe9fff6dcb revert change that didn't actually change anything, and fix formatting of conditional expression so it's more clear what it does
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@352 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-06-08 22:34:25 +00:00
Matthew Fredrickson
2ce7890fdd Make sure we don't send display if callername is set to a 0 length string.
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@351 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-06-08 22:16:55 +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
7db8af4b80 Minor state fix (#7269)
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@348 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-06-02 16:06:27 +00:00
Matthew Fredrickson
a33fd59dc6 Fix for 7115. Don't call pri_message multiple times
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@346 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-06-02 14:34:20 +00:00
Matthew Fredrickson
a3ee176154 Fixes so that fields are initialized in events from #7241. Thanks flefoll!
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@343 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-06-01 18:00:31 +00:00
Kevin P. Fleming
f316eed834 this is a portable sh script, not a bash script
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@336 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-05-09 08:22:27 +00:00
Kevin P. Fleming
c6ccbf69ca restore functionality for Debian with FreeBSD kernel without breaking regular FreeBSD
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@335 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-05-09 08:21:45 +00:00
Matthew Fredrickson
f10e2174b4 FreeBSD fixes for build process
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@334 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-05-09 08:15:51 +00:00
Kevin P. Fleming
fd75f5ade1 Merged revisions 316,323,327,332 via svnmerge from
https://origsvn.digium.com/svn/libpri/branches/1.2

........
r332 | kpfleming | 2006-04-30 10:17:47 -0500 (Sun, 30 Apr 2006) | 3 lines

set LDCONFIG_FLAGS for GNU/kFreeBSD as well
use the flags during installation

........


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@333 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-04-30 15:20:00 +00:00
Matthew Fredrickson
ed9c90a985 Make sure we pass the call back in setup_ack
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@328 2fbb986a-6c06-0410-b554-c9c1f0a7f128
2006-04-27 16:09:11 +00:00