pespin submitted this change.
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(-)
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 change 42207. To unsubscribe, or for help writing mail filters, visit settings.