daniel has uploaded this change for review.

View Change

tcap_as_loadshare: Use tcap_trans_track_begin instead of *_entry_create

*_begin checks for a matching entry and reuses that (with an updated
timestamp). This avoids duplicate entries in the tcap cache.

Related: SYS#5423
Change-Id: Icbaab976ed8207843129291494176679db574304
---
M src/tcap_as_loadshare.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/85/42685/1
diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c
index 635fd73..c549610 100644
--- a/src/tcap_as_loadshare.c
+++ b/src/tcap_as_loadshare.c
@@ -350,7 +350,7 @@
return -8;
}

- tcap_trans_track_entry_create(as, asp, &calling_addr, &parsed.otid, &called_addr, NULL);
+ tcap_trans_track_begin(as, asp, &calling_addr, &parsed.otid, &called_addr, NULL);
break;
case TCAP_TCMessage_PR_continue:
if (!((rc & OTID_SET) && (rc & DTID_SET))) {

To view, visit change 42685. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Icbaab976ed8207843129291494176679db574304
Gerrit-Change-Number: 42685
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann@sysmocom.de>