daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/42685?usp=email )
Change subject: tcap_as_loadshare: Use tcap_trans_track_begin instead of *_entry_create ......................................................................
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))) {