Module: kamailio
Branch: master
Commit: 6de8d942b626b05dff8dd5a4f20776db632eba19
URL:
https://github.com/kamailio/kamailio/commit/6de8d942b626b05dff8dd5a4f20776d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-02-20T11:32:49+01:00
kamctl: also shift only on params when printing rpc command
---
Modified: utils/kamctl/kamctl.rpcfifo
---
Diff:
https://github.com/kamailio/kamailio/commit/6de8d942b626b05dff8dd5a4f20776d…
Patch:
https://github.com/kamailio/kamailio/commit/6de8d942b626b05dff8dd5a4f20776d…
---
diff --git a/utils/kamctl/kamctl.rpcfifo b/utils/kamctl/kamctl.rpcfifo
index 0f8f171f48..ecf381fa41 100644
--- a/utils/kamctl/kamctl.rpcfifo
+++ b/utils/kamctl/kamctl.rpcfifo
@@ -149,12 +149,12 @@ rpc_cmd_print()
RPCPARAMS="yes"
shift
fi
- while [ -n "$1" ] ; do
- rpcparamval "${1}"
- CMD="${CMD}, ${RPCVAL}"
- shift
- done
if [ "$RPCPARAMS" = "yes" ]; then
+ while [ -n "$1" ] ; do
+ rpcparamval "${1}"
+ CMD="${CMD}, ${RPCVAL}"
+ shift
+ done
CMD="${CMD}]"
fi
CMD="${CMD}, \"reply_name\": \"${name}\", \"id\":
$$}\n"