Before the assigned value (0xFF) was truncated, reg->text[0] is of
type char. A corresponding test for the same value in openbsc could
only fail.
---
src/gsm/gsm0480.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gsm/gsm0480.c b/src/gsm/gsm0480.c
index 92a62dc..dbacefc 100644
--- a/src/gsm/gsm0480.c
+++ b/src/gsm/gsm0480.c
@@ -234,7 +234,7 @@ static int parse_ussd(const struct gsm48_hdr *hdr, uint16_t len, struct ussd_req
case GSM0480_MTYPE_RELEASE_COMPLETE:
LOGP(0, LOGL_DEBUG, "USS Release Complete\n");
/* could also parse out the optional Cause/Facility data */
- req->text[0] = 0xFF;
+ req->text[0] = '\0';
break;
case GSM0480_MTYPE_REGISTER:
case GSM0480_MTYPE_FACILITY:
--
1.8.3.2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi everyone,
we (Rhizomatica.org) are currently setting up a OpenBSC-based network
in Oaxaca, Mexico. I've been looking into the code and found the
token-based authentication which was used at the HAR2009 (I still
remember receiving that SMS) :)
I understand that each phone will get an SMS and then disconnect from
the network. What is the API to confirm the token and activate the
account? I vaguely remember a web interface at the time, but I could
be wrong...
Thanks a lot!
Ciaby
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iF4EAREKAAYFAlJXerwACgkQC30ZhxNccpFbuAEAjJN+DEjz5rlYBbYJeBw2884e
SuSvNHud+XfcDJL0IaYBAJFFIJbEG6XtdTADCt4lyvdaRcbTDn0B2f9NZEod8kJU
=KqiR
-----END PGP SIGNATURE-----
This patchset solves the issue with the wrong sender address for inbound SMPP
SMS messages. It then further cleans up DB structure to remove 'receiver_id'
field from the sms table.
The only issue with this code is that it somehow breaks channel_test test,
because it depended on some fragile linker behavior. The last patch in the
series fixes compilation of the test, but the test asserts. I hope the test
author will find a more proper way to implement it, but at this moment I
propose to disable it.
Alexander Chemeris (4):
bsc: Allow subscr_put() to be called with subscr->net=NULL.
sms: Add a function to update DB scheme v3 to v4.
msc: Do not store received id in the SMS database.
This is a hack to fix channel_test.c compilation.
Holger Hans Peter Freyther (1):
sms: Kill the sms->sender and use addr/ton/npi throughout the code
openbsc/include/openbsc/gsm_data.h | 1 -
openbsc/src/libbsc/gsm_subscriber_base.c | 2 +-
openbsc/src/libmsc/db.c | 257 ++++++++++++++++++++++++------
openbsc/src/libmsc/gsm_04_11.c | 9 +-
openbsc/src/libmsc/smpp_openbsc.c | 5 +-
openbsc/tests/channel/Makefile.am | 4 +-
openbsc/tests/channel/channel_test.c | 12 --
7 files changed, 215 insertions(+), 75 deletions(-)
--
1.7.9.5
In case of a headroom in a message, the 'head' pointer will not point to
the actual data.
---
src/osmo-bts-sysmo/l1_transp_fwd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/osmo-bts-sysmo/l1_transp_fwd.c b/src/osmo-bts-sysmo/l1_transp_fwd.c
index 5050705..87c230b 100644
--- a/src/osmo-bts-sysmo/l1_transp_fwd.c
+++ b/src/osmo-bts-sysmo/l1_transp_fwd.c
@@ -95,7 +95,7 @@ static int fwd_read_cb(struct osmo_fd *ofd)
static int prim_write_cb(struct osmo_fd *ofd, struct msgb *msg)
{
/* write to the fd */
- return write(ofd->fd, msg->head, msg->len);
+ return write(ofd->fd, msg->l1h, msgb_l1len(msg));
}
int l1if_transport_open(int q, struct femtol1_hdl *fl1h)
--
1.8.1.5