Holger Hans Peter Freyther
0e939fec42
mgcp: Introduce a trunk config for multiple trunks.
...
A trunk will always have 32 endpoints to be used and we allow
a sparse allocation of endpoints.
2011-02-28 19:40:53 +01:00
Holger Hans Peter Freyther
ab3bb9d444
mgcp: Update the commands to work on more than the virtual trunk
2011-02-28 19:40:53 +01:00
Holger Hans Peter Freyther
d011c91512
mgcp: Prepare the show mgcp command to work on multiple trunks
2011-02-28 19:40:53 +01:00
Holger Hans Peter Freyther
88ad7723b4
mgcp: Introduce a mgcp_trunk_config enum for endpoint configs
...
We want to support real trunks in the MGCP code and we need to
have some better book keeping for those. Move the code around.
2011-02-28 19:40:53 +01:00
Harald Welte
9af6ddfcec
License change: We are now AGPLv3+ instead of GPLv2+
...
The reason for this is quite simple: We want to make sure anyone
running a customized version of OpenBSC to operate a network will
have to release all custom modifiations to the source code.
2011-01-01 15:39:34 +01:00
Holger Hans Peter Freyther
bd7b3c5e45
mgcp: Introduce trans_bts and send BTS packets from this port
...
Introduce the trans_bts. Right now only a port is allocated
and the packets from the BTS are sent from this socket.
2010-11-02 19:08:09 +01:00
Holger Hans Peter Freyther
2126233590
mgcp: Rename transcoder_end to trans_net
...
Packets arriving for trans_net will be send out to the
networking. We will introduce a trans_bts in a second.
2010-11-01 21:15:55 +01:00
Holger Hans Peter Freyther
88b597e21c
mgcp: Allow to disable the transcoder in a running system.
2010-11-01 21:15:55 +01:00
Holger Hans Peter Freyther
3e9a7f80bd
misc: Replace the idiom for replacing a string with a function call
...
Remove a lot of code in favor of a new function that is freeing
the old string and copying the new one. I should have gotten the
context and the strings right.
2010-10-12 23:31:53 +02:00
Holger Hans Peter Freyther
9aa8a9c5a7
mgcp: Count the packets that arrive on the transcoder
2010-09-20 02:51:30 +08:00
Holger Hans Peter Freyther
b98ba72e0a
mgcp: Make the base port of the transcoder configurable
...
The code assumes a static mapping from endpoint to RTP port,
be able to configure the start of such a mapping.
2010-09-20 02:51:30 +08:00
Holger Hans Peter Freyther
218f8564e1
mgcp: Forward data from the BTS-in to the transcoder
...
Bind a new port for the transcoder, forward data from the BTS
to the transcoder, and from the transcoder to the network. Leave
BTS-IN where it is, BTS-OUT can now be after the transcoding took
place. We send the data from the BTS RTP port.
This whole route will be guarded by the transcoder_ip and if it is
NULL (current default) it will not go through the transcoder.
2010-09-20 02:51:30 +08:00
Holger Hans Peter Freyther
54aaa0fbed
mgcp: Add ports for the transcoder as well
2010-09-20 02:51:29 +08:00
Holger Hans Peter Freyther
c5f9248c3f
mgcp: Share the range parsing code for net/bts
2010-09-20 02:51:29 +08:00
Holger Hans Peter Freyther
a2a10ebf03
mgcp: Add a transcoder-mgw command to store the address
2010-09-20 02:51:29 +08:00
Holger Hans Peter Freyther
5508fe3320
mgcp: Add a vty command to free a given endpoint.
2010-08-08 16:39:57 +08:00
Holger Hans Peter Freyther
0e01d09500
mgcp: Enable the tap after configuring it...
2010-08-06 02:05:15 +08:00
Holger Hans Peter Freyther
260d6ed02c
mgcp: Add a call tap feature to forward audio to another forward port
...
For debugging it is useful to forward (tee) UDP packets to another
system and use gstreamer to inspect the rtp stream. This is untested
code and might contain bugs.... and of course only tap your own calls.
2010-08-06 01:12:21 +08:00
Holger Hans Peter Freyther
6357a8e311
mgcp: Patch RTP packets again if that is allowed.
2010-08-05 20:08:22 +08:00
Holger Hans Peter Freyther
f138f917ec
mgcp: Allow to dynamically allocate ports from a range..
...
Allow to switch to a dynamic port allocator and not reuse
the ports for a long time... This should help with a crazy
network sending two streams at the same time.
2010-08-05 08:08:17 +08:00
Holger Hans Peter Freyther
1be9f2fddc
mgcp: Allow to have a different port allocation mode
2010-08-05 07:20:09 +08:00
Holger Hans Peter Freyther
15e7389cf0
mgcp: Prepare to have different port allocation strategies.
2010-08-05 07:10:56 +08:00
Holger Hans Peter Freyther
314584ab44
mgcp: Allocate a different port for the networking...
...
Use the right source port when sending the message.
2010-08-05 06:12:02 +08:00
Holger Hans Peter Freyther
196349dda1
mgcp: Rename the base port to bts_base as it will be used for the bts
2010-08-05 06:10:58 +08:00
Holger Hans Peter Freyther
217d712012
mgcp: Rename the bind method to show it is only binding for the bts port
2010-08-05 06:10:57 +08:00
Holger Hans Peter Freyther
f1a168dc20
mgcp: Only use early bind for the BTS socket.
...
Simplify the code by onlt allowing one way to allocate
a socket.
2010-08-05 06:10:57 +08:00
Holger Hans Peter Freyther
a17d701a70
mgcp: Group the state for bts/net into a struct and have two instances
...
Group the data that each end (network/bts) have into a struct and use
this struct throughout the sourcecode.
2010-08-05 06:10:54 +08:00
Holger Hans Peter Freyther
8b5772ebe4
mgcp: Remove the forwarding mode as it was not used.
2010-08-05 06:10:13 +08:00
Holger Hans Peter Freyther
3186892771
mgcp: Move the rtp state into a struct
...
Use a struct to group the rtp state for the up and the down
link of the bts.
2010-08-03 23:57:16 +08:00
Holger Hans Peter Freyther
ebc824cd2e
mgcp: Fix the documentation entry for the parameters
2010-08-03 23:57:16 +08:00
Holger Hans Peter Freyther
c597a4eba1
mgcp: Allow to change the receive (the loopback part) via the VTY
2010-08-03 03:04:31 +08:00
Holger Hans Peter Freyther
1aa4246bb8
mgcp: Provide the RTP packet loss information in the mgcp overview
2010-07-29 02:43:14 +08:00
Holger Hans Peter Freyther
d0c3229590
mgcp: Rename TOS to DSCP
...
DSCP is the more modern information for TOS and the kernel
will set parts of TOS by itself (e.g. for ECN).
2010-07-27 20:35:03 +08:00
Holger Hans Peter Freyther
8cc2a6d62d
Merge branch 'on-waves/mgcp'
2010-06-17 14:37:10 +08:00
Holger Hans Peter Freyther
75492e6e54
[mgcp] Set the IP_TOS/DSCP on RTP/RTCP IP packets.
2010-06-17 14:34:30 +08:00
Harald Welte
4b037e4117
Migrate VTY code to libosmovty
2010-05-25 23:40:38 +02:00
Harald Welte
dcccb1818d
VTY: decouple telnet_interface from 'struct gsmnet'
...
We want the VTY and telnet code to be independent from the BSC
application(s). As a side note, we also like to eliminate static
global variables for 'struct gsm_network' all over the code.
As such, telnet_init() is now passed along a "private" pointer,
which getst stored in telnet_connection.priv. This telnet_connection
is then stored in vty->priv, which in turn gets dereferenced if
anyone needs a reference to 'struct gsm_network' from the BSC vty
code.
Also:
* vty_init() now calls cmd_init()
* the ugliness that telnet_init() calls back into the application by means of
bsc_vty_init() function has been removed.
* telnet_init() now returns any errors, so the main program can exit
e.g. if the port is already in use.
2010-05-16 20:52:23 +02:00
Harald Welte
54f7424b78
[VTY] Introduce "end" command that works from any level in config
...
Using "end" you can always return to the "enable" level, and from
there the "show" commands are available. So no more need for
exit/exit/exit/exit/disable.
2010-05-14 19:11:04 +02:00
Harald Welte
62ab20c5dd
[VTY] Remove OpenBSC specific node-exit handling from src/vty
...
The idea is to move the VTY code into libosmocore at some point,
and for that we need to eliminate OpenBSC specifics from it
2010-05-14 18:59:17 +02:00
Holger Hans Peter Freyther
b5be7ac39c
[mgcp] Make show mgcp available in both modes.
2010-05-14 02:45:52 +08:00
Holger Hans Peter Freyther
7373109abc
Merge branch 'master' into on-waves/mgcp
2010-05-14 02:42:15 +08:00
Holger Hans Peter Freyther
c1cb5eb38d
[mgcp] Clean up VTY code, the ranges are checked by the VTY code.
2010-05-14 02:39:51 +08:00
Holger Hans Peter Freyther
1384af6522
[mgcp] Use A.B.C.D for the ip addresses inside the vty config
...
Make the vty code parse the ip addresses for us and validate
them for us.
2010-05-14 02:39:42 +08:00
Holger Hans Peter Freyther
a581136f73
[misc] Remove spaces, fix indention.
2010-04-30 13:34:15 +08:00
Holger Hans Peter Freyther
8d9833ef83
[mgcp] Fix vty file generation for the BSC nat and other cases
...
The current setting was not properly written out, this commit is
fixing it. This includes indention, empty bts ip, wrong command
for endpoints and the wrong number (+1 as zero is allocated but
unused).
2010-04-17 06:45:08 +02:00
Holger Hans Peter Freyther
2d425059af
[mgcp] Only write audio_name/payload when it is actually set.
2010-04-15 11:26:35 +02:00
Holger Hans Peter Freyther
5615b982c2
[mgcp] Improve the endpoint display on the vty..
...
Make sure one understands the two values for number of
incoming packets..
2010-04-09 23:53:08 +02:00
Holger Hans Peter Freyther
b4b135efbf
[mgcp] Count incoming RTP packets from the BTS and remote
2010-04-07 22:51:59 +02:00
Holger Hans Peter Freyther
6c0729fe70
[mgcp] Print the BTS IP addr of the endpoint.
2010-04-05 22:04:15 +02:00
Holger Hans Peter Freyther
b79994c952
[mgcp] Add a new config option to set the call agent ip addr
...
In the case of the nat we only want to communicate with one
upstream call agent and this can now be configured.
2010-04-05 22:02:29 +02:00