Commit Graph

431 Commits

Author SHA1 Message Date
Andreas Eversberg 97fb04eee9 Added support for all GSM codecs to GSM and SIP interface
Untested!
2012-03-08 14:44:17 +01:00
Andreas Eversberg b3d8622de3 Removed obsolete #include directive. 2012-03-08 07:05:15 +01:00
Birger Harzenetter 9efd4aed44 Make chan_lcr compile with latest Asterisk. 2012-03-01 08:47:13 +01:00
Andreas Eversberg 9464c059e6 Fixed chan_lcr unload bug, found by Patrick 2012-03-01 08:40:28 +01:00
Alexander Huemer 7b11cdb684 Make appbridge.cpp compile, even without mISDN support. 2012-03-01 07:51:26 +01:00
Andreas Eversberg 4a7489749f Fixed release of relations between bridge and interface instances (ports) 2012-02-21 18:03:43 +01:00
Wimpy 65ce8fa13a Added support to chan_lcr for Asterisk version > 10 2012-02-21 11:42:20 +01:00
Andreas Eversberg d6866316df Added support of mISDN to direct bridge feature
Now it is possible to directly bridge:

- GSM with SIP
- GSM with ISDN
- SIP with ISDN
2012-02-21 11:32:31 +01:00
Andreas Eversberg 58afedec93 Allow setting IP:port for peers of SIP interfaces. 2012-02-18 09:50:43 +01:00
Andreas Eversberg 302368de48 Use dynamic RTP payload types starting from 96 2012-02-18 09:49:57 +01:00
Andreas Eversberg e1e9da7d24 Allow dynamic RTP payload types when bridging between SIP and OpenBSC.
Because EFR/AMR/HR codecs use dynamic RTP payload types, it is essential
to forward the actual media types between endpoints too. These media
types are used for negotiation of codecs. A dynamic payload type is
used as given by remote peer. Locally generated payload types are used
when offering codecs to remote peer.
2012-02-17 15:38:54 +01:00
Andreas Eversberg 507d22099d SIP: minor fixes 2012-02-17 12:35:19 +01:00
Andreas Eversberg 26e74d6a9a Bump version to 1.12 2012-02-05 20:30:48 +01:00
Andreas Eversberg b5aad71a2f autoconf: Fixed detection of mISDN headers 2012-02-04 07:43:36 +01:00
Andreas Eversberg f854931ffb Adding negotiation of speech codecs between GSM and SIP when using rtp-bridge
Since LCR does not put hands on any RTP frame when directly bridged between
OpenBSC and SIP, it will now allow all speech codecs that are commonly supported
by MS and remote SIP endpoint.

It must be noted that OpenBSC must support forwarding the codec types that
MS and remote SIP endpoints support.

Currently LCR negotiates the following codecs for GSM:
- Full Rate
- EFR
- AMR
- Half Rate
2012-02-01 17:52:36 +01:00
Andreas Eversberg 306ed3c7f1 Disabled NUTAG_AUTO100, Entering PROCEEDING state after sending INVITE
This also includes unfinished overlap dialing code.
2012-01-27 08:35:55 +01:00
Andreas Eversberg f851ca0d9e Adding switch to compile LCR without mISDN support
Disable:
--without-misdn
Enable:
--with-misdn

