Commit Graph

55 Commits

Author SHA1 Message Date
Andreas Eversberg d941534036 Merge pull request 'Add "morsegerman" parameter; fix german tone pattern timings' (#5) from nt2mku/osmo-cc-misdn-endpoint:nt2mku/work into jolly/work
Reviewed-on: #5
ones" will generate morse-a dialtone (pre-1979).
2024-02-04 16:38:52 +00:00
Dennis Grunert 8bf932d5fa Add "morsegerman" parameter; fix german tone pattern timings
- Parameter "morsegerman" for option "local-tones" will generate morse-a dialtone (pre-1979).
- Fixed german tone pattern timings according to 1TR110-1 Chapter 8
  * Busy tone: 480ms on / 480ms off
  * Hangup tone: 480ms on / 480ms off
  * Old german ringing: 1000ms on / 4000ms off
  * Old german busy/hangup tone: 125ms on / 475ms off
2024-02-04 00:28:50 +01:00
Andreas Eversberg 9b312f04e5 Merge pull request 'Change IE_METERING timing information from deciseconds to seconds and milliseconds; Fix: AOC-D unit information length; encode AOC-E according to real traces; Add option to disable seconds in time/date IE' (#4) from nt2mku/osmo-cc-misdn-endpoint:nt2mku/work into jolly/work
Reviewed-on: #4
2024-01-29 16:07:01 +00:00
Dennis Grunert 5d2f50b98a Change IE_METERING timing information from deciseconds to seconds and milliseconds 2024-01-29 10:58:54 +01:00
Dennis Grunert 4672e35a13 Fix: AOC-D unit information length; encode AOC-E according to real traces; Add option to disable seconds in time/date IE
- Fix: AOC-D unit information length was set to 1 despite its actual length
- Removed optional BillingID from AOC-E data
- Cross-checked AOC-D and AOC-E IEs to other systems (Audiocodes Mediant 800; traces found in public sources)
- Tested with ISDN TEs: Siemens Profiset 51, T-Concept P522, Philips SOPHO ErgoLine, sphairon NT1PLUS-split; K1297 ISDN protocol tester
- Attach AOC-E to DISCONNECT or RELEASE; transmit AOC-E even if zero units have been charged
- Send AOC-D with zero units to indicate free of charge call
- New option "time-no-seconds" disables sending current seconds within the date/time IE
2024-01-29 02:44:03 +01:00
Andreas Eversberg a8c0f40862 Updated libs 2024-01-27 09:41:50 +01:00
Andreas Eversberg 9b6b127873 fixup cc 2024-01-27 09:41:16 +01:00
Andreas Eversberg 71cc533e8e fixup cc 2024-01-24 21:04:22 +01:00
Dennis Grunert e39db4cffd AOC-S: Changed typeOfCharging to stepFunction
The durationCurrency typeOfCharging=stepFunction is more suitable to a per-unit metering than continuousCharging. stepFunction implies start of the first unit at call connect - for normal calls without additional unit charges for call setup, chargedItem CallSetup is set to FreeOfCharge.
Source: ETS 300 178
Tested with Bluephone and Clubtelefon 5 ISDN.
2024-01-18 18:39:05 +01:00
Dennis Grunert a390e93d9a AOC-S: Use variable time unit length (1...3 Bytes). Fixes wrong time calculation on Clubtelefon 5 ISDN 2024-01-18 18:39:04 +01:00
Dennis Grunert dfa07323c3 AOC-S time scale adjusted 2024-01-18 18:39:02 +01:00
Dennis Grunert cd7f1f8590 AOC information as separate facility messages for compatibility (CONNECT-attached AOC-D IE ignored by NT1plus) 2024-01-18 18:39:00 +01:00
Dennis Grunert 3779fd3034 Handling of unknown facility indications from terminals 2024-01-18 18:38:58 +01:00
Dennis Grunert 1e83fdfaad Changed AOC-D encoding value of TypeOfChargingInfo from Total to SubTotal
encodeAOCDChargingUnitOperation() set the value of TypeOfChargingInfo to Total, which results in ISDN phones not correctly displaying increasing units. Setting it to SubTotal fixed the issue.
2024-01-18 18:38:56 +01:00
Dennis Grunert ea6f1bec84 AOC-D and AOC-S facility generation from CC metering information
If metering details via IE_METERING are received from osmo-cc, AOC-S and/or AOC-D facility IEs are attached to PROCEEDING/ALERTING/CONNECT messages, and AOC-D facility messages are generated during the call. This feature can be enabled by setting 'aocs' and/or 'aocd' within the mISDN endpoint configuration.
2024-01-18 18:38:54 +01:00
Andreas Eversberg da94632e6e Move from local to external osmo* libraries
src/libdebug -> libosmocore
src/libselect -> libosmocore
src/libtimer -> libosmocore
src/libosmocc -> libosmo-cc
src/libg711 -> libosmo-cc
2024-01-18 18:38:50 +01:00
Andreas Eversberg 805ed34740 Updated libs 2024-01-07 18:07:42 +01:00
Andreas Eversberg fe60d15a20 Updated libs 2023-08-19 15:27:53 +02:00
Andreas Eversberg b4f5e950fc Fix channel selection for PTMP/NT-Mode
Channel selection in that mode must be forced, so that the TE nay not
select a different channel. In that mode the TE cannot know what
channel is allocated, so it cannot select a different channel.

Eumex PBX rejects calls without this fix.
2023-08-19 10:55:19 +02:00
Andreas Eversberg 3d385fd095 Fix brigde daemon forking; no more 'defunct' child process 2023-03-12 15:58:12 +01:00
Andreas Eversberg 72043327b9 Send two B-channel frames when first frame is received
The size of both frames match the receive size.
2023-03-04 18:47:19 +01:00
Andreas Eversberg de611e513d Debugging of libmisdn shows file and line now 2023-01-23 19:17:24 +01:00
Andreas Eversberg 8c10ee4a26 Replace polling by select and timer events 2023-01-23 18:36:36 +01:00
Andreas Eversberg 3e970cbc48 Updated libs 2023-01-22 19:52:38 +01:00
Andreas Eversberg 6b3911fc26 Add confirm message to ph_driver 2023-01-22 19:51:01 +01:00
Andreas Eversberg 2d24c1e12b fixed minor comment 2023-01-22 19:50:20 +01:00
Andreas Eversberg c72e5070ef Add comfort noise when call is on hold
This is required so that the RTP stream does not interrupt.
2022-10-30 16:58:44 +01:00
Andreas Eversberg e8a91e12f9 Updated libs 2022-10-30 16:58:38 +01:00
Andreas Eversberg 42f4e4a243 Fixed suspend/resume feature 2022-10-30 16:57:16 +01:00
Andreas Eversberg e6aa538562 Remove DSP kernel module dependency
* Use raw bchannel instead of DSP feature
* Removed DSP features
* Use new jitter buffer and control TX FIFO load by this application
* Added bridging daemon to assign time slots for bridging
2022-10-30 16:57:12 +01:00
Andreas Eversberg 9bbca1fb9e Add user space tone generation code 2022-09-16 18:24:26 +02:00
Andreas Eversberg be40b44515 Removed ph_socket, it is now a lib 2022-09-16 18:24:24 +02:00
Andreas Eversberg bc888d85cc Add clearmode and handle bearer capability according to Osmo-CC spec 2022-09-16 17:19:02 +02:00
Andreas Eversberg 8c0419b70e Add kernel (hardware) bridging 2022-09-16 17:18:58 +02:00
Andreas Eversberg 63371cc055 Make this application capable of using kernel or user space mISDN 2022-09-16 17:18:56 +02:00
Andreas Eversberg b85d9d6580 libmisdnuser: Fixed compiler warning 2022-09-16 17:18:52 +02:00
Andreas Eversberg 64b5653b05 Add mISDNuser to this project 2022-09-16 17:18:49 +02:00
Andreas Eversberg 8a81901d9c Fixed mISDN (kernel code) to use MPH_ instead of PH_ towards layer 3 2022-09-16 17:18:44 +02:00
Andreas Eversberg 46a7a51d4a Add port of mISDN kernel driver for use in user space 2022-09-16 17:18:42 +02:00
Andreas Eversberg 68874b3b22 Updated Libs 2022-09-16 17:18:37 +02:00
Andreas Eversberg e1dcbb89db Fixed issue in handling channel offer
When (exclusive or suggested) channel is offered, we must "seize" it, so that
it is linked with call instance. Still the channel might be changed on reply.
2022-05-01 10:15:08 +02:00
Andreas Eversberg ef4950bd66 Updated Libs 2021-11-07 07:28:12 +01:00
Andreas Eversberg 231cc1b9f9 update libs 2021-07-09 20:26:07 +02:00
Andreas Eversberg 8300dce9fb Updated libs 2021-03-28 13:15:12 +02:00
Andreas Eversberg eb9b40c260 Fixed MSN option and handling 2021-03-28 12:52:58 +02:00
Andreas Eversberg 234f18cb43 Updated libs 2021-03-20 11:37:33 +01:00
Andreas Eversberg a6315c2916 Add missing m4 directory 2021-03-20 07:23:31 +01:00
Andreas Eversberg e61a000eae Fix configure.ac 2021-03-20 07:23:23 +01:00
Andreas Eversberg 0a97f9edc0 Add option for config file path 2021-03-14 11:13:04 +01:00
Andreas Eversberg 18471ad4c0 Updated libs 2021-03-14 11:12:42 +01:00