pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/42207?usp=email )

Change subject: tcap: Avoid updating trans_track if AS doesn't have 
tcap-routing enabled
......................................................................

tcap: Avoid updating trans_track if AS doesn't have tcap-routing enabled

Change-Id: I0106df80f6c186b184bada8f06d38d0d54cce735
---
M src/ipa.c
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  lynxis lazus: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/src/ipa.c b/src/ipa.c
index 29dc5c0..2f48167 100644
--- a/src/ipa.c
+++ b/src/ipa.c
@@ -309,8 +309,10 @@
                /* Third, patch this into the SCCP message and create M3UA 
message in XUA structure  */
                data_hdr.si = MTP_SI_SCCP;
 #ifdef WITH_TCAP_LOADSHARING
-               /* update TCAP Transaction Tracking (Rx) */
-               tcap_as_rx_sccp_asp(as, asp, opc, dpc, msg);
+               if (as->cfg.loadshare.tcap.enabled) {
+                       /* update TCAP Transaction Tracking (Rx) */
+                       tcap_as_rx_sccp_asp(as, asp, opc, dpc, msg);
+               }
 #endif /* WITH_TCAP_LOADSHARING */
                if (as->cfg.pc_override.sccp_mode == OSMO_SS7_PATCH_BOTH) {
                        struct msgb *msg_patched = patch_sccp_with_pc(asp, msg, 
opc, dpc);

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42207?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I0106df80f6c186b184bada8f06d38d0d54cce735
Gerrit-Change-Number: 42207
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to