Otherwise it will be enable automatically, if mISDN user is installed.
2012-01-27 07:27:52 +01:00
Andreas Eversberg 57defecea8 GSM now receives tones during bridge
If a bridge is enabled, tones (e.g. hangup tone) will have priority
over the bridge. The bridge will continue to forward audio, after
tone is removed. (e.g after beeing on hold music)
2012-01-21 17:50:45 +01:00
Andreas Eversberg 1e778230b9 Adding handling of bad GSM audio frames
In this case the frame is dropped, but audio of the last frame is repeated
with a reduced level. The level is reduced again an again until a new
valid frame is received. This way there is no silent gap in the audio
stream.
2012-01-20 20:28:55 +01:00
Andreas Eversberg 03e00d7b37 Fixed dead pointer problem when handling interfaces
In order to get the pointer to the currently existing interface, a
new function is used, to resolve interface by name.
2012-01-20 10:05:41 +01:00
Andreas Eversberg 810c051a69 Minor fix in interface.conf example 2012-01-20 10:05:17 +01:00
Andreas Eversberg 67e162715d Adding TX-dejitter feature for briged data to mISDN
In case there is data bridged to an mISDN port, the TX-dejitter feature
is enabled in the kernel, to keep the delay at a minimum.
2012-01-20 08:58:27 +01:00
Andreas Eversberg 5b3a112115 Correctly control brige in case of mISDN
If all ends in a call use mISDN, the bridging is done by mISDN itself.
If one end of a call is not mISDN and there are two parties, the
traffic is bridged via LCR.
2012-01-20 08:56:51 +01:00
Andreas Eversberg 145f8adab1 Fixed audio bridge to mISDN ports
Audio must be bridged, even if the call is not connected, but if
audio data is already available.
2012-01-19 09:44:48 +01:00
Andreas Eversberg ef0eddbfec Fixed 'earlyb' handling
mISDN-TE ports receive audio patterns by default again.
2012-01-19 09:14:58 +01:00
Andreas Eversberg 74a7fe54a8 Adding simple bridge application to forward calls without PBX app.
Call received on an interface can directly be forwarded to a given
destination interface, instead of routing the call through PBX
application. This way calls can be forwarded without going through
route.conf.

Currently only SIP and GSM destinations are supported. Also there
are no tones generated, if one side provides no tones, but the
other wants to receive them.

The keyword "bridge <output interface>" in interface.conf is used.
Without that keyword, incomming calls are handled as usual.
2012-01-16 09:14:22 +01:00
Andreas Eversberg d928442c51 Forward DTMF as message directly from GSM BS to SIP.
In case rtp-bridge is used, tones cannot be generated. Instead,
a message is forwarded to SIP endpoint, so it generates it itself.
2012-01-15 10:51:58 +01:00
Andreas Eversberg 5463e1b62a Added bridgin support for GSM and SIP
The dependency on mISDN (loopback interface) is completely removed
from GSM and SIP interfaces.

The built in bridge of LCR now forwards audio data between these
interface instances or between these instances and other instances.

Additionally both GSM BS and SIP support direct forwarding of RTP
traffic between  other SIP endpoint and OpenBSC, so no traffic is
forwarded by the LCR itself. This is done by forwarding RTP peer
informations between these interface instances.
2012-01-15 09:42:35 +01:00
Andreas Eversberg 877a2dfd52 Adding bridge between protocol handlers (ports)
This is required to bridge traffic beween non-mISDN handlers,
such as GSM, SIP and voice box. Also it bridges traffic between
mISDN handlers and non-mISDN handlers. It is the fundamental step
to get rid of mISDN (loop interface) for non-mISDN handlers.
This is required to bridge audio e.g. between SIP and GSM without
using mISDN. There will be no limitations on 'b-channels' anymore.

Still GSM and SIP requires mISDN, but this will be changed later.

With that bridge I cleaned up some code and also removed the
MESSAGE_DATA, which is not required anymore.
2012-01-14 18:36:26 +01:00
Andreas Eversberg 863bc64219 Adding basic SIP support, using Sofia-SIP stack
This support is just a simple peer-to-peer support for basic calls.

Currently it requires mISDN_l1loop interface, as every non-ISDN
interface does. Later it will be possible to use it without.
2012-01-13 06:24:21 +01:00
Andreas Eversberg e9c834b844 Various minor fixes 2012-01-13 05:18:49 +01:00
Andreas Eversberg 57a91e52d4 Adding shutdown option to interface.conf
This way an interface can be disabled by just one keyword
and not by uncommenting all lines of it.
2012-01-13 05:13:30 +01:00
Andreas Eversberg 29ba196ca5 Fixed NULL-pointer bug when unloading of GSM interfaces 2012-01-07 09:34:51 +01:00
Andreas Eversberg e9dd99a401 chan_lcr: Minor fix for Asterisk versions >= 10
subclass.codec or subclass is not part of frame anymore.
2012-01-03 11:29:43 +01:00
Arnold Schulz 77bacac2bd For chan_lcr with Asterisk 1.8, set the codec type of a frame into the correct
union member ast_frame_subclass::codec (instead of ast_frame_subclass::integer).

