summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2012-06-04osmo-bsc: Add VTY command to set the locationdaniel/ow-vty-cmdsDaniel Willmann2-1/+50
2012-06-04osmo-bsc_nat: Add VTY command to query position and state of BTSesDaniel Willmann1-0/+221
show bsc by-id <id> bts status<cr> show bsc by-lac <lac> bts status<cr>
2012-05-23osmo-bsc: Add ctrl cmd bts RF stateDaniel Willmann1-0/+38
Returns opearional, administrational state and RF policy
2012-05-23osmo-bsc: Add callback functionality for commandsDaniel Willmann2-8/+27
2012-05-23osmo-bsc: Add VTY command show positionDaniel Willmann4-10/+54
2012-05-02bsc: Do not forward GSM RR messages to the MSCHolger Hans Peter Freyther1-0/+2
This has been addressed more properly in master, here we will just not forward everything that is handled locally.
2012-05-02bsc: Allow to run a mixed TCH/H, TCH/F configurationHolger Hans Peter Freyther1-4/+22
In case the call handling starts on a TCH/H switch to a TCH/F if fullrate is requested. Add a method that is used to determine if the mode and current channel are compatible with each other.
2012-05-02libabis: Enable TCP keepalive by default on all BTS connectionsDaniel Willmann1-1/+26
This way we can find out fast if the connection is broken. Z says: Tabs vs. spaces, magic numbers... more work needed :)
2012-05-02abis: Do not leak the line in case of no BTS being identifiedHolger Hans Peter Freyther1-0/+1
2012-05-02bsc: Create a better error message for when RF commands are rejectedHolger Hans Peter Freyther1-1/+1
Provide an error message that makes it more clear that the command is rejected because RF handling is not enabled in the BSC.
2012-05-02bsc vty: Provide a show mscs command to show the state of each MSCHolger Hans Peter Freyther1-0/+18
2012-05-02misc: Linking fixes for Ubuntu 11.10 CompilerHolger Hans Peter Freyther7-18/+27
Ubuntu 11.10 has changed some linker/compiler flags. Some fixes for this can be seen here[1]. In general the to be linked libs need to be moved into the LDADD section of parameters. This is with the old BFD linker (not gold). This is likely to end in some ping-pong with other versions of the linker. [1] https://bugs.launchpad.net/ubuntu/+source/nis/+bug/771034 Errors: /usr/bin/ld.bfd.real: bsc_hack.o: undefined reference to symbol 'osmo_init_ignore_signals' /usr/bin/ld.bfd.real: note: 'osmo_init_ignore_signals' is defined in DSO /home/ich/install/openbsc/lib/libosmocore.so so try adding it to the linker command line /home/ich/install/openbsc/lib/libosmocore.so: could not read symbols: Invalid operation ... ../../src/libbsc/libbsc.a(rest_octets.o):/home/ich/source/gsm/openbsc/openbsc/src/libbsc/rest_octets.c:381: more undefined references to `bitvec_set_bit' follow ../../src/libbsc/libbsc.a(rest_octets.o): In function `rest_octets_si13': /home/ich/source/gsm/openbsc/openbsc/src/libbsc/rest_octets.c:382: undefined reference to `bitvec_set_uint' /home/ich/source/gsm/openbsc/openbsc/src/libbsc/rest_octets.c:383: undefined reference to `bitvec_set_uint' /home/ich/source/gsm/openbsc/openbsc/src/libbsc/rest_octets.c:385: undefined reference to `bitvec_set_bit' /home/ich/source/gsm/openbsc/openbsc/src/libbsc/rest_octets.c:402: undefined reference to `bitvec_set_bit' /home/ich/source/gsm/openbsc/openbsc/src/libbsc/rest_octets.c:403: undefined reference to `bitvec_set_uint' Conflicts: No use of LIBOSMO_ABIS here openbsc/src/ipaccess/Makefile.am openbsc/src/osmo-bsc/Makefile.am openbsc/src/osmo-bsc_nat/Makefile.am openbsc/src/osmo-nitb/Makefile.am openbsc/src/utils/Makefile.am
2012-05-02vty: Document more VTY parameters of a commandHolger Hans Peter Freyther1-33/+55
The below is used to identify commands that need proper documentation diff --git a/src/vty/command.c b/src/vty/command.c index ab1eaca..bcf72d0 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -426,6 +426,20 @@ void install_element(enum node_type ntype, struct cmd_element *cmd) cmd->strvec = cmd_make_descvec(cmd->string, cmd->doc); cmd->cmdsize = cmd_cmdsize(cmd->strvec); + + printf("NODE: %d\n", ntype); + + int j; + for (j = 0; j < vector_count(cmd->strvec); ++j) { + vector descvec = vector_slot(cmd->strvec, j); + int i; + for (i = 0; i < vector_active(descvec); i++) { + struct desc *desc = vector_slot(descvec, i); + if (desc == NULL) + continue; + printf(" %s %s\n", desc->cmd, desc->str); + } + } }
2012-05-02bsc: Blind fix to deal with phones sending a dialplan of 0Holger Hans Peter Freyther1-2/+2
2012-05-02bsc: Drop the BTS instead of exiting the applicationHolger Hans Peter Freyther1-7/+12
When the BTS reboots it might not want to accept our BTS Attr, do not leave the bsc_msc_ip/bsc_nitb but simply drop the BTS connection. Manually cherry-picked from: 54e6c8b3400b376ed36fe84f28f7930d2d9ff24b
2012-05-02bsc: Fix a crash in case we get a NACK from the BTS for a new channelHolger Hans Peter Freyther1-2/+6
In case of a nack the secondary_lchan will be NULLed but then the T10 timeout will attempt to release the channel and we will try to release a NULL pointer.
2012-05-02misc: Include the control_cmd.h to fix make distcheckHolger Hans Peter Freyther1-1/+1
2012-05-02bsc: Do not re-start the grace timer when we are in the grace periodHolger Hans Peter Freyther1-0/+5
2012-05-02bsc: Simplify the trap sending by using the location state methodHolger Hans Peter Freyther1-17/+2
2012-05-02bsc: Send a TRAP with the locations on a MSC connectionHolger Hans Peter Freyther1-0/+41
Send the current position when the MSC connection is established.
2012-05-02bsc: Introduce an authenticated signal for the MSC connectionHolger Hans Peter Freyther2-0/+5
Send the signal whenever a MSC appears to be authenticated.
2012-05-02bsc: Auto RF Off in case of missing MSC connectionHolger Hans Peter Freyther5-2/+83
For short IP failures we want the RF to stay up and wait for the re-connect but in case the A-link is gone too long it is good to switch off the RF and wait for commands to enable it again.
2012-05-02bsc: Use the BSC RF CTRL to change the RF state of the TRXsHolger Hans Peter Freyther3-11/+16
Use the delayed scheduling feature of the osmo_bsc_rf class to avoid crashing the site controller of the nanoBTS.
2012-05-02bsc: Crash fix for the osmo-nitb/MNCC codeHolger Hans Peter Freyther1-1/+2
It is possible that MNCC sends a MNCC_LCHAN_MODIFY and wants a channel mode that is not possible on the current lchan, in that case a new channel is assigned. We now crash as the osmo-nitb is not having an assignment complete handler, add a NULL check.
2012-05-02bsc: Fix crash that can occur on RF FailureHolger Hans Peter Freyther1-3/+12
When we got a clear request we did not clear the internal association between the gsm_subscriber_connection and the SCCP part. When we got a DTAP message before the CLEAR COMMAND we will end up in a crash as the ->bts pointer of the connection has been cleared. #0 bsc_scan_msc_msg (conn=0xde178, msg=<value optimized out>) at osmo_bsc_filter.c:258 #1 0x000112c8 in bsc_handle_dt1 (conn=0xdebd8, msg=0xd1f58, len=<value optimized out>) at osmo_bsc_bssap.c:507 #2 0x00010208 in msc_outgoing_sccp_data (conn=<value optimized out>, msg=0xdfacc, len=858696) at osmo_bsc_sccp.c:73 #3 0x0003c110 in sccp_system_incoming (msgb=0xd1f58) at sccp.c:1064
2012-05-02audio: Make AMR multirate configurable for the osmo-bscHolger Hans Peter Freyther1-0/+51
Provide VTY options to allow/forbid the usage of a specific multirate option.
2012-05-02audio: Make the BSC handle the new mr_config request of the BSC APIHolger Hans Peter Freyther5-0/+47
Handle the mr_config request and set the AMR multirate config for the given MSC. Initialize the mr_config with the AMR5.9 default we have been using until now.
2012-05-02audio: Move the setting of MultiRateConfig to one placeHolger Hans Peter Freyther1-14/+19
Move it to one place so it is more easy to make changes to that.
2012-05-02audio: From RTP point of view we can use one payload for HR/FR AMRHolger Hans Peter Freyther2-4/+2
Remove the separation of half-rate and full-rate AMR. The used rate can be found inside the AMR payload. The signalling of what kind of traffic channel is used can be done with the GSM 08.08 Chosen Channel IE in the Assignment Complete message. This way I can use a fixed payload type in the MGCP GateWay but have a mixed TCH/F and TCH/H config. E.g. use TCH/F FR3 for some subscribers when connected to MSC A but use AMR5.9 on a TCH/F for MSC B when all TCH/Hs are gone.
2012-05-02audio: Remove the hardcoding of the RTP PayloadHolger Hans Peter Freyther3-6/+0
The MGCP config must be correct and use 99 for RTP AMR.
2012-05-02mgcp: Make CRCX deal better with UDP retransmissionsHolger Hans Peter Freyther1-24/+44
When the CRCX 200 is lost on the way to the CallAgent we will get another CRCX (retransmission) which was answered with a 400. Change the code to extract the CallID, Mode and the optional LocalOptions first. Then check if the endp is allocated with the same call identifier, in that case return the current session information.
2012-05-02mgcp: FreeSWITCH requiresn us to provide the o= and t= paramHolger Hans Peter Freyther1-3/+5
The SDP file for FreeSWITCH should contain o= (Origin) and the t= (Timing) for the session. The data of the Origin should be globally unique but this is not the case yet. We will need to store the (NTP) time of the creation of the endpoint.
2012-05-02bsc: Put the full stop before the \n in the log messageHolger Hans Peter Freyther1-1/+1
2012-05-02bsc: Fix crash when the new route is not availableHolger Hans Peter Freyther1-1/+1
When we are asked to route calls on a local link and the link is not available we would crash when trying to send a packet over a deadline. When we have decided to move a connection it is guranteed that the current SCCP connection will vanish, we either migrate to another MSC or the RSL/subscriber connection will be closed.
2012-05-02bsc: Add new SCCP connections to the tailHolger Hans Peter Freyther1-1/+1
2012-05-02msc: Only kill connections belonging to the given MSCHolger Hans Peter Freyther1-2/+4
When a MSC connection drops, only kill the connections that belong to the given MSC and not all other connections.
2012-05-02bsc: Add VTY code for the local area prefixHolger Hans Peter Freyther1-0/+20
2012-05-02bsc: Add vty code for allowing emergencyHolger Hans Peter Freyther1-0/+14
2012-05-02bsc: Add vty function for the MSC typeHolger Hans Peter Freyther1-0/+20
2012-05-02bsc: Inspect a CC Setup message and attempt to reroute the trafficHolger Hans Peter Freyther2-4/+122
Inspect the CC Setup messages and if the dialed number is matching the regexp of the local MSC the connection will be rerouted. The original MSC will get a GSM0808 CLEAR REQUEST, a new connection with a CC Setup message will be opened.
2012-05-02bsc: Look for CM Service Requests with emergency causeHolger Hans Peter Freyther3-2/+25
Look for emergency calls and send them to a MSC that can handle them properly.
2012-05-02bsc: Introduce a local MSC type and forbid it from being selectedHolger Hans Peter Freyther2-0/+9
2012-05-02bsc: Attempt to respond to paging to the MSC that pagedHolger Hans Peter Freyther1-4/+67
Inspect the message and see if it is a paging response, then try to find the MSC that has paged this subscriber and select this as the target MSC, also move the MSC to the back of the list for 'load balancing'.
2012-05-02bsc: Hand the msc_connection to the UDT handling, pass it to pagingHolger Hans Peter Freyther3-13/+12
Pass the osmo_msc_data to the paging sub system, change the code to pass the osmo_msc_data instead of network + bsc_msc_conn.
2012-05-02bsc: Move the finding of a MSC into the filter codeHolger Hans Peter Freyther3-20/+21
For responding to paging on the right link we will need to figure out if the msg is a paging response.
2012-05-02bsc: Select a MSC in a round-robin fashionHolger Hans Peter Freyther3-10/+35
Select a MSC, add it to the back of the list after we have selected it.
2012-05-02bsc: Allow to configure more than one MSC in the VTYHolger Hans Peter Freyther3-26/+56
2012-05-02bsc: Prepare to have multiple MSC connectionsHolger Hans Peter Freyther7-28/+96
We now have a list of MSCs but in the code we will try to access the MSC with the nr 0.
2012-05-02bsc: Use the right connection for outgoing packetsHolger Hans Peter Freyther2-3/+11
This is needed for simple UDT messages where we do not have a SCCP connection.
2012-05-02bsc: Move more things to use osmo_msc_data* directlyHolger Hans Peter Freyther3-5/+3