Module: kamailio Branch: master Commit: 8266f0ee05b1f2faf2d4148efca257f7322da4ce URL: https://github.com/kamailio/kamailio/commit/8266f0ee05b1f2faf2d4148efca257f7322da4ce
Author: Vicente Hernando <vherna...@systemonenoc.com> Committer: Vicente Hernando <vherna...@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/8266f0ee05b1f2faf2d4148efca257f7322da4ce.diff Patch: https://github.com/kamailio/kamailio/commit/8266f0ee05b1f2faf2d4148efca257f7322da4ce.patch --- 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; } _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev