Holger Hans Peter Freyther
cd7bed5327
bsc: Remember the MSC connection we use for that connection
2010-08-24 22:26:15 +08:00
Holger Hans Peter Freyther
83594c1f2c
oml: Workaround for vty misusage...
...
Move the OML_NODE below the CONFIG_NODE so that the vty->index
will not be restored when we exit the node. If we do restore the
node we will end up with a double free.
2010-08-11 04:27:25 +08:00
Holger Hans Peter Freyther
7e1524644b
mgcp: Speculative mgcp fix...
...
We really have 32 channels per multiplex... so use the right
number... or at least it seems we do have 32.
2010-08-10 20:24:40 +08:00
Holger Hans Peter Freyther
3ec13ed3a8
OML: Introduce minimal VTY command set to interact with OML managed objects
...
Conflicts:
openbsc/include/openbsc/abis_nm.h
openbsc/src/Makefile.am
openbsc/src/vty_interface.c
2010-08-10 20:13:38 +08:00
Holger Hans Peter Freyther
11557ecd8c
mgcp: Reduce the log level to debug for these calls.
2010-08-08 07:28:54 +08:00
Holger Hans Peter Freyther
c737fbd4af
mgcp: Remember if the endpoint was allocated...
...
Do not use the CI_UNUSED to decide if an endpoint is allocated
but introduce a new flag. This way only the CRCX and free_endp
play with the allocated field.
2010-08-08 07:28:45 +08:00
Holger Hans Peter Freyther
24963554a8
mgcp: Add a callback to inform the client that an endpoint got reallocated
2010-08-08 07:28:36 +08:00
Holger Hans Peter Freyther
c7bd29e6d7
mgcp: Make the CI uint32_t all the way to avoid mismatch
...
Conflicts:
openbsc/include/openbsc/mgcp.h
openbsc/src/nat/bsc_mgcp_utils.c
2010-08-08 07:27:23 +08:00
Holger Hans Peter Freyther
137523ef7c
mgcp: Fix discovering the RTCP port with the more strict check.
...
If we have found the BTS and we receive data on the RTCP port
from the IP of the BTS we will set our RTCP port and forward it
to the network and hope it will be useful.
2010-08-08 07:24:22 +08:00
Holger Hans Peter Freyther
0457b4b6da
mgcp: Determine the proto properly...
2010-08-08 07:24:13 +08:00
Holger Hans Peter Freyther
c372b1eb75
bsc_msc: Remove the except code as it is wrong...
...
Remove wrong code that is luckily not called. We would end up
in a reconnect and attempt to bsc_fd_register the same socket
again. I am removing this part of the code as it is not used
and it would need to know if the fd has ever been registered
or not...
2010-08-08 07:24:06 +08:00
Holger Hans Peter Freyther
55228e31be
mgcp: Add instrumentation code to find a possible port leak/bsc-fd corruption
2010-08-08 07:23:58 +08:00
Holger Hans Peter Freyther
db544db73a
mgcp: Move the mgcp_free_endp into the right path for the CRCX failure
2010-08-08 07:23:51 +08:00
Holger Hans Peter Freyther
f49d616427
mgcp: Fix a filedescriptor leak in case the bind is failing.
2010-08-08 07:23:44 +08:00
Holger Hans Peter Freyther
1eecb1689b
mgcp: Enable the tap after configuring it...
2010-08-08 07:23:36 +08:00
Holger Hans Peter Freyther
f55fc02e87
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-08 07:23:29 +08:00
Holger Hans Peter Freyther
6bb3065e6d
mgcp: Patch RTP packets again if that is allowed.
2010-08-08 07:23:22 +08:00
Holger Hans Peter Freyther
3c30a4bb1f
mgcp: Get the for network/for bts flag right.
2010-08-08 07:23:15 +08:00
Holger Hans Peter Freyther
636c1cadd8
mgcp: Be more strict on the source addr/source port of the bts
...
Once we have discovered the bts we will not accept data from
anything else. The call will drop if the BTS is changing the
ip address of the nat anyway.
2010-08-08 07:23:08 +08:00
Holger Hans Peter Freyther
20f3d21665
mgcp: Only discover the bts once, the extra check got lost
2010-08-08 07:22:55 +08:00
Holger Hans Peter Freyther
889fd79511
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-08 07:22:40 +08:00
Holger Hans Peter Freyther
7e25253b71
mgcp: Allow to have a different port allocation mode
2010-08-08 07:22:28 +08:00
Holger Hans Peter Freyther
f90c8c9d75
mgcp: Prepare to have different port allocation strategies.
2010-08-08 07:22:06 +08:00
Holger Hans Peter Freyther
08a366f11f
mgcp: Fix the signature of the change_cb to not carry the port.
2010-08-08 07:21:58 +08:00
Holger Hans Peter Freyther
c12bfa45a5
mgcp: Separate recv from net/bts and remove autodetection
...
This allows a more strict check on the source of RTP messages
and we can more easily reject those. For the BTS without an ip
address we will also update the ip address.
2010-08-08 07:21:51 +08:00
Holger Hans Peter Freyther
e320fc115a
mgcp: Move the loopback code into the common send as well.
2010-08-08 07:21:43 +08:00
Holger Hans Peter Freyther
5bf8f95701
mgcp: Remove the receive code into a new method.
2010-08-08 07:21:22 +08:00
Holger Hans Peter Freyther
6989b57350
mgcp: Move the selection of the right source port to a new method
2010-08-08 07:19:17 +08:00
Holger Hans Peter Freyther
edd980619c
mgcp: Allocate a different port for the networking...
...
Use the right source port when sending the message.
Conflicts:
openbsc/include/openbsc/mgcp.h
2010-08-08 07:18:37 +08:00
Holger Hans Peter Freyther
2c362abfb4
mgcp: Rename the base port to bts_base as it will be used for the bts
2010-08-08 07:18:16 +08:00
Holger Hans Peter Freyther
f8e0838f7a
mgcp: Move the bfd for rtp/rtcp into the port
...
Stop using the memset in the mgcp_rtp_end_reset as we
will reset the list pointers and then have a mess..
2010-08-08 07:18:08 +08:00
Holger Hans Peter Freyther
ec2886d1bd
mgcp: Make the function internal, only used by the init/config code
2010-08-08 07:18:00 +08:00
Holger Hans Peter Freyther
865ba8b572
mgcp: Rename the bind method to show it is only binding for the bts port
2010-08-08 07:17:52 +08:00
Holger Hans Peter Freyther
9be1b5495f
mgcp: Only use early bind for the BTS socket.
...
Simplify the code by onlt allowing one way to allocate
a socket.
2010-08-08 07:17:42 +08:00
Holger Hans Peter Freyther
7cf7d27d10
mgcp: Attempt to separate the RTP/RTCP port for the Network and for the BTS
...
We plan to have two different ports for the network and for the
BTS to avoid detecting the BTS and to dynamically allocate the
port to have old data not go to a new socket.
Conflicts:
openbsc/src/nat/bsc_mgcp_utils.c
2010-08-08 07:17:22 +08:00
Holger Hans Peter Freyther
9002169dcd
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.
Conflicts:
openbsc/src/nat/bsc_mgcp_utils.c
2010-08-08 07:16:55 +08:00
Holger Hans Peter Freyther
43242f8947
mgcp: Remove the forwarding mode as it was not used.
...
Conflicts:
openbsc/include/openbsc/mgcp.h
2010-08-08 07:16:31 +08:00
Holger Hans Peter Freyther
83961de565
mgcp: Fix the payload_type... it broke in 7cdc62c012
2010-08-08 07:14:58 +08:00
Holger Hans Peter Freyther
19776f70a2
mgcp: Fix the reversed net/bts... which has not cause any issue..
2010-08-08 07:14:46 +08:00
Holger Hans Peter Freyther
6233ab9859
mgcp: Pass the whole endpoint to the patch method.
2010-08-08 07:14:37 +08:00
Holger Hans Peter Freyther
0037badb02
mgcp: Fix the order of the arguments...
2010-08-08 07:14:07 +08:00
Holger Hans Peter Freyther
054efe1ef2
mgcp: Print the conn mode as well
2010-08-08 07:13:58 +08:00
Holger Hans Peter Freyther
68fc12d89b
mgcp: Disable the actual patching... this is a temporary hack
2010-08-08 07:13:50 +08:00
Holger Hans Peter Freyther
7eccf5b0a5
mgcp: Print the system for the duplicate SSRC...
2010-08-08 07:13:40 +08:00
Holger Hans Peter Freyther
6d346d8931
bsc_msc: Fix the naming of this function.
2010-08-08 07:13:20 +08:00
Holger Hans Peter Freyther
71e90b8eea
on-waves: Increase the version number...
on-waves/0.3.99.19
2010-08-04 00:46:59 +08:00
Holger Hans Peter Freyther
72bd2c247c
mgcp: Only patch the header if we had a change in SSRC
2010-08-04 00:26:20 +08:00
Holger Hans Peter Freyther
f45ee6371f
mgcp: Style issue... add a space.
2010-08-04 00:26:13 +08:00
Holger Hans Peter Freyther
d585586d7b
mgcp: Allow switching the audio streams, patch the header
...
Patch the sequence number, the SSRC and the timestamp to
allow to mix various voice streams, e.g. toggling the loop
during the call.
2010-08-04 00:26:00 +08:00
Holger Hans Peter Freyther
0b3ffb1513
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-04 00:25:52 +08:00