Commit Graph

465 Commits

Author SHA1 Message Date
Norbert Weyrich 7126cf843a fix mi_encode_channel_id(): channel number was not set 2012-08-20 11:42:42 +02:00
Karsten Keil 5a8bc05f3b Fix encoding channel ID for PRI
Found-by: Norbert Weyrich <norbert.weyrich@tennet-hh.de>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-20 09:50:34 +02:00
Karsten Keil f5aa175db8 Fix compiler warnings (taken as errors now)
Found-by: Norbert Weyrich <norbert.weyrich@tennet-hh.de>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-20 09:31:38 +02:00
Karsten Keil 1204f681d4 Version 2.0.15
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-17 13:03:09 +02:00
Karsten Keil 9258c1a065 Make fsm timer independant from layer3 struct
The fsm routines could be used in other parts now.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-17 13:00:23 +02:00
Karsten Keil 7aeadbfe54 Fix more compiler warnings
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-17 12:58:30 +02:00
Karsten Keil edb78c7988 New testlayer3 example code
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-09 23:19:46 +02:00
Karsten Keil 71ee19a7d8 Fix compiler warnings
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-04 14:40:56 +02:00
Karsten Keil 5b3115b04f Fix filename to save incoming traffic
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-03 14:26:12 +02:00
Karsten Keil 1db3255c87 Silence the Makefile tests
The Makefile tests do not need to be printed all the time.
Add some more files to .gitignore

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-03 09:11:10 +02:00
Karsten Keil debd47d018 Remove autogenerated files
Many users difd report problems to compile this package because
they had installed different versions of the autotools.
From now it is not longer possible to compile this package without
having autotools installed.

You can generate the the autotool files simply with running 'make'.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-02 12:46:39 +02:00
Karsten Keil 69ef0bad77 Fix wrong include directory in Makefiles
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-02 12:03:54 +02:00
Andreas Eversberg bb97b27d9a Add 3PTY call facility to suppserv 2012-08-02 09:45:43 +02:00
Karsten Keil 9e69a0e70e Merge branch 'socket' of ssh://git.misdn.eu/mISDNuser into socket 2012-07-31 19:26:12 +02:00
Karsten Keil 68c1ccb816 RW locking for lists in capi structs
To avoid races and segfaults on cleardown introduce
locking for main lists.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-07-31 19:23:09 +02:00
Karsten Keil 5bd3e650f9 Version 2.0.14
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-07-31 09:16:59 +02:00
Karsten Keil 91c5d28565 Remove extension bit from the channel number
On PRI the extension bit is not part of the channel number.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-07-31 09:01:38 +02:00
Karsten Keil 7c5fb25ef2 Version 2.0.14
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-07-26 15:16:28 +02:00
Karsten Keil 5ab6448f0f New tool to convert plain text ISDN traces into wireshark format
This tool is not really related to mISDN, but could be useful
for development. It takes plaintext hexdump D-channel traces as input
and writes a EyeSDN wireshark trace.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-06-07 13:53:09 +02:00
Karsten Keil a24737fa8b Changes for auto files
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-30 18:53:31 +02:00
Jānis Rukšāns 46c29c8a22 Fix references to source tree in VPATH builds
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-30 18:48:58 +02:00
Jānis Rukšāns cb3126f001 Honour installation directories passed to configure
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-30 18:48:25 +02:00
Karsten Keil de306af6fa Fix missing valid PROGRESS in state 4
If a valid PROGRESS message was sent form the network after ALERTING
wie did sent a wrong STATUS about receiving a invalid message in this state.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-29 13:29:52 +02:00
Karsten Keil 4ec9937ca2 Some more files to ignore after a build was done
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-29 13:26:55 +02:00
Karsten Keil 78179356a6 Avoid crash in get_lPLCI4Id()
Maybe in a race on setup/cleanup the links
are broken.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-24 15:25:48 +02:00
Karsten Keil 30deb395fc Fix wrong format
The usually value for lpi is 98.0 not 96.0, use
100.0 as limit for fine resolution.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-22 22:29:32 +02:00
Karsten Keil 376ab1d56d Fix crash on wrong message length
If a CAPI message was bigger as it was indicated, the buffer
length was not set at all. Now use the indicated length.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-13 19:23:42 +02:00
Karsten Keil 14a8d067c1 Version 2.0.13
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-13 16:56:24 +02:00
Karsten Keil e1e4b94a01 Fix double NCCI allocation
The capi thread or the B-channel worker thread can create the faxcontext. We need a lock
to protect the operation, sometimes we did create 2 NCCIs.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-13 16:27:17 +02:00
Karsten Keil 4e00f3a218 Some minor fixes/enhancments for debug otput
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-13 16:25:54 +02:00
Karsten Keil 84f4346d60 More debug
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-11 18:42:18 +02:00
Karsten Keil 28c218f092 Set B2 transparent mode correct
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-11 18:40:00 +02:00
Karsten Keil dfeb430e9c Fix warning about uninitialized variables
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-11 17:58:40 +02:00
Karsten Keil 28e7f4552f Handle changed type for capi_mod.h IsInstalled member
Version 2.0.12

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-11 17:51:39 +02:00
Thomas Jarosch dfa4b851ef No need to check unsigned variable for less than zero
cppcheck reported:
[lib/layer3/q931.c:429]: (style) Checking if unsigned variable 'screen' is less than zero.
[lib/layer3/q931.c:455]: (style) Checking if unsigned variable 'screen' is less than zero.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-02 16:12:49 +02:00
Thomas Jarosch 0028a07500 Fix file descriptor leak on error
cppcheck reported:
[capi20/faxl3.c:207]: (error) Resource leak: fd

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-02 16:12:44 +02:00
Thomas Jarosch d129f9a272 Fix wrong argument to sizeof() call inside memset()
--Boundary-01=_TmXdPquVkL/6TeR
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit

