[sr-dev] git:5.5:1685ebd5: usrloc: set tcp connection id to -1 for records added via rpc

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 9 13:34:02 CEST 2021

Module: kamailio
Branch: 5.5
Commit: 1685ebd5917e763c347b6d4201b19b72e2ee274e
URL: https://github.com/kamailio/kamailio/commit/1685ebd5917e763c347b6d4201b19b72e2ee274e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-09-09T13:33:46+02:00

usrloc: set tcp connection id to -1 for records added via rpc

- cope properly with the handle_lost_tcp modparam

(cherry picked from commit a0a97119bef7671f33734399dc9de4562abae39c)


Modified: src/modules/usrloc/ul_rpc.c


Diff:  https://github.com/kamailio/kamailio/commit/1685ebd5917e763c347b6d4201b19b72e2ee274e.diff
Patch: https://github.com/kamailio/kamailio/commit/1685ebd5917e763c347b6d4201b19b72e2ee274e.patch


diff --git a/src/modules/usrloc/ul_rpc.c b/src/modules/usrloc/ul_rpc.c
index d45a8e2783..6565b07d5c 100644
--- a/src/modules/usrloc/ul_rpc.c
+++ b/src/modules/usrloc/ul_rpc.c
@@ -678,6 +678,7 @@ static void ul_rpc_add(rpc_t* rpc, void* ctx)
 	ci.ruid = _ul_sruid.uid;
 	ci.server_id = server_id;
+	ci.tcpconn_id = -1;
 	lock_udomain(dom, &aor);

More information about the sr-dev mailing list