[sr-dev] git:master:a0a97119: usrloc: set tcp connection id to -1 for records added via rpc

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 9 09:12:14 CEST 2021

Module: kamailio
Branch: master
Commit: a0a97119bef7671f33734399dc9de4562abae39c
URL: https://github.com/kamailio/kamailio/commit/a0a97119bef7671f33734399dc9de4562abae39c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-09-09T09:11:06+02:00

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

- cope properly with the handle_lost_tcp modparam


Modified: src/modules/usrloc/ul_rpc.c


Diff:  https://github.com/kamailio/kamailio/commit/a0a97119bef7671f33734399dc9de4562abae39c.diff
Patch: https://github.com/kamailio/kamailio/commit/a0a97119bef7671f33734399dc9de4562abae39c.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