We were passing the pointer size instead of the structure size.

cppcheck reported:
[bridge/bridge.c:547]: (warning) Using size of pointer mISDNport instead of size of its data.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-05-02 16:12:37 +02:00
Karsten Keil 49271ab9d1 Version 2.0.11
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-30 02:42:26 +02:00
Karsten Keil db4516611e Set configured faxmodems
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-30 02:39:58 +02:00
Karsten Keil 63c29c32a8 Fix fax issue for 32 bit architectures
Nasty bug and hard to find. On 64 it did work because
the header size is 2 * 32 bit = 64 bit so the pointer to the header
has the same size.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-30 02:14:18 +02:00
Karsten Keil c5650d5d5e Version 2.0.10
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-22 09:35:36 +01:00
Karsten Keil e271ad0271 Add debug for cleanup NCCIs
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-22 09:34:09 +01:00
Karsten Keil 251b6ea9f4 Fix incoming calls
Incoming calls did use the wrong next item when
testing for multiple applications.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-22 09:31:56 +01:00
Karsten Keil 4043b84f3c Version 2.0.9
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-21 15:26:09 +01:00
Karsten Keil 17c2de7e19 Fix listen for more as one application
Fix issues that CIPmask got reset to zero and now
we are removing unused logical contrllers if a
application was deleted.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-21 15:22:40 +01:00
Karsten Keil d010a8996c Set mISDNcapi egid to MISDN_GROUP
To allow access to the filesystem socket the effective group is changed
to the MISDN_GROUP, which is uucp or dialout usually.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-21 15:19:45 +01:00
Karsten Keil db4bc04f95 Fix crash when no FAX ID was sent
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-21 15:15:43 +01:00
Karsten Keil 893ef514a2 Version 2.0.8
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-01 20:16:19 +01:00
Karsten Keil afb86d0859 Merge branches 'capi' and 'karsten' of ssh://git.misdn.eu/mISDNuser-devel into karsten 2012-03-01 20:13:45 +01:00
Karsten Keil 7eaf74738f Allow group access to the unix socket
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-03-01 20:07:04 +01:00