From: Pablo Neira Ayuso <pablo(a)gnumonks.org>
Hi Harald,
These are a couple of fixes that we have applied to openBSC
in the CCC camp. Daniel's fixes a crash, mine fixes one
malformed TCH frame issue which was the cause of quite often
unexpected closures of MNCC <-> LCR connections.
You can find them in the fixes branch.
Please, merge them.
Daniel Willmann (1):
libbsc: Don't free secondary lchan if it is NULL.
Pablo Neira Ayuso (1):
trau: fix wrong message size for GSM_TCHF_FRAME passed to MNCC
openbsc/src/libbsc/bsc_api.c | 6 +++++-
openbsc/src/libtrau/trau_mux.c | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
--
1.7.2.5
From: Pablo Neira Ayuso <pablo(a)gnumonks.org>
Hi Harald,
This patchset contains two updates for the Nokia support
in the following scenario: the BSC stops after having
configured the BTS, then the BTS is launched again but
LAPD reports unknown TEI. To fix this, we report to the
E1 driver about unknown TEI so it can resend the SABM
message.
... and one patch from Daniel who thinks that we have
to promote some logs messages from debugging to error.
You can find them in the nokia-pablo branch.
We are using them in the camp.
Please, merge them.
Daniel Willmann (1):
mncc: promote log level from debug to errors
Pablo Neira Ayuso (2):
LAPD: Propagate lapd_receive() errors to the E1 driver
NOKIA: Resend SABM on unknown TEI from LAPD
openbsc/include/openbsc/signal.h | 1 +
openbsc/src/libabis/e1_input.c | 1 +
openbsc/src/libabis/input/dahdi.c | 20 ++++++++++++++++----
openbsc/src/libabis/input/lapd.c | 14 ++++++++++++--
openbsc/src/libabis/input/lapd.h | 16 ++++++++++++++--
openbsc/src/libbsc/bts_nokia_site.c | 9 ++++++++-
openbsc/src/libmsc/gsm_04_08.c | 10 +++++-----
7 files changed, 57 insertions(+), 14 deletions(-)
Hello,
I have been testing the data setup and I found another issue. I couldn't really find out exactly what causes this. This happens rarely but it does happen time to time. I am attaching the log file of the issue. I looked through the log but I could not find anything else interesting in the log.
http://pastebin.com/tQ0mcyeu
This is the log file of the issue. I'll be glad to hear any thoughts about this.
Envoyé de mon iPhone
OpenBSC support RRLP protocol
but in RRLP we have 2 modes
E-OTD
A-GPS
what modes are supported??
if E-OTD is supported can we use OpenBSC to triangulate normal Cellphones
like Motorola C123
??
--
Akib Sayyed
Matrix-Shell
akibsayyed(a)gmail.com
akibsayyed(a)matrixshell.com
Mob:- +91-966-514-2243
Hello,I got everything up and running. Including EDGE data.
The throughput of the data from the osmo-sgsn is pretty good. But recently I
have spotted a problem with the SGSN.
The sgsn loses the phones SNDCP entity after idling or making a phone call.
Please see the log from the sgsn
http://pastebin.com/2W9dZdvW
Hello all,
I'm attempting to make my OpenBSC setup work with LCR and Asterisk. I'm not
sure if the problem that I'm running into is specific to the nature of my
setup (running a Nokia BTS) or is a misconfiguration issue with LCR. When I
run without LCR and Asterisk I can call between phones, SMS etc. With LCR I
have no such luck. I can place a call into the mobile from Asterisk, and
the mobile rings, but when I answer the call hangs up.
A pastebin of the LCR log can be found here:
http://pastebin.com/DbM3TfFp
Any insight into the cause would be much appreciated. :)
Thanks,
Gus
It seems that 24.008 Section 10.5.7.1 specifies the IE to be encoded in
little endian...
---
openbsc/src/gprs/gprs_gmm.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index 098e4c2..f83219f 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -870,6 +870,7 @@ static void process_ms_ctx_status(struct sgsn_mm_ctx *mmctx,
uint16_t pdp_status)
{
struct sgsn_pdp_ctx *pdp, *pdp2;
+ uint16_t pdp_status_reordered;
/* 24.008 4.7.5.1.3: If the PDP context status information element is
* included in ROUTING AREA UPDATE REQUEST message, then the network
* shall deactivate all those PDP contexts locally (without peer to
@@ -877,8 +878,13 @@ static void process_ms_ctx_status(struct sgsn_mm_ctx *mmctx,
* state PDP-INACTIVE on network side but are indicated by the MS as
* being in state PDP-INACTIVE. */
+ /* 24.008 10.5.7.1 indicates that the byte ordering is in fact
+ * little endian, i.e. the first octet contains NSAPI0..7 and
+ * the second payload octet NSAPI8..15 */
+ pdp_status_reordered = (pdp_status & 0xff << 8) || (pdp_status >> 8);
+
llist_for_each_entry_safe(pdp, pdp2, &mmctx->pdp_list, list) {
- if (!(pdp_status & (1 << pdp->nsapi))) {
+ if (!(pdp_status_reordered & (1 << pdp->nsapi))) {
LOGP(DMM, LOGL_NOTICE, "Dropping PDP context for NSAPI=%u "
"due to PDP CTX STATUS IE= 0x%04x\n",
pdp->nsapi, pdp_status);
@@ -977,6 +983,10 @@ static int gsm48_rx_gmm_ra_upd_req(struct sgsn_mm_ctx *mmctx, struct msgb *msg,
if (TLVP_PRESENT(&tp, GSM48_IE_GMM_PDP_CTX_STATUS)) {
uint16_t pdp_status = ntohs(*(uint16_t *)
TLVP_VAL(&tp, GSM48_IE_GMM_PDP_CTX_STATUS));
+ /* pdp_status is now in big endian, which is the wrong
+ * order. the wire encoding is little endian! We cannot
+ * simply drop the ntohs() above, as we migh be running
+ * on a big endian machine. */
process_ms_ctx_status(mmctx, pdp_status);
}
--
1.7.5.4
--iq/fWD14IMVFWBCD--
Hi openbsc@,
for the record I have just packaged libosmocore 0.1.30 and OpenBSC
0.9.13 in pkgsrc-wip, as released by Harald about 5 months ago, see:
http://openbsc.osmocom.org/trac/wiki/Tarballs
and
http://cvsweb.netbsd.se/cgi-bin/bsdweb.cgi/wip/libosmocore/http://cvsweb.netbsd.se/cgi-bin/bsdweb.cgi/wip/openbsc/
I had to apply a few changes, patches are found in the two links above
(not all of them good enough to be pushed though).
Unfortunately OpenBSC is probably not useful on NetBSD at the moment,
except with the isdn4bsd patches maybe (which I don't think are
maintained anymore). pkgsrc can be useful on Linux distributions though.
HTH anyway,
--
khorben