Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27721 )
Change subject: scheduler: rts_tchh_fn(): use a lookup table for FACCH/H
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File src/common/scheduler.c:
https://gerrit.osmocom.org/c/osmo-bts/+/27721/comment/b32655c6_1af5ba6d
PS1, Line 1001: static const uint8_t sched_tchh_dl_facch_map[26] = {
Since this table is only used in the function below, you could move it there.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27721
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I3dba243e5a1b7c8008ef0178ea18ed885256c50d
Gerrit-Change-Number: 27721
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 11 Apr 2022 08:58:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27720 )
Change subject: scheduler: remove redundant OSMO_ASSERT() statements
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Patchset:
PS1:
That's precisely the point of the asserts, to describe and check that "guaranteed" situation, so that the code asserts if somebody changes the caller. Anyway, fine with removing them if needed.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27720
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6a01bba7b5eb337ae1552c442d74447565c52e25
Gerrit-Change-Number: 27720
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 11 Apr 2022 08:56:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27704 )
Change subject: bssap: forward paging from MSC to all BSCs
......................................................................
bssap: forward paging from MSC to all BSCs
I've considered only forwarding to specific BSCs based on the cell
identifier list inside the paging. For that, the cell identifier would
need to be stored beforehand (read it from location update? or put it in
vty config?) and I'm not sure if it is required, so don't do this for
now and extend it later if needed.
Related: SYS#5560
Related: https://osmocom.org/projects/osmo-bscnat/wiki/AoIP_OsmoBSCNAT#PAGING-BSC
Change-Id: I2532d94aab82d136b932d57fa53c8ecf2d8d1fd9
---
M src/osmo-bsc-nat/bssap.c
1 file changed, 38 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, but someone else must approve
laforge: Looks good to me, but someone else must approve
osmith: Looks good to me, approved
diff --git a/src/osmo-bsc-nat/bssap.c b/src/osmo-bsc-nat/bssap.c
index 94a450a..8e73a50 100644
--- a/src/osmo-bsc-nat/bssap.c
+++ b/src/osmo-bsc-nat/bssap.c
@@ -38,6 +38,41 @@
return osmo_sccp_tx_unitdata_msg(sccp_inst->scu, &sccp_inst->addr, addr, msg);
}
+static int bssmap_cn_handle_paging(struct osmo_sccp_addr *addr, struct msgb *msg, unsigned int length)
+{
+ struct bsc_nat_sccp_inst *sccp_inst = g_bsc_nat->ran.sccp_inst;
+ struct msc *msc = msc_get();
+ struct bsc *bsc;
+ int ret = 0;
+ int rc;
+
+ if (msc->addr.pc != addr->pc) {
+ LOGP(DMAIN, LOGL_ERROR, "Unexpected Rx PAGING in CN from %s, which is not %s\n",
+ osmo_ss7_pointcode_print(NULL, addr->pc), talloc_get_name(msc));
+ return -1;
+ }
+
+ LOGP(DMAIN, LOGL_DEBUG, "Rx PAGING from %s\n", talloc_get_name(msc));
+
+ msgb_pull_to_l2(msg);
+
+ /* Page all BSCs */
+ llist_for_each_entry(bsc, &g_bsc_nat->ran.bscs, list) {
+ LOGP(DMAIN, LOGL_DEBUG, "Fwd to %s\n", talloc_get_name(bsc));
+ rc = osmo_sccp_tx_unitdata(sccp_inst->scu,
+ &sccp_inst->addr,
+ &bsc->addr,
+ msg->data,
+ msgb_length(msg));
+ if (rc < 0) {
+ LOGP(DMAIN, LOGL_ERROR, "Fwd to %s failed\n", talloc_get_name(bsc));
+ ret = rc;
+ }
+ }
+
+ return ret;
+}
+
static int bssmap_cn_handle_reset_ack(struct osmo_sccp_addr *addr, struct msgb *msg, unsigned int length)
{
struct msc *msc = msc_get();
@@ -59,6 +94,9 @@
int ret = 0;
switch (msg->l3h[0]) {
+ case BSS_MAP_MSG_PAGING:
+ ret = bssmap_cn_handle_paging(addr, msg, length);
+ break;
case BSS_MAP_MSG_RESET_ACKNOWLEDGE:
ret = bssmap_cn_handle_reset_ack(addr, msg, length);
break;
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27704
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc-nat
Gerrit-Branch: master
Gerrit-Change-Id: I2532d94aab82d136b932d57fa53c8ecf2d8d1fd9
Gerrit-Change-Number: 27704
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27705 )
Change subject: README: osmo-dev: add BSC{0,1}_CODEC_LIST="fr2"
......................................................................
README: osmo-dev: add BSC{0,1}_CODEC_LIST="fr2"
In the test setup, let the real BSC and virtual BSC use the same codec.
With this the voice frames are successfully sent back by the virtual MS.
When using a different codec, since transcoding is not implemented in
OsmoMGW, the stream becomes invalid in MGW-MSC and gets dropped by BTS1,
never reaching the virtual MS.
Related: SYS#5560
Change-Id: I78d666ad77c03459f5369b64e651e47ce1d4f12c
---
M README.md
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
laforge: Looks good to me, approved
diff --git a/README.md b/README.md
index ca367a2..7c66e35 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,8 @@
```
BSC_COUNT=2
+BSC0_CODEC_LIST="fr2"
+BSC1_CODEC_LIST="fr2"
BTS1_RUN_IN_OSMO_DEV=1
STP_RAN_IP="127.0.0.2"
MS_RUN_IN_OSMO_DEV=1
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27705
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc-nat
Gerrit-Branch: master
Gerrit-Change-Id: I78d666ad77c03459f5369b64e651e47ce1d4f12c
Gerrit-Change-Number: 27705
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: laforge.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27704 )
Change subject: bssap: forward paging from MSC to all BSCs
......................................................................
Patch Set 1: Code-Review+2
(2 comments)
Patchset:
PS1:
> I think it is ok to merge this kind of approach now, but for later we definitely want to be smarter […]
Thanks, copied your reply into this issue: https://osmocom.org/issues/5522
PS1:
1+1+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27704
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc-nat
Gerrit-Branch: master
Gerrit-Change-Id: I2532d94aab82d136b932d57fa53c8ecf2d8d1fd9
Gerrit-Change-Number: 27704
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Mon, 11 Apr 2022 08:20:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment