Commit Graph

892 Commits

Author SHA1 Message Date
Anthony Minessale b389c6c056 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@193 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-01 15:34:40 +00:00
Anthony Minessale 9586880085 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@192 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-01 15:25:36 +00:00
Anthony Minessale 6f98842659 add conf
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@191 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-01 00:35:58 +00:00
Anthony Minessale 91ba4e6786 analog for zt works, still need some more for wanpipe
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@190 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-06-01 00:31:50 +00:00
Anthony Minessale 4c9db695b5 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@189 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-31 20:15:16 +00:00
Michael Jerris f5f5991fc8 windows tweak.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@188 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-31 03:12:02 +00:00
Anthony Minessale 65228c6815 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@187 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-31 03:04:26 +00:00
Anthony Minessale a2dea73797 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@186 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-31 02:41:50 +00:00
Anthony Minessale 0f997a1fb9 add guts for zt
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@185 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-30 01:01:32 +00:00
Michael Jerris 9ece0d8ba5 add zt_maintinfo and ZT_MAINT ioctl.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@184 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 20:29:46 +00:00
Michael Jerris 68bc45d429 add zt_spaninfo and ZT_SPANSTAT
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@183 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 20:22:10 +00:00
Michael Jerris cadd9d569b dos2unix
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@182 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 17:51:23 +00:00
Michael Jerris 99b102efc4 fix setting of current codeset.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@181 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 16:47:22 +00:00
Michael Jerris d06d911671 Don't mess with the message before we send it up to level 4.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@180 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 16:38:04 +00:00
Michael Jerris c8f9f19b14 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 1b2f1da9c8 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 722cd21170 prepwork for zt hardware interface.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@177 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 06:53:39 +00:00
Michael Jerris c48ce7994f Correct crv handling.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@176 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 04:13:24 +00:00
Michael Jerris 524ed2ba1c typos.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@175 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 03:15:18 +00:00
Michael Jerris 8c0b033418 off by 1 error in Q931Uie_CalledNum.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@174 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 03:08:41 +00:00
Michael Jerris 8f76c671c1 use Q931Uie_GenericDigits for national isdn setup message parser.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@173 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-29 02:44:14 +00:00
Michael Jerris 68b898c69e 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 27cfa656c3 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 f3fe8c1743 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 4b82de25cc 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 3599a316bb 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 12eb05c035 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
Anthony Minessale 9f9b4e45b9 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@166 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-27 18:14:49 +00:00
Michael Jerris 605f70877f dos2unix
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@165 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-27 16:37:52 +00:00
Michael Jerris 0c8704da07 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
Anthony Minessale 23b3c6936e update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@163 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-27 14:58:01 +00:00
Michael Jerris 1fcd860d73 windows build for mod_openzap.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@162 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-27 05:23:28 +00:00
Michael Jerris 8377f1b192 update windows build.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@161 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-27 04:42:10 +00:00
Anthony Minessale 02be5554d1 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@160 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-26 16:28:46 +00:00
Anthony Minessale b06e0aeea2 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@159 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-26 04:58:35 +00:00
Anthony Minessale 219ac87d22 refactor build
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@158 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-26 04:45:31 +00:00
Anthony Minessale 3a7c7cbc6d refactor build
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@157 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-26 04:44:41 +00:00
Anthony Minessale 1dfb53e3ef change config engine to be more modular
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@156 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-26 04:09:46 +00:00
Anthony Minessale f7bbb68847 analog update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@155 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-26 03:27:31 +00:00
Michael Jerris 65983aa84e 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
Anthony Minessale 864fd5fc6b update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@153 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-25 23:39:01 +00:00
Anthony Minessale 9f03a0ffd6 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@152 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-25 19:37:16 +00:00
Anthony Minessale 6c47bd9db1 add
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@151 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-25 14:57:07 +00:00
Anthony Minessale dd2f271ce5 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@150 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-25 14:42:34 +00:00
Anthony Minessale dc6deb4af8 add dox
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@149 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 22:09:44 +00:00
Anthony Minessale 6b2f8b77cb state machine and echo test
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@148 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 21:57:03 +00:00
Michael Jerris 1673571842 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
Anthony Minessale afb3f35a82 Steps towards parsing NI2 Setup message.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@146 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 18:16:04 +00:00
Michael Jerris adb55eaedc 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
Anthony Minessale 0b76265c61 need blank line at end of file
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@144 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 17:20:27 +00:00
Michael Jerris b9cd7f9160 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
Anthony Minessale 5c243c76be update some macros and analog stuff
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@142 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 16:42:38 +00:00
Michael Jerris 824cf6414f cleanup and simplify the message unpack functions.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@141 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 16:40:03 +00:00
Michael Jerris bbd85a8e99 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 770b88eac0 cleanup.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@139 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 14:42:00 +00:00
Anthony Minessale 0187adfae7 cleanup from generic message header change
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@138 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 14:30:36 +00:00
Michael Jerris 2111722eb0 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
Anthony Minessale 0f491775ec fix test app
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@136 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 13:46:54 +00:00
Anthony Minessale 71eae48913 add new file to Makefile
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@135 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 13:43:44 +00:00
Anthony Minessale bbc2c82aca add new file to Makefile
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@134 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 13:41:43 +00:00
Anthony Minessale df76bafd6d merge
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@133 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 13:39:40 +00:00
Michael Jerris 74b55a890e 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 8ad644fe35 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
Anthony Minessale 6e8a5139ec add basics for analog (wip)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@130 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 03:42:40 +00:00
Anthony Minessale 4b46d222e6 ease debugging for now
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@129 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 02:27:08 +00:00
Anthony Minessale a4363ac2a9 add debug error msg for 931 parse error
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@128 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 01:59:26 +00:00
Anthony Minessale 7ebb574f03 revert back to previous api for 921 callbacks expected return
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@127 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 01:55:26 +00:00
Michael Jerris 96de29a23b dos2unix.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@126 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 01:02:25 +00:00
Michael Jerris 89046a6e5b add zap_isdn.c to windows build.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@125 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 01:02:13 +00:00
Michael Jerris 9c21da494e uninitialized var.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@124 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 01:01:50 +00:00
Anthony Minessale 6e28089604 this is much more correct, we respond to the NT sending RR commands instead of us sending RR commands on the timer.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@123 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 00:53:06 +00:00
Anthony Minessale 1ba035044f make this work for a few more things.. this will probably need to move to a dialect
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@122 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-24 00:51:56 +00:00
Michael Jerris 9e864e6ed7 quick hack to try to get somthing working.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@121 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 22:58:56 +00:00
Anthony Minessale 04ac959cbc big enough buffer for the whole message for our debug
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@120 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 21:15:38 +00:00
Michael Jerris 2b9ed2d398 Return the correct size from the Q931Pmes functions
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@119 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 21:06:33 +00:00
Michael Jerris 52bed6bc1b pass the correct index to the Q931Pie table for the ie pack function.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@118 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 20:47:59 +00:00
Michael Jerris 6228923000 unpack ie's into the ie buffer space, not overwriting the rest of the message structure.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@117 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 20:27:03 +00:00
Michael Jerris cfcaaa148b set the ie to point to the first byte of the ie struct, not the last.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@116 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 20:15:05 +00:00
Michael Jerris 375100f1a3 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 0ca281c3a9 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 fe0bbb8396 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
Michael Jerris 11bb923c0b remove some extra debug messages
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@112 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 18:25:46 +00:00
Anthony Minessale 04d4509a32 getting closer
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@111 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 18:25:23 +00:00
Anthony Minessale 31f79bf237 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 db1af075b6 use the correct sizes
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@109 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 16:15:48 +00:00
Anthony Minessale 9443d75028 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
Anthony Minessale 5e1d3ea15d set size and location correctly
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@107 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 16:14:15 +00:00
Anthony Minessale 5f0b5353d2 dos2unix
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@106 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 16:11:36 +00:00
Michael Jerris ce51441fa0 add message pack and unpack functions for Restart and RestartAck from Jan. Thanks Jan.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@105 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 04:10:50 +00:00
Anthony Minessale bc07decb59 little formatting...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@104 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-23 04:05:34 +00:00
Michael Jerris aecacc27df 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 795f2f6d31 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 2ffac06178 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 b9d3b86363 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 4b3113f56d correct initialization to set the right dialect.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@99 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 17:17:32 +00:00
Michael Jerris b06d0d2589 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 50aba550c9 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 f59812b19c 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 5daa050cb5 missed this one from the last commit.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@95 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 04:33:31 +00:00
Michael Jerris 4373a35c25 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 f3dd2b1cd7 fix default channel setup for things not E1
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@93 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 03:18:23 +00:00
Michael Jerris 36d6b40908 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 7eebf19e08 adjust to filename change.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@91 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 02:45:21 +00:00
Anthony Minessale 62eea6fd81 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@90 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 02:27:50 +00:00
Michael Jerris b8635f17e7 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 36411f16ac add missing header files to the project file.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@88 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-22 01:26:15 +00:00
Michael Jerris ec4ee146d9 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 45268b86af 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 65bf12a048 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
Anthony Minessale 4fb5220f5b update makefile
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@84 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 21:47:30 +00:00
Anthony Minessale 4de078c9e8 dont error on unused function paramaters
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@83 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 20:45:45 +00:00
Michael Jerris 38c513f42f 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 2cf4daf1e5 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
Michael Jerris 38237eb382 fix some type overflow warnings in q921 caused by the math implicitly becoming int.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@80 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 20:28:13 +00:00
Michael Jerris 56007735e4 empty if body on ie that has not yet been implemented.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@79 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 20:08:52 +00:00
Michael Jerris fa37b6630b fix error for unused local variable.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@78 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 20:04:50 +00:00
Michael Jerris ddc578bc1c use () around & ops to clarify order precedence
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@77 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:54:27 +00:00
Michael Jerris 5356f273b1 warning levels on nix build prohibits // comments
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@76 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:48:51 +00:00
Michael Jerris d2e3cc0b8d builds on windows again.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@75 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:43:20 +00:00
Michael Jerris c7747664b3 warning levels on nix build prohibits // comments
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@74 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:37:52 +00:00
Michael Jerris 443fe5b183 more warning stuff.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@73 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:34:43 +00:00
Michael Jerris 1f16b98ca8 warnings cleanup.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@72 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:23:01 +00:00
Michael Jerris 23d2d673c1 warning levels on nix build prohibits // comments
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@71 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:02:28 +00:00
Michael Jerris f2a4b8b14d Q921.c should build now under heavier warning levels.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@70 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 19:00:38 +00:00
Anthony Minessale 0c54b8b50b fixing make...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@69 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 18:57:23 +00:00
Michael Jerris bd9ea03197 normalize using unsigned char for buffers instead of mixed signed/unsigned in isdn code.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@68 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 18:53:58 +00:00
Michael Jerris 23043a7e4d windows build add isdn files
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@67 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 18:51:13 +00:00
Anthony Minessale 0ae4f34c0c fixing make...
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@66 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 18:34:46 +00:00
Michael Jerris 70f5fc6153 checkin q931/q932/q921 code.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@65 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 18:25:36 +00:00
Michael Jerris 5ab3190cc8 fix comment
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@64 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 17:52:09 +00:00
Michael Jerris 379379d7b7 windows build fix
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@63 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 17:51:57 +00:00
Anthony Minessale 5724bd4d6a update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@62 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 17:48:13 +00:00
Michael Jerris 491d7a2fe4 fix leak on pthread failures.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@61 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 15:38:35 +00:00
Michael Jerris f37fb06241 typo
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@60 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 02:47:32 +00:00
Michael Jerris 45d3a0a08e typo
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@59 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 02:45:52 +00:00
Michael Jerris eec3cb0975 typo
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@58 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 02:43:38 +00:00
Michael Jerris d072950e7d typo
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@57 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 02:41:36 +00:00
Michael Jerris 424f6107a6 add detached thread abstraction.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@56 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-21 02:40:06 +00:00
Michael Jerris 89e4d886b2 initial check in of cross platform thread and mutex abstraction (just recursive mutexes so far).
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@55 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 20:30:31 +00:00
Michael Jerris 18b8c77d74 tweak types
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@54 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 15:28:49 +00:00
Michael Jerris e73424f36d tweak types
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@53 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 15:27:29 +00:00
Michael Jerris 8f340bf0e5 add missing header file to sangoma_tdm_api.h.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@52 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 10:35:07 +00:00
Michael Jerris f0834d471c implementations for the cross platform read and write in sangoma_tdm_api.h.
move zap_wanpipe.c to use the read and write from sangoma_tdm_api.h.
cleanups and lots of comments added to sangoma_tdm_api.h
some fixes to sangoma_tdm_api.h to make the api more consistent between windows and nix.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@51 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 10:30:51 +00:00
Michael Jerris d3efe9d8dd cleanup
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@50 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 06:26:05 +00:00
Michael Jerris 7b34a53f9f cleanup, eliminate some global variables.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@49 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 05:59:51 +00:00
Michael Jerris 0b334f6c68 need to pass in pointer.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@48 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 05:51:40 +00:00
Michael Jerris 4ad07a3d05 missing header file.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@47 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 05:48:46 +00:00
Michael Jerris 65cc17159c use WP_INVALID_SOCKET for invalid handles.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@46 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 05:47:37 +00:00
Michael Jerris e8c38d85a8 implement the openzap wanpipe wait function using the cross platform poll from last commit.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@45 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 05:46:09 +00:00
Michael Jerris 90577e4875 an attempt to put a cross platform poll into the header file. This is really wrong as we can't differentiate between in band and oob on windows right now.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@44 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 04:56:51 +00:00
Michael Jerris deb8d2bb36 fix on timeout
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@43 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 04:48:56 +00:00
Michael Jerris 6424510af9 move wanpipe's close function to the cross platform abstraction.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@42 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 04:14:23 +00:00
Anthony Minessale 426739b6b9 interval
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@41 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 01:50:01 +00:00
Michael Jerris 425083a45d some cross platform cleanup.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@40 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-20 00:11:11 +00:00
Michael Jerris 69bd1dab46 little cleanup.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@39 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-19 23:41:02 +00:00
Michael Jerris 03ec9197c6 windows implementations for wanpipe read and write functions.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@38 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-19 23:00:58 +00:00
Michael Jerris ed59987e25 windows build building again. most of the functions filled in for windows. more to come!
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@37 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-19 05:05:29 +00:00
Anthony Minessale 9fd18e7e1a add dtmf generation and pause to let mike have a turn
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@36 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-19 04:07:48 +00:00
Anthony Minessale f2be1a9a22 add a bunch of goodies
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@35 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-19 00:50:50 +00:00
Anthony Minessale 8364a82fe9 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@34 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 18:28:32 +00:00
Anthony Minessale bb5824c160 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@33 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 18:20:27 +00:00
Anthony Minessale f595e44975 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@32 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 18:20:10 +00:00
Anthony Minessale 604913efef update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@31 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 18:17:33 +00:00
Anthony Minessale 6afad1d2d0 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@30 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 17:50:37 +00:00
Michael Jerris d11cf99269 type tweak
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@29 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 15:17:27 +00:00
Anthony Minessale 09e864a8ba update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@28 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 14:08:30 +00:00
Michael Jerris 2511f8ff0e step towards building on windows again.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@27 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 05:33:19 +00:00
Anthony Minessale 60e7073544 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@26 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 04:46:42 +00:00
Anthony Minessale 73ca7fc464 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@25 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 04:18:19 +00:00
Anthony Minessale 40ae249d89 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@24 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-18 03:31:09 +00:00
Anthony Minessale 2dcf9de997 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@23 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 21:58:11 +00:00
Anthony Minessale 0c1eacbf25 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@22 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 20:28:38 +00:00
Michael Jerris 7d5bd9cd6e zap_wanpipe.c now builds clean on windows, you need to have AFT_beta_6_0_2_5 in a paralell directory to the main openzap directory. File available from: ftp://ftp.sangoma.com/WINDOWS/AFT/AFT_beta_6_0_2_5.zip
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@21 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 19:19:03 +00:00
Michael Jerris 27239d5f78 conditional expression is constant
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@20 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 17:28:35 +00:00
Michael Jerris ff19eef0d0 explicitly make initialized value a float.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@19 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 17:26:36 +00:00
Anthony Minessale 5cf9a1a608 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@18 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 17:25:13 +00:00
Anthony Minessale 93f95458f5 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@17 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 17:25:01 +00:00
Anthony Minessale 5175361bcc update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@16 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 16:58:11 +00:00
Anthony Minessale de432ce258 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@15 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 16:57:26 +00:00
Michael Jerris 719bc15057 windows build, add missing files.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@14 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 15:08:37 +00:00
Anthony Minessale f0b32746aa add some weapons to arsenal
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@13 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 14:56:12 +00:00
Michael Jerris db0801c82d more windows build tweaks
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@12 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 04:16:52 +00:00
Michael Jerris 4ce6cb1cf9 clean up windows build
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@11 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 03:42:38 +00:00
Anthony Minessale 7e3412baf1 add core wanpipe headers etc and tweak build flags
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@10 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 03:31:21 +00:00
Anthony Minessale fcbd79567c update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@9 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-17 01:54:30 +00:00
Michael Jerris ae336c4894 initial check-in of msvc build.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@8 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-16 22:56:27 +00:00
Anthony Minessale fb39783d83 organize
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@7 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-16 22:04:22 +00:00
Anthony Minessale b1993a6533 organizw
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@6 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-16 21:59:11 +00:00
Anthony Minessale c991a3c52d update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@5 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-16 21:15:51 +00:00
Anthony Minessale 6c06cee9e5 update
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@4 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-16 21:13:07 +00:00
Anthony Minessale fc1a44c41d move
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@3 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-16 21:12:07 +00:00
Anthony Minessale 92cfdfe262 w00t
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@2 a93c3328-9c30-0410-af19-c9cd2b2d52af
2007-05-16 20:36:40 +00:00