59 Commits

Author SHA1 Message Date
Stefan Knoblich
6c4e94774f Codingstyle cleanup
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@535 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-09-06 19:40:40 +00:00
Stefan Knoblich
ff19726bd0 Add initial Basic Rate Interface (BRI) support...
Short summary of changes:
    (Massive) rework of the Q.921 layer
    Q.931 changes to get BRI PTMP working and cleanups (more to come...)
    Add Hi-Layer compat and Progress IE to outgoing SETUP messages
    Improve handling of call tear-down in zap_isdn.c
    Open ZAP I/O channels after processing the dialplan for incoming calls
    Bearer Capability and Channel ID IE handling improved for BRI/PRI and A-law/u-law

    ...and a lot of other small changes



git-svn-id: http://svn.openzap.org/svn/openzap/trunk@512 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-08-22 16:55:01 +00:00
Stefan Knoblich
af1bcca8e4 [Q.931] INFORMATION message is 0x7b not 0x7a
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@501 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-07-08 14:45:41 +00:00
Anthony Minessale
d06ede0e44 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@437 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-04-02 20:24:54 +00:00
Anthony Minessale
32d5cd1ab6 build with all the strict flags on
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@402 a93c3328-9c30-0410-af19-c9cd2b2d52af
2008-02-18 17:17:38 +00:00
Michael Jerris
3f2097c49b Add files for 5ess Dialect, numerous formatting and typo fixes. MODENDP-43 and MODENDP-44.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@346 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-11-22 09:28:40 +00:00
Michael Jerris
c1f9897ff5 cleanup of service message handling, add separate dialects for dms and national.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@290 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-25 16:00:24 +00:00
Michael Jerris
2f9a50556f hack in DMS service message support
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@284 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-21 04:28:28 +00:00
Michael Jerris
ca93ff3fcc add prototype.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@258 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-14 04:52:21 +00:00
Michael Jerris
06c9547078 properly send release complete
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@254 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-14 02:02:56 +00:00
Michael Jerris
0b24196b4b handle the crv flag
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@249 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-13 01:52:19 +00:00
Michael Jerris
6d857dc808 add auto acks.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@246 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-12 01:38:45 +00:00
Michael Jerris
c0d9b613bd add enum helpers
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@245 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-11 22:11:58 +00:00
Michael Jerris
577ffc85b5 Add beginning of auto-restart functionality
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@179 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 16:30:20 +00:00
Michael Jerris
ecfacdef7e remove codeset form generic message struct, it doesn't belong there, this is still messy, need a cleaner way.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@178 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 15:32:37 +00:00
Michael Jerris
0d489b1a52 better implement Q931Uie_GenericDigits.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@172 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 02:42:32 +00:00
Michael Jerris
fcade4c016 missing ()
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@171 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-28 22:49:54 +00:00
Michael Jerris
7c17b9c136 Start of support for codesets and shift operation in messages.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@170 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-28 22:48:13 +00:00
Michael Jerris
53f6f60ba8 Added typedefs for some functions to simplify the declarations for the function pointer tables and the header files.
API rework to simplify the Umes functions.  


git-svn-id: http://svn.openzap.org/svn/openzap/trunk@169 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-28 22:00:14 +00:00
Michael Jerris
231762faae move ie definitions and declarations to a new header file.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@168 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-28 03:14:24 +00:00
Michael Jerris
009cf92d21 add codeset enum.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@167 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-28 02:59:34 +00:00
Michael Jerris
f1ba087a11 Tweak and add some defines.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@164 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-27 15:01:40 +00:00
Michael Jerris
479628543d better compliance with Q.931 on a few ie pack/unpack functions. Revert to using the corrected functions for national dialect.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@154 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-26 01:02:43 +00:00
Michael Jerris
4aa98bc03b add Q931MegGetIE function to simplify the Pmes functions.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@147 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 20:16:45 +00:00
Michael Jerris
47ce357ccb need to count by 2's
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@145 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 17:29:22 +00:00
Michael Jerris
3e8c6d83b2 error -> error name.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@143 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 17:19:03 +00:00
Michael Jerris
b8bfc4c8e4 api rework to pass the Q931mes_Generic pointer into the message pack functions, and out of the message unpack functions. Move Q932 to use the generic message type.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@140 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 16:21:57 +00:00
Michael Jerris
4f86bcc241 Use the same Q931mes_Generic for all messages for simplicity.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@137 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 14:27:20 +00:00
Michael Jerris
8a47dc9b4c add initial National ISDN Dialect.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@132 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 04:12:15 +00:00
Michael Jerris
803b42ac76 get building on windows again.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@131 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 04:11:32 +00:00
Michael Jerris
71f4590889 the size in ie packets is the size of the contents, not the whole ie.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@115 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 20:10:20 +00:00
Anthony Minessale
46b96bac7d kindof working t203 timer
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@114 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 19:47:35 +00:00
Michael Jerris
b208dfd237 add some timers
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@113 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 19:26:53 +00:00
Anthony Minessale
b5d1ff62b6 add more couters, better process vs and vr
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@110 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 18:19:04 +00:00
Anthony Minessale
25e0f9443d cast
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@108 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 16:14:47 +00:00
Michael Jerris
f2eb322de8 add Q931InitMesRestartAck
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@103 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 22:24:43 +00:00
Anthony Minessale
b67a52b142 w00t
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@102 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 22:07:05 +00:00
Michael Jerris
2e097a54ef change prototype
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@101 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 19:22:09 +00:00
Michael Jerris
6be4a026fd add Q921Start
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@100 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 19:21:55 +00:00
Michael Jerris
33f9f436aa add separate private data for tx to 2 and 4.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@98 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 16:33:13 +00:00
Michael Jerris
29d460e725 add separate private data for tx to 1 and 3.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@97 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 16:27:40 +00:00
Michael Jerris
598d8df49a rework 921/931 api.
Move the Tx callbacks on each to be trunk specific, not global so that we can set them per trunk.
Change prototypes for the Tx callbacks so that they pass a trunk specific private pointer to the Tx callbacks so that 921 and 931 can call each other directly.
change 921 so that it doesn't use a static array for it's trunk structure to match 931
use more enums.
more to come....

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@96 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 08:03:20 +00:00
Michael Jerris
f88576f4bb let us use either static or dynamic trunk handles.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@94 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 04:25:04 +00:00
Michael Jerris
ce854247e3 add function to initialize a new trunk.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@92 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 02:45:42 +00:00
Michael Jerris
3ad3dca0f3 missing changes from previous commit.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@89 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 01:29:31 +00:00
Michael Jerris
1ae656094c default to 4 trunks max at compile time.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@87 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 01:26:00 +00:00
Michael Jerris
ca278fa2f1 add functions to initialize a trunk, and a public function to receive from layer 3 that sends an I frame.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@86 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 01:25:35 +00:00
Anthony Minessale
f969341e86 change linefeeds
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@85 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 23:29:33 +00:00
Michael Jerris
bf315e8b38 resolve msvc warning C4244
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@82 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 20:41:41 +00:00
Michael Jerris
2201f355ee resolve msvc warning C4267
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@81 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 20:34:49 +00:00