aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2009-11-20[bssmap] Unconditionally include the chosen encryption in cipher mode completeHolger Hans Peter Freyther3-13/+9
2009-11-20[bssmap] Assignment handling fixes and improvementsHolger Hans Peter Freyther1-4/+23
- Fix the generation of the assignment failure message - Parse the permitted indicator of the assignment request message
2009-11-20[bssap] Fix generation of the failure messageHolger Hans Peter Freyther1-2/+3
2009-11-20[bssap] Only start establish when the link is not yet establishedHolger Hans Peter Freyther1-1/+1
This is fixing a bug when we try to submit a SMS from the MS to the network. We send the RLS ESTABLISH REQUEST but as the MS already established this SAPI we waited for the timeout and failed..
2009-11-20[bssap] Improve log messages...Holger Hans Peter Freyther2-2/+2
2009-11-20[bssap] First go at implementing channel assignment...Holger Hans Peter Freyther4-11/+77
2009-11-20[bssap] First go at implementing ASSIGNMENT REQUESTHolger Hans Peter Freyther4-6/+401
2009-11-20[bssap] Add a "#warning" that cipher mode is not properly handledHolger Hans Peter Freyther1-0/+1
2009-11-20[bssap] Start to queue messages to the BTS and to the MSCHolger Hans Peter Freyther4-14/+195
For the MSC we need to queue GSM04.08 messages until the SCCP connection is confirmed to be open and then can send the stored messages. The queue is limited to 10 messages at which point new ones will be dropped. Currently the only messages we get are measurement indication messages but it is better to be safe than sorry. The SCCP messages are sent as soon as the connection is considered established and then no queueing happens any more. While replacing sccp_connection_write calls various memory leaks has been fixed. For the MS we might have received a DTAP and need to do an operation that requires a roundtrip and want to send wait until this has happened. The two scenerios are sending a SMS to the phone that requires to do something special for the different SAPI. Currently it is assumed that only one SAPI=0 -> SAPI=3 change happen during the connection. For the first SAPI != 0 we will send the rll_ request and then wait for the timeout or confirmation. In case of timeout a SAPI "n" reject is sent and in case of success the queue is getting emptied.
2009-11-20[bssap] Implement SAPI "N" Reject messageHolger Hans Peter Freyther2-1/+18
This message will be needed when no RLL connection on a different SAPI can be established or we don't want to establish it.
2009-11-20[bsc_msc_ip] This is a BSC that connects to real MSC via IPHolger Hans Peter Freyther13-5/+1486
This is a BSC to be used by on-waves.com to connect to a real MSC using SCCP over IP. The following messages and features are currently implemented: - IPA identity ack's - COMPLETE LAYER3 INFORMATION - DTAP - PAGING COMMAND - CLEAR COMPLETE/CLEAR REQUEST - CIPHER MODE COMMAND/ REJECT /COMPLETE It comes with a tool to create the enum's from the spec and a very simple test server to do the handshaking.
2009-11-20[contrib] Add a utility to convert an IE page to an enumHolger Hans Peter Freyther1-0/+37
This script is parsing the values, converting the bits into a number and replacing the text... This should help to go from spec to code more quickly... next thing would be this for the structs used...
2009-11-20[mgcp] Make the number of endpoints configurable...Holger Hans Peter Freyther2-1/+14
Allow to configure the number of endpoints at start. Currently this will not be changed at runtime but one needs to save the config and restart the system.
2009-11-20[mgcp] The nanoBTS is not binding a RTCP portHolger Hans Peter Freyther1-4/+2
Do not guess the RTCP port as it might be the RTP port of another connection.
2009-11-20[mgcp] The initialisation is done inside CRCX, remove hereHolger Hans Peter Freyther1-2/+0
2009-11-20[mgcp] Do not forward or find the BTS if the endpoint is unusedHolger Hans Peter Freyther1-0/+8
Forget where the bts and network is located on DLCX and CRCX otherwise we would have forwarded BTS data to the wrong endpoint and would have not tried to discover the BTS again. In the case of early bind we might get data from the BTS before the CRCX and after DLCX... just ignore it then
2009-11-20[mgcp] Add a show command for the mgcp...Holger Hans Peter Freyther1-0/+20
2009-11-20[mgcp] Fix writing the configuration fileHolger Hans Peter Freyther1-0/+4
2009-11-20[mgcp] Add telnet interface for mgcp.Holger Hans Peter Freyther2-4/+6
2009-11-20[mgcp] MGCP... update config file to use AMRHolger Hans Peter Freyther1-5/+6
2009-11-20[mgcp] Add option to route audio back to both endsHolger Hans Peter Freyther1-23/+36
This is a simple echo functionality in the MGCP... it will send the audio back to the network|bts..
2009-11-20[mgcp] Add a simple mgcp gateway used for the BSCHolger Hans Peter Freyther6-1/+1242
The python script is a simple call-agent driving the client. Currently it is sending a AuditEndpoint message and is printing the result. The bsc_mgcp.c is a standalone process that will implement a MGCP Gateway for the MSC. On call handling the Call-Agent will ask the Gateway to "CreateConnection" and then this gateway needs to communicate with OpenBSC. Currently CreateConnection,ModifiyConnection,DeleteConnection and Endpoint auditing is implemented. [mgcp] Send RSIP on start and on first receive of any message Ignore the first request and send a RSIP. We do that because we might tunnel UDP through some other things and have no direct way to connect to the call-agent. Also the transaction is not checked and we ignore the response from the call-agent, actually we print the '200 ' or any other value as unhandled... [mgcp] Print the MGCP command next to the response code This allows to see which commands were sent by the server mgcp: Terminate it with a new line [mgcp] Make number of endpoints static... For now this is fixed to the number of endpoints as of the GSM specification... [mgcp] The endpoint names seem to be base 16... use strtoul to parse Use strtoul to parse the base 16 number from the mgw string. [mgcp] Log the endpoints as hex numbers... [mgcp] Only send the RSIP on the first incoming message.. Remove call_agent option (also remove the number from the getopt call). [mgcp] Start couting at 1 for the mgcp [mgcp] Slight attempt to improve the grammar of the strings [mgcp] Share validation routines between DLCX and MDCX [mgcp] Remove help for dead config options [mgcp] Specify a different IN addr in the SDP records In case of NAT traversal be able to listen on a given interface (like 127.0.0.1) but claim to receive data at the beginning of the tunnel. [mgcp] Fix the static copy of the SDP file WIP verify out factoring broken.. [mgcp] Introduce VTY to the mgcp for config file parsing... Parse the MGCP config file via the VTY framework. [mgcp] Handle SDP parameters through VTY.. Currently the payload type, name and rate can be specified in the config file. [mgcp] Add an option to bind all rtp ports early This can be useful for testing and in deployment to make sure no runtime resource limit can be hit. [mgcp] Add some API doc comment [mgcp] Convert the packets of the example server to ascii This will allow to easily patch the call id... to run the server in a loop and make it work with the mediagateway [mgcp] Assign CI_UNUSED... to be more obvious... [mgcp] Use DEBUG and not DEBUGPC and specially not printf Improve the logging a bit in the mgcp [mgcp] Change the fake server to change the call id This assume the call-agent will just increment the id as well.... this is true for our implementation [mgcp] Generate the transaction id dynamically.. This way wireshark will be more happy about it... [mgcp] Recognize responses from the network.. This is just recognizing the response code and then is doing nothing with it. Also change the script to generate response messages... [mgcp] Improve debug messages for CRCX/MDCX.. Log on which ports the media gateway is listening and where the other (server) gateway is located
2009-11-20[sccp] Implement sending the Inactivity Test on a connection..Holger Hans Peter Freyther4-0/+55
Currently this will send a dummy inactivity test message, there is currently no parsing or API to receive the messages. The sequencing and credit entries are empty as sequencing is currently not used at all. The test is currently limited to send the message and see if the application is crashing or not.
2009-11-20[sccp] Implement parts of ITU SCCP for use in the A-InterfaceHolger Hans Peter Freyther10-3/+2396
include/sccp/sccp_types.h contain Q.713 and GSM definitions include/sccp/sccp.h is the application interface resembling the esentials of the UNIX socket interface. src/sccp.c is the actual implementation of SCCP featuring connection and UDT1 support. tests/sccp/sccp.c is testing connection creation and formating of the SCCP messages used by the A-interface. And it contains a simple fuzzing test to test the robustnes of the implementation.
2009-11-20[debug] Add a debug area for the MGCP code of On WavesHolger Hans Peter Freyther2-0/+3
2009-11-20[debug] Add a debug area for MSCHolger Hans Peter Freyther2-0/+2
2009-11-20[debug] Add a debug area for SCCPHolger Hans Peter Freyther2-0/+3
2009-11-19[vty] Remove tab to make the cell_identity nicely indentHolger Hans Peter Freyther1-1/+1
2009-11-19[vty] Write out the neci configurationHolger Hans Peter Freyther1-0/+1
2009-11-19[lchan] RSL and RR need the multirate config, place it in the lchanHolger Hans Peter Freyther6-15/+23
Both GSM 04.08 RR and GSM 08.58 RSL need the multirate config in the channel modify. Place the config in the lchan, change the gsm48 methods to not take the argument, change the RSL implementation to make use of it with the right IE. The other code should use the t(l)v_put routines as well but were left untouched for now.
2009-11-19[lchan] Fix the SAPI reset in the chan allocation...Holger Hans Peter Freyther1-1/+1
Reset the whole array instead of just the first element.
2009-11-19[gsm48] Send the IPA CRCX after the chan modify ackHolger Hans Peter Freyther1-6/+8
Change the CRCX after the channel has been modified.
2009-11-19[ipa] Change names of RTP methods to follow MGCP namingHolger Hans Peter Freyther5-43/+43
IPA is naming these functions CRCX, MDCX, DLCX to follow the naming of the MediaGatewayControlProtocol. Change the code to go from BIND to CRCX (create connection) and from CONNECT to MDCX (modify connection). Connect indicates that it is only possible to call it once while it is possible to call it more than once to modify the audio parmaters and such. So the IPA terminology is making a bit more sense here (now that we know it).
2009-11-19misc: Add routine to generate backtrace from within the applicationHolger Hans Peter Freyther3-0/+54
E.g. to analyze the subscr_get/subscr_put behavior one can place the generate_backtrace into the functions, recompile and then filter the output with contrib/bt.py to get the function name, file and line.
2009-11-18Merge remote branch 'origin/master'Harald Welte12-40/+123
2009-11-18max_power_limit: the limit is 24 dB !Harald Welte1-1/+1
2009-11-17[gsm48] When picking AMR we need to supply the multirate configHolger Hans Peter Freyther3-7/+52
On channel mode modify and assignment command when using the a multirate code the multirate configuration must be present in the packet. Add a parameter and add a warning when using it in a broken way.
2009-11-17[neci] Separate handling of chan requested for paging anyHolger Hans Peter Freyther2-5/+8
Allow to handle the channel requested differently based on the NECI value for the "paging any" case. This will allow to open a TCH/H, TCH/F depending on the neci mode.
2009-11-17[neci] Use the correct length when going over the arrayHolger Hans Peter Freyther1-6/+25
Use the correct length when going over the array instead of using the neci0 values. Remove the fixme from the method as well as the issue has been addressed by adding a parameter to the method.
2009-11-17[paging] In expiration handling remove the request before doing the callbackHolger Hans Peter Freyther1-4/+10
Not doing this could lead to a double deletion due the paging request being removed during the callback and afterwards as well. Change the code to save the callback data, remove the request, do the callback. A patch was proposed by Andreas Eversberg and this one is based on it.
2009-11-17Fix configuration file generationAndreas.Eversberg1-1/+1
Assign the encryption status to the right variable. Signed-off-by: Holger Freyther <zecke@selfish.org>
2009-11-17[si] Make it possible to set the NECI value...Holger Hans Peter Freyther6-8/+25
Allow to configure the NECI value... and change code that is relying on the NECI value.
2009-11-17[rsl] Improve error message when the lchan allocation is failingHolger Hans Peter Freyther1-1/+2
2009-11-17ipaccess-config.c: Spelling fix in the config modeHolger Hans Peter Freyther1-1/+1
2009-11-17[ipaccess] Fix spelling in the commentHolger Hans Peter Freyther1-1/+1
2009-11-17[telnet] Remove unused variables from the telnet interfaceHolger Hans Peter Freyther2-8/+0
These became unused when the interface was switched to use the vty module. It is about time to remove these.
2009-11-17fix some more compiler warningsHarald Welte3-2/+3
2009-11-17[abis_nm] avoid integer-to-pointer casting and associated gcc warningsHarald Welte3-6/+12
2009-11-17silent call: add header file for function prototypesHarald Welte2-0/+8
2009-11-14VTY (silent sms / sms): better error reportingHarald Welte1-4/+9