aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
AgeCommit message (Collapse)AuthorFilesLines
2010-02-03[mgcp] Replace DEBUGP with the LOGP statementHolger Hans Peter Freyther1-39/+44
* Classify messages as LOGL_INFO or LOGL_ERROR
2010-02-03[mgcp] Prepare to do MGCP over TCP and inside the bsc_msc_ip processHolger Hans Peter Freyther3-1038/+1125
* Separate main process and protocol handling into two parts. * Change the protocol handling to work with UDP and TCP connection * This will allow to speak MGCP over TCP between the BSC MUX and the real BSC.
2010-02-02[mgcp] Rename the source to mgcp_main.cHolger Hans Peter Freyther2-1/+1
2010-02-01[mgcp] Move the MGCP procoess into a sub directoryHolger Hans Peter Freyther2-1/+1
2010-02-01[mgcp] In forward mode we need to rediscover the BTS more oftenHolger Hans Peter Freyther1-1/+1
In plain forward mode we don't have DLCX which will clean and reset the configuration. We will need to remember the last GSM BTS port and send data to it.
2010-02-01[mgcp] Handle BTS and NET being on the same hostHolger Hans Peter Freyther1-4/+5
* Do not only check the IP but also the port to figure out where to send the data * Do not memset the endp->remote inside the bind_rtp but from inside the crcx as this will be modified by the MDCX
2010-02-01[mgcp] Warn about unknown messages...Holger Hans Peter Freyther1-1/+3
2010-02-01[mgcp] Allow to forward to a different portHolger Hans Peter Freyther1-7/+23
2010-02-01[mgcp] Rename rtp and rtcp variables to net_rtp and net_rtcpHolger Hans Peter Freyther1-11/+11
Rename the variables to refer to the fact that they are the ports of the remote. So we have: rtp_port as the local address we are binding to net_rtp for the network rtp bsc_rtp for the bsc rtp
2010-02-01[mgcp] Make it possible to not specify a bts ipHolger Hans Peter Freyther1-7/+8
This way the mgcp will allow anyone to be the BTS.. in the future we might need to communicate things properly between BSC and MGCP.
2010-01-29[sccp] Implement sccp_parse_header to be used by the NAT code.Holger Hans Peter Freyther1-0/+35
2010-01-29[sccp] Split Connection DT1 into two partsHolger Hans Peter Freyther1-38/+46
This is the last of supported messages to be split into a parse and handle routine. Now all parse routines can be used by the NAT.
2010-01-29[sccp] Split Connection Release Complete into two partsHolger Hans Peter Freyther1-15/+22
2010-01-29[sccp] Split Connection Confirm handling into two partsHolger Hans Peter Freyther1-27/+40
2010-01-29[sccp] Split Connection Refused into two partsHolger Hans Peter Freyther1-25/+39
2010-01-29[sccp] Split Connection Released into two partsHolger Hans Peter Freyther1-24/+38
Split the Connection Released into header parsing and into acting on the parsed result. This is part of the NAT work.
2010-01-29[sccp] Separate connection parsing and policy for connection requestHolger Hans Peter Freyther1-48/+60
The same concept as with the previous patch, make the reject method work on the source local reference instead of passing it the header.
2010-01-29[sccp] Move the UDT parsing to a new methodHolger Hans Peter Freyther1-50/+89
Separate SCCP UDT parsing and handling into two methods. This way the parsing can be reused by the BSC NAT.
2010-01-29[sccp] Add a utility for the nat..Holger Hans Peter Freyther1-0/+8
Add a small helper to determine the type of a message
2010-01-28[gsm48] Use optional Chan Mode 1 for the assignment commandHolger Hans Peter Freyther1-0/+2
Specify how we intend to use the assigned channel. This is needed to make CC with early assignment work properly.
2010-01-28[gsm48] Allow to send the assignment command on a different lchanHolger Hans Peter Freyther1-2/+2
Change the signature to take the lchan were the message is supposed to be sent and the lchan which is supposed to be assigned.
2010-01-28[rsl] Send the MultiRateConfig in the RSL Channel Activate msgHolger Hans Peter Freyther1-0/+4
If the lchan has AMR as speech codec we also need to send the multirate config IE in the channel activation. This is already done for the RSL Channel Modify message.
2010-01-23Make sure select() callbacks are not called multiple timesAndreas Eversberg1-3/+9
the unix select function returns a set of file descriptors to be handled. the result-loop (the loop after the select()) is called again, if more than one descriptor is removed by the callback funtion. this may lead to a another call to the callback function, because the bits of the FD_SETs do not change and still set. i think we must clear these bits, if they are handled, so the handler will not be called twice in case of a "restart" of that loop.
2010-01-14Register GSM_BTS_TYPE_UNKNOWN in bsc_hack.cDaniel Willmann3-1/+44
The way the VTY configuration sytem works is that it first registers a BTS of type GSM_BTS_TYPE_UNKNOWN and then sets the type correctly (after encountering the type statement). This makes sure that registering a BTS of type UNKNOWN succeeds.
2010-01-14[vty_interface.c]: Warn if no BTS could be allocatedDaniel Willmann1-1/+4
2010-01-12update copyright statementsHarald Welte2-3/+3
* include 2010 * add Andreas Eversberg and Sylvain
2010-01-12Merge remote branch 'goeller/master'Harald Welte2-26/+70
2010-01-12Fix allocation of BTS from VTYlaforge1-1/+1
In 39315c47989326275823d1589425ee62d15bc823 we introduced per-bts OML attribute parser definitions and disallowed a BTS of type unknown. However, the VTY code first allocates a BTS with unknown type.
2010-01-11[bsc_mgcp] Set the right remote rtp and rtcp portHolger Hans Peter Freyther1-0/+2
* It is the same as local endpoint port
2010-01-11[bsc_mgcp] Fix writing of the config file...Holger Hans Peter Freyther1-0/+2
* Add the new forward audio option
2010-01-11[bsc_mgcp] Print a message which mode is configuredHolger Hans Peter Freyther1-0/+4
2010-01-11[bsc_mgcp] Add a new forward only mode to the bsc_mgcpHolger Hans Peter Freyther1-25/+61
With forward IP in the config and early bind on we will simply forward RTP data on the endpoints from BTS to the forward IP address. This is implemented by disabling MGCP functionality when a forward IP address was specified, setting the forward IP in the endp->remote and assigning a ci != CI_UNUSED. Early bind will make sure the sockets are created, the BSC FD's are registered and then the normal dispatch code will do the forwarding.
2010-01-10fix ipaccess-config, call missing nanobts initializationHarald Welte1-0/+1
FIXME: We really need to have some libbsc and libmsc initialization functions that clean up this mess.
2010-01-10[OML] parse attributes depending on BTS typeHarald Welte8-87/+220
Some NM attributes are defined differently depending on the BTS type. Having one big nm_att_tlvdef[] table for all BTS types is no longer sufficient. This patch * introduces 'struct gsm_bts_model' to describe a BTS model * adds definitions of gsm_bts_model for BS-11 and nanoBTS * changes the abis_nm_tlv_parse() function: include a bts pointer
2010-01-10TLV: add function to patch a tlv definition tableHarald Welte1-0/+13
2010-01-07introduce new gsm_bts_trx_by_nr() functionHarald Welte1-0/+11
2010-01-07bis_nm_ipaccess_set_nvattr() executes on a TRX, not a BTSHarald Welte2-7/+7
2010-01-07[vty] In case of handover only warn about the proxy mode when it is enabledHolger Hans Peter Freyther1-2/+4
Do not warn if the user has put "handover 0" in his configuration as this will not enable handover, only warn if it is going to be enabled.
2010-01-07Initialize reject_cause to a valid numberHolger Hans Peter Freyther1-0/+1
Currently starting with the opencfg.cfg.nanobts and writing it out and then trying to start again will not work. The network reject_cause is initialized to 0 which is not a valid reject reason and when writing this to the config file and trying to parse it will fail. Pick roaming not allowed as a harmless option to those phones accidently trying to connect to the BTS.
2010-01-07[system_information] Initialize the buffer before moving itHolger Hans Peter Freyther1-2/+4
In the case of ipaccess we are doing a ++output but then still try to write 23 bytes into it and on my system this is leading to a stack corruption.
2010-01-07[system_information] Return how much byte were written into outputHolger Hans Peter Freyther1-9/+10
2010-01-07[rest_octets] Return bv.data_len to indicate how was writtenHolger Hans Peter Freyther1-4/+6
Return the used data_len for the bitvector. This indicates how much data might have been written.
2010-01-07[rest_octets] Change data_len to the sizes of the specHolger Hans Peter Freyther1-5/+5
Is that right?
2010-01-07[bs11_config] Add pll-setvalue and pll-workvalue commandsDaniel Willmann1-1/+21
These commands let you change the PLL set and work values. Many thanks to Dieter Spaar for figuring out how to do this! Now you can just reset your PLL work value if it drifts away due to your E1 card. Use it like this: bs11_config pll-workvalue 1000
2010-01-07[bs11_config] Whitespace changes so the help text looks niceDaniel Willmann1-14/+14
2010-01-07[abis_nm] Add abis_nm_bs11_set_pll function to change the set/work valueDaniel Willmann1-0/+21
Whether this function changes the set or the work value depends on your type of login. In FACTORY login it changes the set value, in FIELD login it changes the work value (which is what is used by the BS11 to tune the frequency).
2010-01-07[abis_nm] Add abis_nm_bs11_infield_logon to logon as user fieldDaniel Willmann1-0/+5
As this user you are able to set the PLL work value which is especially useful if your BS11 got detuned by an inaccurate oscillator in your E1 card.
2010-01-07[abis_nm] Add generic abis_nm_bs11_logon functionDaniel Willmann1-5/+8
Factoring out common logon functionality will allow us to logon as different user. abis_nm_bs11_factory_logon now uses this function.
2010-01-07[signal] Differentiate paging success from expiration in SS_PAGINGSylvain Munaut3-7/+5
This is useful information to know and actually fixes a segfault in rllp.c where lchan is accessed even tough it could be NULL in case of failure. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-07abis_nm: Consider a STATE CHG without avail_status as an empty avail_statusSylvain Munaut1-1/+2
At least some nanoBTS 139 send the last even (going online) as 'enabled' 'unlocked' but no avail status IE (which I guess mean an empty set, the doc 12.21 isn't that clear about that). Signed-off-by: Sylvain Munaut <tnt@246tNt.com>