aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-04-18GPRS: change 'gprs enabled <0-1>' to 'gprs mode (none|gprs|egprs)'Harald Welte5-20/+55
This causes some config file breakage but sounds like a much cleaner approach than to have two separate config variables for this.
2010-04-18GPRS: Add Support for the GPRS Cell Option Extension Info IEHarald Welte3-2/+46
Extension Information is part of the GPRS Cell Options IE, as specified in Chapter 12.24 of TS 04.60. It is needed for indicating EDGE capabilities of the BTS to the MS. This simply adds the code to encode this IE as part of SI13, but does not actually use the code yet.
2010-04-18add an example config file for nanoBTS multi-trx caseHarald Welte1-0/+97
2010-04-18update the openbts.cfg.nanobts exampleHarald Welte1-3/+38
2010-04-18GPRS: BVCI 0 and 1 are not permitted.Harald Welte1-1/+1
According to TS 08.18, BVCI=0 is for the SIGNALLING entity, and BVCI=1 is for the PTM entity. Both should not be used by the PTP entity that we're configuring here.
2010-04-18BVCI 0 is not within the permitted rangeHarald Welte1-1/+1
2010-04-17[statistics] Keep track of OML/RSL failures of the BTS.Holger Hans Peter Freyther4-0/+14
2010-04-17[statistics] Keep track of rf failures and rll release failuresHolger Hans Peter Freyther4-1/+13
Add two new counters to count the RF Failures and the RLL Release failure and make them available via the vty interface.
2010-04-17Merge branch 'on-waves/mgcp'Holger Hans Peter Freyther3-11/+19
2010-04-17[mgcp] Fix vty file generation for the BSC nat and other casesHolger Hans Peter Freyther1-6/+8
The current setting was not properly written out, this commit is fixing it. This includes indention, empty bts ip, wrong command for endpoints and the wrong number (+1 as zero is allocated but unused).
2010-04-17Add rf_locked to the configuration writing.Holger Hans Peter Freyther1-0/+3
2010-04-15[vty] Separate BSC and MSC statistics. Make it easy to print them.Holger Hans Peter Freyther4-41/+52
Move the statistics command into the MSC part and move the BSC statistics printing into a subroutine.
2010-04-15[mgcp] Only write audio_name/payload when it is actually set.Holger Hans Peter Freyther1-2/+4
2010-04-15[bsc_init] When the RSL/OML connection drops, free all lchansHolger Hans Peter Freyther3-2/+42
Free all allocated channels on the TRX that failed, go through lchan_free to signal higher layers and then force a reset of the channel. Make the TRX and TS unusable by setting the operational set to 0 (not really defined) which should be reset once the RSL is coming up again.
2010-04-15[ipa] Fix the reporting of link down...Holger Hans Peter Freyther1-2/+2
Now bsc_init.c is able to handle the link down messages.
2010-04-15[ipa] Handle losing the RSL/OML connection..Holger Hans Peter Freyther2-26/+123
This is addressing multiple issues regarding the loss of the OML/RSL link to the BTS. 1.) When we lose the OML link, close down all RSL connections on all TRXs (only tested with one TRX) and free the e1inp_line allocated for the OML connection. 2.) When we lose the RSL link on any TRX and we know to which lines this connection belongs, we will close down the OML connection as we have a problem to just reactivate one RSL link. 3.) When we lose the RSL link on any TRX and we do not know where it belongs to we will free the bfd we have allocated in the rsl listen/accept method and we properly close the socket (i could not test this one properly). This is made under the assumption the BTS has not responded to the ID request. 4.) When we already have a bts->oml_link we will throw it away and use the new link (it should not happen) and the same applies to the rsl link.
2010-04-12ipaccess: Send RTP Payload IE for CRCX & MDCXSylvain Munaut4-8/+56
For GSM V1 FR, the payload type is fixed to 3 in the RFC. But for the other codecs, the payload type is dynamically assigned between 96 and 127. Here, we use a static mapping internal to OpenBSC. This patch is needed to make a rather old 139 unit (with sw version 120a002_v149b42d0) work with something else than FR codec. I also tested this patch on a newer 139 (with sw version 120a352_v267b22d0) to make sure it didn't add a regression. More testing with newer EDGE units should be done by whoever has some of theses. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-12abis_nm: Fix ACTIVATE SW parametersSylvain Munaut1-12/+49
The previous code only sent the FILE_ID tag data part, but according to the GSM 12.21 spec, section 8.3.6, the full SW Description 'object' must be sent so that includes the NM_ATT_SW_DESCR tag, the whole FILE_ID and the whole FILE_VERSION (including tags & length fields). Note that functionnaly on a nanoBTS 139 I couldn't see any difference ... whatever I send in there it works ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-11Revert "ipa: Reduce the throttling of the IPA msges"Holger Hans Peter Freyther1-1/+3
Reducing the throttling to this value created a regression with bringing up RSL on the nanoBTS 900. We do seem to have a bug/issue in the bsc_init code and might send a command too early without this longer wait period and then the state transition does not happen. For now it is agreed that reverting is the best thing to do. Debugged-by: Sylvain Munaut <246tnt@gmail.com> This reverts commit f5284ae1cf8babc1567b33f469e20a66a73fcd9e.
2010-04-10[rsl] Set the right state when asking for the activation.Holger Hans Peter Freyther1-0/+1
Set the state to activation to avoid a warning about the getting a CHAN ACK without waiting for it. We set it in the code to make sure it is set after all error checking to avoid inconsistent state as the state is only set back to NONE/ACT due replies from the BTS.
2010-04-10[rsl] Set the release state from within the lchan classHolger Hans Peter Freyther2-1/+1
Currently our GSM04.11 code is closing the link for SAPI=3 and this would mean that the whole channel would be scheduled for close... where we only want to close everything when freeing the lchan or handling an error.
2010-04-10[rsl] Introduce a method to set the state of the lchanHolger Hans Peter Freyther3-7/+15
Setting the state through a dedicated method allows us to track the state transitions and check if they are done in a proper way.
2010-04-10[rsl] Remove method that is not called by anything.Holger Hans Peter Freyther1-1/+0
2010-04-10[vty] Remove unused variables due them only being used in the layer3Holger Hans Peter Freyther1-4/+0
I moved the extra code to the layer3 VTY implementation but didn't remove the variables while doign so, silent compiler warnings.
2010-04-10[vty] Forward declare the extra init function the base is callingHolger Hans Peter Freyther1-0/+2
2010-04-10[paging] Include chan_alloc.h to silence a compiler warningHolger Hans Peter Freyther1-0/+1
paging.c:259: warning: implicit declaration of function ‘trx_is_usable’
2010-04-10Return anything from append_lsa_params.Holger Hans Peter Freyther1-0/+1
2010-04-10[paging] Start with a smaller paging limit...Holger Hans Peter Freyther1-1/+1
The value 20 is just a random number and it really depends on the number of TRX on a bts to be a sane or insane limit.
2010-04-10[paging] Move code to use LOGP and print some more informationHolger Hans Peter Freyther1-6/+6
2010-04-10[paging] Simplify the last request and treat llist as a queueHolger Hans Peter Freyther2-35/+9
The current code was overly complex. It tried to iterate over the list in a round robin and we had to keep track of the last element, see if we remove that one, check if the list becomes empty... This can all replaced by treating the double linked list as a queue. We take the item at the front, do something on it and then and then put it back to the list at the end.
2010-04-09paging: Avoid integer underflow on ipaccessHolger Hans Peter Freyther1-0/+14
On the nanoBTS we do not receive any load indication for the paging channel and we just decrement our available slots and the unsigned int wraps to the maximum value. Together with a not yet understood bug this makes us go amock. For the nanoBTS and even the Siemens BS11 resetting the load to 20 after two seconds should be just fine. For the nanoBTS we would need to reset the 20 a lot more earlier but we need to take a look at how often we run low.
2010-04-09[mgcp] Improve the endpoint display on the vty..Holger Hans Peter Freyther1-1/+1
Make sure one understands the two values for number of incoming packets..
2010-04-09[mgcp] Print the IP addr of the BTS we have detected.Holger Hans Peter Freyther1-2/+3
2010-04-08[paging] Do not use request after it was was destroyed..Holger Hans Peter Freyther1-1/+1
Increment the counter before we call the remove request which is freeing the request...
2010-04-07[paging] Increase the time used to send paging messages to the BTSHolger Hans Peter Freyther1-2/+2
Send a Paging Request to the BTS every two seconds. This way it is unlikely that a phone will try to respond to two paging requests as it is currently happening.
2010-04-07[ipa] When including MGCP our messages might be bigger than 300 byteHolger Hans Peter Freyther1-1/+1
The length field of the IPA header allows to have 16bit numbers and I just ran into the 300 byte limit with MGCP messages. Make it three times the size and see how long this is going to be enough.
2010-04-07[rsl] Speculative crash fix in the RSL rcv messageHolger Hans Peter Freyther1-1/+13
The theory is that the BTS is almost dead and sends out a incomplete message and we crash with that. I have not been able to completely verify that.
2010-04-07Merge branch 'master' into on-waves/mgcpHolger Hans Peter Freyther13-268/+319
2010-04-07[mgcp] Fix navigation in the vty hierachy (make exit work)Holger Hans Peter Freyther1-0/+3
Make exit from the MGCP node work properly.
2010-04-07Fix compiler warning about void return in non void method.Holger Hans Peter Freyther1-0/+2
2010-04-07[mgcp] Add the logging commands for the MGCP command.Holger Hans Peter Freyther2-1/+3
2010-04-07Merge branch 'on-waves/sccp'Holger Hans Peter Freyther3-53/+51
2010-04-07Merge branch 'on-waves/mgcp'Holger Hans Peter Freyther7-94/+166
2010-04-07[mgcp] Print the errno/strerror when we can not receive from our socketHolger Hans Peter Freyther1-2/+3
2010-04-07[mgcp] Add an option to allow using reallocing an endpointHolger Hans Peter Freyther2-2/+11
For some mode of operation it can be acceptable to reallocate an already allocated endpoint. This can be the case when we only deal with one call agent that is keeping track of the endpoint but slightly confused.
2010-04-07[mgcp] Count incoming RTP packets from the BTS and remoteHolger Hans Peter Freyther4-2/+14
2010-04-07vty: Fix the byteorder... of the bound_ipHolger Hans Peter Freyther1-1/+1
We are storing the bound_ip in host byteorder but when using ntohl we need to convert it back to to network byte order.
2010-04-06[vty] Move the VTY logging commands to a new fileHolger Hans Peter Freyther5-209/+254
Currently vty_interface.c is used for the BSC config, in case of the MGCP Gateway or the BSC Nat process these logging commands are not available. Move the commands to a new vty_interface_cmds.c file to allow to share basic commands across different programs.
2010-04-06[mgcp] Reset the the address when freeing the endp as wellHolger Hans Peter Freyther1-0/+2
2010-04-06[mgcp] Do not patch RTP payload when type is set to -1.Holger Hans Peter Freyther1-0/+3
For the nat we might or might not want to patch it, do not patch if we have no valid rtp payload type.