Commit Graph

38 Commits

Author SHA1 Message Date
Andreas Eversberg d1b8ed8250 Add option to disable L16 codec (linear 16 bit PCM)
Yate uses wrong byte order, so the codec fails. Disable it if you have
problems with Yate or other defective peers.
2023-11-15 20:37:40 +01:00
Andreas Eversberg a9573aa5cb libosmocc: Support for telephone-events 2023-11-12 17:41:43 +01:00
Andreas Eversberg 865f280bb1 libosmocc: Flag codec as not accepted instead of removing it
This is required if multiple SDP responses are returned. We don't want
to remove a codec with with the first SDP response, which might get
accepted by the second SDP response. Instead we flag the codec as
negotiated or not negotiated.

When early media is received, different codecs may be accepted as when
we receive the actual answer.
2023-11-12 17:36:05 +01:00
Andreas Eversberg 963be6e2c5 Osmo-CC: Add R1 interface type 2023-06-10 11:33:14 +02:00
Andreas Eversberg 5816f8e7c0 libosmo-cc: Allow remote port change with RTP
In case of port translation, the different remote RTP port is adopted
for further transfer.

This happens, if remote peer uses NAT that changes source port also.
2023-03-26 17:06:37 +02:00
Andreas Eversberg 5c20a3e8b7 libosmo-cc: Fix critical bug in RTCP handling
Upon an RTCP read event, read from RTCP socket and not from RTP socket.
2023-03-26 12:03:53 +02:00
Andreas Eversberg bdecacc99e Changed logging of libosmocc to osmocom style 2023-01-22 18:28:34 +01:00
Andreas Eversberg 9f662d309f Add libselect to use select instead of polling all file descriptors 2023-01-21 15:15:52 +01:00
Andreas Eversberg f4abbaf027 Make libtimer to be osmo_* compatible in some places 2023-01-21 15:15:39 +01:00
Andreas Eversberg 3bc3e67abb libosmo-cc: Fixed NULL-pointer bug 2022-12-16 12:43:20 +01:00
Andreas Eversberg aadfd50a0f Osmo-CC: Change UPDATE to MODIFY message
Naming it UPDATE was not a good idea.

Now this is renamed to MODIFY message, related to MNCC (GSM). It is used
to change media coding during a call. It allows new codec negotiation
using SDP protocol and/or changing RTP peer. Also useful for SIP.
2022-12-16 12:43:09 +01:00
Andreas Eversberg 2110a0f111 osmo-cc: Add private pointer to codecs 2022-11-24 21:16:43 +01:00
Andreas Eversberg 791a1d79a9 osmo-cc: Set session to NULL, if no codec matches
Applications will crash, due to use-after-free bug, if this is not done.
2022-11-24 21:15:47 +01:00
Andreas Eversberg 376cef4fa5 Osmo-CC: Add marker bit support 2022-10-23 16:56:40 +02:00
Andreas Eversberg 5684c0a7de Osmo-CC: Add UPDATE messages 2022-10-23 16:56:37 +02:00
Andreas Eversberg 2b7efedc48 Refactoring jitter buffer
Features are:
 * Packet based buffer
 * Random in, first out
 * Adaptive delay compensation (voice)
 * Fixed delay (data, optionally MODEM/FAX)
 * Interpolation of missing frames
 * Any sample size
2022-10-23 16:56:27 +02:00
Andreas Eversberg b94443e57a Osmo-CC: Minor 'cause conversion' fix 2022-07-23 08:26:45 +02:00
Andreas Eversberg a34ffda422 Osmo-CC: Fixed routing in screen tables 2022-07-23 08:26:44 +02:00
Andreas Eversberg f901eedd8e Osmo-CC: Fixed simple routing using screen option 2022-06-25 14:27:21 +02:00
Andreas Eversberg 5335a77e48 Osmo-CC: Option to remove remote peer, if given by application 2022-06-25 14:26:24 +02:00
Andreas Eversberg 334ead6908 Osmo-CC: Option to override interface name given by application 2022-06-25 14:23:16 +02:00
Andreas Eversberg f4aa9b79bb Osmo-CC: Minor compiler warning fixes 2022-06-19 06:51:49 +02:00
Andreas Eversberg 2ddf33837e Osmo-CC: Correctly bind to local IP address, rather than any IP 2021-12-30 23:34:42 +01:00
Andreas Eversberg e4c2e514d1 Osmo-CC: Fixed RTP port selection option 2021-12-30 23:34:37 +01:00
Andreas Eversberg 4810ff659f Osmo-CC: Fixed originator address info in SDP 2021-12-30 23:34:25 +01:00
Andreas Eversberg 4974e39999 Osmo-CC: Conversion function between values and their names
Allows to convert integer values into their names and vice versa.
2021-09-17 16:17:05 +02:00
Andreas Eversberg 1dff336ea2 Add message tracing to Osmo-CC 2021-09-17 16:12:22 +02:00
Andreas Eversberg ef88fea8a0 libosmocc: Add support for individual session config (per endpoint) 2021-04-03 23:00:01 +02:00
Andreas Eversberg 046834ac97 libomsocc: Add function to check if interface is attached 2021-04-03 23:00:01 +02:00
Andreas Eversberg e671b21812 libosmocc: Don't route on redirecting number 2021-03-28 13:17:54 +02:00
Andreas Eversberg fe6b5cdbcf libosmocc: SDP parser ignores broken codec descriptions
Thenx to Cisco.
2021-03-28 13:06:09 +02:00
Andreas Eversberg 68fbf1ae69 Osmo-CC: The 'local' socket peer is also used as default rtp-peer 2021-03-20 11:20:23 +01:00
Andreas Eversberg e470138657 Osmo-CC: Add telephone-event selection to helper 2021-03-07 10:39:05 +01:00
Andreas Eversberg 91979b7ad4 osmo-cc: Improve network type information element 2021-03-07 10:38:58 +01:00
Andreas Eversberg 8c0a25f3b0 Added special strdup to liboptions, to prevent memory leaks for option strings
If you are doing memory leak debugging you don't want to see any leaks when
stopping the program.
2021-03-07 10:38:38 +01:00
Martin Hauke a07764f0d9 Fixed typos in cli output and source code comments 2021-01-03 09:57:03 +01:00
Andreas Eversberg 97636aac1e OsmoCC: Limit number of default socket ports to 20 2021-01-03 09:50:36 +01:00
Andreas Eversberg ad8a7be345 Add Osmo-CC library to replace MNCC 2020-12-29 11:11:41 +01:00