Commit Graph

387 Commits

Author SHA1 Message Date
Karsten Keil 85def6d15f Version 2.0.17
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-17 00:47:40 +02:00
Karsten Keil 5d36b4e2b1 Release FAX call imediately if never received anything
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-17 00:46:18 +02:00
Karsten Keil 3d596e2ace Only the highest matched bit position gives the CIP value
CAPI 2.0 spec defines the CIP value indicated by CONNECT_IND
als highest matched bit position, not the higest CIP value
calculated from bearer + HLC info.
This bug caused that if a application did not request listening
for some of the higher bit values a not requested CIP was sent, so the
call was ignored.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-17 00:01:49 +02:00
Karsten Keil 2f83a0448f Inform all applications about incoming calls before handling responses
Implement a method to disable temporary messages from applications to
synchronize the delivery of a incoming call. It is important, that
all listening application get informed before the first answer was handled.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-16 18:30:45 +02:00
Karsten Keil 469b9b5f6b Fix Segmentationfault with unattended calls
if a call was not taken by an application and multiple applications
are listening, it could happen that the PLCI was deleted before we
did sent the CONNECT_IND to all applications.

Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-16 10:44:10 +02:00
Karsten Keil 6b4d631ed5 Version 2.0.16
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-13 15:23:06 +02:00
Karsten Keil 41a71dba03 More warning fixes
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:45:47 +02:00
Karsten Keil 9252f4080c Really use refcounting for the dynamic objects
Add listing dangling objects via SIGUSR2.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:36:55 +02:00
Karsten Keil 18e7679a58 Make the current version compatible to recent kernel stuff
Also allow backward compatibility to older standalone kernel drivers.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:36:08 +02:00
Karsten Keil 9f5e9dc1c9 Add dumping status information via SIGUSR1 into the debug file
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-09-13 14:35:54 +02:00
Karsten Keil 269b5707d0 Add cause value 19 No answer from user (user alerted)
Signed-off-by: Karsten Keil <keil@b1-systems.de>
2012-09-07 10:20:18 +02:00
Norbert Weyrich 30721084cb fix pres handling in mi_encode_connected_nr() improved 2012-08-30 12:29:46 +02:00
Karsten Keil 4d2e215461 pthread functions return error directly, not via errno
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:47:46 +02:00
Karsten Keil c594a8bbc1 Fix B-channel thread shutdown
- Add a timeout in the B-channel handler to catch a broken
  downlinks on release
- Do not join the own thread
- pthread functions return error directly, not via errno
- better debug messages

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:47:20 +02:00
Karsten Keil c89f4f31da Release ncci and fax struct on a not successful Fax call
We did lost memory when no fax was tranfered on a fax call.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:46:54 +02:00
Karsten Keil 7994aa6305 More checks and locking to avoid access to released BIlink
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:46:09 +02:00
Karsten Keil 657cfb1e01 Fix error path on failed FaxInit
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:43:14 +02:00
Karsten Keil f66da21a40 Fix extracting a CIP mask from incoming calls
Not only the bit of the cip value has to be set, also
the more generic bearer service bit (not depending on HLC)
need to be set.
Without the fix valid calls got ignored.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:39:01 +02:00
Karsten Keil 35e8fcea38 Log some message in debug mode when the l3dss1_dummy was called
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:00:31 +02:00
Karsten Keil 7db4a56a06 Use proper cause defines
Add CAUSE_FACILITY_REJECTED to defined cause values.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 08:00:19 +02:00
Karsten Keil b7ab37c014 Fix warnings if debug options are used
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-30 07:58:03 +02:00
Thomas Jarosch f5f02cea08 Fix compile warning detected by -Werror
text_wireshark.c: In function 'main':
text_wireshark.c:181: error: 'infilename' may be used uninitialized in this function
text_wireshark.c:182: error: 'outfilename' may be used uninitialized in this function

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2012-08-24 13:12:56 +02:00
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