Module: kamailio
Branch: master
Commit: 7ffa6a4fd2b4daf9edf0f46d5be0bb9cc06e00d7
URL:
https://github.com/kamailio/kamailio/commit/7ffa6a4fd2b4daf9edf0f46d5be0bb9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-18T18:35:31+02:00
usrloc: log message when rpc ul.add does not get proper params
---
Modified: src/modules/usrloc/ul_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7ffa6a4fd2b4daf9edf0f46d5be0bb9…
Patch:
https://github.com/kamailio/kamailio/commit/7ffa6a4fd2b4daf9edf0f46d5be0bb9…
---
diff --git a/src/modules/usrloc/ul_rpc.c b/src/modules/usrloc/ul_rpc.c
index d9533af262..c7d48cde8f 100644
--- a/src/modules/usrloc/ul_rpc.c
+++ b/src/modules/usrloc/ul_rpc.c
@@ -599,6 +599,7 @@ static void ul_rpc_add(rpc_t* rpc, void* ctx)
&dtemp, &path, &ci.flags, &ci.cflags, &ci.methods,
&ci.received,
&socket);
if (ret < 9) {
+ LM_ERR("not enough parameters - read so far: %d\n", ret);
rpc->fault(ctx, 500, "Not enough parameters or wrong format");
return;
}