Commit Graph

2371 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther
00460d3bc5 bsc_msc_ip: Save the welcome text, add an 'e' to the command. 2010-09-29 20:39:09 +08:00
Holger Hans Peter Freyther
dcb7ad3f2c bsc_msc_ip: Save the bsc-welcome-text message 2010-09-29 20:38:26 +08:00
Holger Hans Peter Freyther
74e7cc4c4a Add missing osmo_bsc_grace.h
This file got lost during a rename.
2010-09-29 18:44:43 +08:00
Holger Hans Peter Freyther
667cba9d28 bsc: Send a USSD command after we have a LU Accept and a new_subscriber 2010-09-26 18:49:03 +08:00
Holger Hans Peter Freyther
6f926f0197 bsc: Add a ussd_welcome_text variable and VTY command
Add a command to set the welcome text for the USSD.
2010-09-26 18:49:02 +08:00
Holger Hans Peter Freyther
c98d67d592 bsc: Mark LUs with a different LAC as needing special care
We want to send a welcome USSD to new subscribers, mark subscribers
with a different LAC than this cell as special and hope someone will
follow up with them.
2010-09-26 18:49:02 +08:00
Holger Hans Peter Freyther
43dbcfe2cf bsc: Rename to osmo_bsc_grace to prepare putting it into master 2010-09-16 00:13:01 +08:00
Holger Hans Peter Freyther
98d949b02f bsc: Rename the RF Ctl interface to match master 2010-09-16 00:01:43 +08:00
Holger Hans Peter Freyther
4f5421a482 bsc_msc: Add minimal code to work with the new SCCP version 2010-08-25 12:22:32 +08:00
Holger Hans Peter Freyther
c8fdf0c4b6 bsc_msc_ip: Set the right log area 2010-08-25 00:55:16 +08:00
Holger Hans Peter Freyther
45473477f6 sccp: Use the libosmo-sccp library and remove the internal copy 2010-08-24 22:38:12 +08:00
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