Module: kamailio
Branch: master
Commit: 8266f0ee05b1f2faf2d4148efca257f7322da4ce
URL:
https://github.com/kamailio/kamailio/commit/8266f0ee05b1f2faf2d4148efca257f…
Author: Vicente Hernando <vhernando(a)systemonenoc.com>
Committer: Vicente Hernando <vhernando(a)systemonenoc.com>
Date: 2019-06-27T12:38:56+02:00
call_obj: b/f acept optional limit parameter.
---
Modified: src/modules/call_obj/call_obj_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8266f0ee05b1f2faf2d4148efca257f…
Patch:
https://github.com/kamailio/kamailio/commit/8266f0ee05b1f2faf2d4148efca257f…
---
diff --git a/src/modules/call_obj/call_obj_mod.c b/src/modules/call_obj/call_obj_mod.c
index 1b5decb24c..72307e2d86 100644
--- a/src/modules/call_obj/call_obj_mod.c
+++ b/src/modules/call_obj/call_obj_mod.c
@@ -106,7 +106,7 @@ static void rpc_call_obj_list(rpc_t *rpc, void *ctx)
cobj_elem_t *list = NULL;
int rc = rpc->scan(ctx, "d*d", &duration, &limit);
- if (rc != -1 && rc != 2) {
+ if (rc != 1 && rc != 2) {
rpc->fault(ctx, 400, "requires arguments for duration number (and optionally
limit)");
goto clean;
}