[sr-dev] git:master:8266f0ee: call_obj: b/f acept optional limit parameter.
Vicente Hernando
vhernando at systemonenoc.com
Thu Jun 27 12:40:29 CEST 2019
Module: kamailio
Branch: master
Commit: 8266f0ee05b1f2faf2d4148efca257f7322da4ce
URL: https://github.com/kamailio/kamailio/commit/8266f0ee05b1f2faf2d4148efca257f7322da4ce
Author: Vicente Hernando <vhernando at systemonenoc.com>
Committer: Vicente Hernando <vhernando at 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;
}
More information about the sr-dev
mailing list