Commit Graph

298 Commits

Author SHA1 Message Date
Karsten Keil 07ef547eb9 Install a udev rules file for mISDN
The timerdevice should be accessible for a special group, you
can select the group via --with-mISDN_group=<group name> during
configure, default is dialout.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-12-06 17:27:41 +01:00
Karsten Keil e1555b96bd Add some tests
- reduce unconditional debug output
2011-11-28 14:34:55 +01:00
Karsten Keil b71e632fd9 Many fixes 2011-11-27 23:03:46 +01:00
Karsten Keil 7e7bf5f0e3 Merge branch 'socket' into capi 2011-11-25 16:42:01 +01:00
Karsten Keil 4c02448833 CAPI20 fax support
- use spandsp
- allows send/receive fax in TIFF format or SFF format (CAPI default)

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-11-25 16:36:12 +01:00
Karsten Keil 2ca3c00f5a Sync with mISDN kernel version
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-11-25 15:20:58 +01:00
Karsten Keil 518db74dea Merge branch 'socket' of /net/pingi5/home/kkeil/git/mISDNuser into karsten 2011-11-24 13:46:47 +01:00
Karsten Keil 5f518b78c6 New tool for layer1 E1 testing
This tool allows some kind of TBR4 layer1 testing.
It does apply the pattern from the TBR4 tests in
annex B.4/B.5 with a HFC E1 card.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-11-24 13:38:51 +01:00
Karsten Keil 2ca8290b66 Add some E1 L1 tests to testcon
Allow testcon to influence E1 L1 states.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-11-24 13:33:51 +01:00
Karsten Keil 41d539f6a9 Sync with kernel version
- added some new control operations for E1 L1 testing

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-11-24 13:32:36 +01:00
Karsten Keil 7adb7b8017 Allow different B data handler
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-29 15:13:58 +02:00
Karsten Keil 29a8d4961e Some code style helper
I would prefer, if the source code for the mISDNuser project
follow the some common style.

This is the my prefered option but I also accept others - but maybe I will
reformat it.

It is nearly the same style the Linux kernel is using, with the exception
that I allow 132 characters per line (kernel has a strict 80 character limit).

To get your file reformatted with this style, simple run this file as script:
./CodeStyle <path to source file>

