This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/15862 ) Change subject: ss7: Set Traffic mode and Route Ctx in ASPAC ACK msg if known ...................................................................... ss7: Set Traffic mode and Route Ctx in ASPAC ACK msg if known Change-Id: Ic99131489efaef87f882312a042f5feb6a60bb86 Related: OS#4220 --- M src/xua_asp_fsm.c 1 file changed, 14 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/62/15862/1 diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c index 58ca224..8dadd04 100644 --- a/src/xua_asp_fsm.c +++ b/src/xua_asp_fsm.c @@ -235,9 +235,21 @@ case XUA_ASP_E_ASPTM_ASPAC_ACK: /* RFC3868 Ch. 3.6.2 */ xua->hdr = XUA_HDR(SUA_MSGC_ASPTM, SUA_ASPTM_ACTIVE_ACK); + rctx_cnt = xua_asp_get_rctx(asp, rctxs, ARRAY_SIZE(rctxs)); + /* Optional: Traffic Mode Type */ - /* Mandatory: Routing Context */ - //FIXME xua_msg_add_u32(xua, SUA_IEI_ROUTE_CTX, + if (rctx_cnt) { + as = osmo_ss7_as_find_by_rctx(asp->inst, rctxs[0]); + tmode = osmo_ss7_tmode_to_xua(as->cfg.mode); + if (as && tmode != -1) + xua_msg_add_u32(xua, SUA_IEI_TRAF_MODE_TYP, tmode); + } + /* Optional: Routing Context */ + if (rctx_cnt) { + for (i = 0; i < rctx_cnt; i++) + rctxs[i] = htonl(rctxs[i]); + xua_msg_add_data(xua, SUA_IEI_ROUTE_CTX, rctx_cnt * sizeof(uint32_t), (uint8_t *) &rctxs[0]); + } /* Optional: Info String */ break; case XUA_ASP_E_ASPTM_ASPIA: -- To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/15862 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-sccp Gerrit-Branch: master Gerrit-Change-Id: Ic99131489efaef87f882312a042f5feb6a60bb86 Gerrit-Change-Number: 15862 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191023/d8b1f765/attachment.htm>