The old code caused an error in some environments, eg big endian Arm (armeb):
"__ast_read: Dropping incompatible voice frame on lcr/1 of format alaw ..."

Signed-off-by: Arnold Schulz <arnysch@gmx.net>
Signed-off-by: Andreas Eversberg <andreas@eversberg.eu>
2011-11-08 16:14:57 +01:00
Andreas Eversberg 92b9d54385 Disabled layer2-hold from CCITT#5 interfaces
C5 does not require D-channel.
2011-10-16 08:35:43 +02:00
Gregory Nietsky affef8c1e1 Patch to allow chan_lcr to work with asterisk 10
The patch tries to maintain backward compatibility i have not tested this.

Have tested inbound outbound and T.38 gw call accross it.
2011-10-15 09:34:06 +02:00
Andreas Eversberg 2106a9212c Adding "fflush" to debug.log.
This is usefull when using "tail -f". The debug will be written to
the debug.log file right when the debug function is called.
2011-10-15 09:29:44 +02:00
Andreas Eversberg c67eb25986 Adding additional debugging to joinremote.cpp
Now it is possible to see the relation between LCR endpoints and
chan_lcr instances.
2011-10-15 09:28:11 +02:00
Andreas Eversberg 41a0668da1 Fixed mncc.h for GSM. Audio works again with latest OpenBSC. 2011-10-02 08:52:13 +02:00
Karsten Keil a5846418d9 Remove unused variable ret
ret is not longer used for the new pid assign method.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-28 12:17:00 +02:00
Karsten Keil 7b103167ba Handle MT_L2IDLE
MT_L2IDLE is send by the mISDNuser library when all L2 processes
are gone. We could sent a MT_L2RELEASE if we are the L2 master and
do not want permanent L2 monitoring. This would deactive L2 and also
shutdown L1.

For now we do nothing, only log a debug message.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-28 12:09:54 +02:00
Karsten Keil 6336acef6e Bump version to 1.11
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-24 09:38:32 +02:00
Karsten Keil 73353997fd New pid handling
The old method was racy, it did use the callback function to deliver the
result, which need special handling because of possible deadlocks.
Now we use a request function which returns the value directely.
The old method is still available, but will get removed soon.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-24 09:29:28 +02:00
Karsten Keil 2e383446ad New names for redirection numbers
Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-24 09:27:43 +02:00
Karsten Keil d19e69fe80 New init and debug interface
Works with the newer mISDNuser library.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
2011-09-24 09:25:41 +02:00
Andreas Eversberg 27ade6eeb9 Increas version number to 1.10 2011-09-07 08:07:37 +02:00
Andreas Eversberg 011ef7a785 Checking for GSM codec to be installed at configure.
Also outputting what is supported and what not.
2011-09-07 08:05:11 +02:00
Andreas Eversberg 590407f7f5 Fixed missing channel IE in some cases.
NT-Mode: channel IE must be included in all cases
TE-Mode: channel IE can be omitted only if any channel is requested.
2011-09-03 15:54:37 +02:00
Andreas Eversberg 97aa0881be Support of GSM uses socket interface for both network and mobile
There is no linking of any osmocomBB source code required. In order
to use osmocomBB or OpenBSC, just enable the interface, as described
in defaults/interface.conf. At osmocomBB/mobile or at OpenBSC, just
use the option "-m" to enable the socket interface.

Enable GSM at LCR with "./configure --with-gsm-ms --with-gsm-bs".
2011-09-02 11:08:56 +02:00