The script part was copied from the linux kernel sources.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-29 13:53:00 +02:00
Karsten Keil c597f456b5 CAPI 2.0 for voice
The CAPI 2.0 interface now allows voice calls and
fax with capifax (with spandsp).

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-28 12:58:42 +02:00
Karsten Keil 397da2650d Version 2.0.5
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-23 14:56:47 +02:00
Jan Engelhardt 467eb887f8 Fix return value in ParseAOCEChargingUnitInfo
rpmlint of build.opensuse.org stopped hard on an undefined behavior
situation (missing return value).
Not sure if the patch is right, it's based upon other functions with
XSEQUENCE_1 calls.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-23 14:44:21 +02:00
Karsten Keil 48cc089a9e Add listen statemachine
was missing in the last commit.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-21 11:02:10 +02:00
Karsten Keil 3cd9c81ee5 mISDN CAPI2.0 additional files
The deamon now can handle Speech calls.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-21 09:14:45 +02:00
Karsten Keil dfe6d7e8e9 Add HLC decode/encode
Add functions to decode/encod HLC IE.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-20 18:42:03 +02:00
Karsten Keil 6b7d36b3ce Fix debug to stderr in mbuffer inline functions
Remove the fprintf debug usage.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-20 18:40:50 +02:00
Karsten Keil e1916e0240 Add CAPI 2.0 support
Add first files for CAPI 2.0 support.
Not finished yet.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-20 18:34:37 +02:00
Karsten Keil 87d1ff0428 Add HLC decode/encode
Add functions to decode/encod HLC IE.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-20 16:42:05 +02:00
Karsten Keil 5ff423564b Fix debug to stderr in mbuffer inline functions
Remove the fprintf debug usage.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-20 16:41:02 +02:00
Karsten Keil a386555cc4 Fix wrong L2 release in NT mode
In NT mode we should not release TEI 127, if one TEI connection goes down.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-10-15 10:28:48 +02:00
Martin Bachem 2fb043cabc Revert "read/write xhfc registers using MISDN_CTRL_XHFC_CUSTOM_CMD"
This reverts commit 5d650e0bc4.
2011-10-13 10:29:06 +02:00
Martin Bachem 5d650e0bc4 read/write xhfc registers using MISDN_CTRL_XHFC_CUSTOM_CMD 2011-10-11 11:58:57 +02:00
Martin Bachem 72ea0ff23f set/unset hw-testloops using MISDN_CTRL_LOOP 2011-10-11 11:53:45 +02:00
Martin Bachem de30532d94 applies code formatting 2011-10-11 11:53:45 +02:00
Karsten Keil 1a1cf46efa Fix disconnect cause
Sometimes random values were sent.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:31:02 +02:00
Karsten Keil 17db3354b5 New debug interface for applications
Now applications can hookup their own debug functions.
Also special functions for memory allocation and thread
creations can be supplield.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:57 +02:00
Karsten Keil 644e28fa6b Make supplementary services finally work
Fix lot of bugs and implement a interface for applications

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:51 +02:00
Karsten Keil 26ee8f002d Update autogenerated files
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:45 +02:00
Karsten Keil cc22700354 Restructure directories
It seems better to have seperated directories for different
parts of the library and also put the suplementary service
stuff into the same library.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:40 +02:00
Karsten Keil 5d589399aa Add L3 timer 305 activation
timer 305 was not started in every needed case.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:35 +02:00
Karsten Keil 6adc6e9180 Send DL_XXX messages to all processes
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:28 +02:00
Karsten Keil f9fce2e61f Add loopback control
testcon can be used to control loopbacks and layer1 timer 3
value. Update to mISDN kernel release 27.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:23 +02:00
Karsten Keil e18ad5d95c Update to mISDN kernel interface release 26
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:17 +02:00
Karsten Keil 05aaa6b832 Change date encoding to use struct tm
This is more flexible, also add decode function.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:12 +02:00
Karsten Keil 29b5b2d8d0 Add restart IE helper
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:07 +02:00
Karsten Keil 28a849fabc More verbose debug
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:30:03 +02:00
Karsten Keil d9396b4210 Fix T309 value
default of T309 is 90 sec

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:29:59 +02:00
Karsten Keil 8a58ac6154 Add connected number IE helper
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:29:53 +02:00
Karsten Keil 277a3009e4 Exporting cardinfo to applications
the cardinfo is useful for the applications.
Some debug cleanups und enhancements

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-21 15:29:41 +02:00
Karsten Keil 609658c196 Add missed files for ECT and CCBS supplementary services
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 22:34:33 +02:00
Karsten Keil 96a8c0edfe Allow userspace programms to get interface version
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 17:46:16 +02:00
Karsten Keil afc47ea9d8 Add functions to allow PCM bus transactions
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 17:46:00 +02:00
Karsten Keil 4b4f5931c9 New supplementary services implementation
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 17:45:52 +02:00
Karsten Keil 45a0d3b856 Add helper functions to encode and decode L3 messages
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 17:44:50 +02:00
Karsten Keil 10444c84e6 Use a seperate queue for management messages
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 17:44:11 +02:00
Karsten Keil 0368e44240 New interface to request a pid
request_new_pid((struct mlayer3 *ml3) should be used to request
new pids for outgoing calls, it returns imediately the new pid.
The old interface is still here, but will be removed soon.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 17:39:19 +02:00
Karsten Keil 059869acd7 Add none auto hangup mode to testcon
Sometime it is useful to not hangup after 30 sec.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-14 17:39:13 +02:00