[sr-dev] git:master:359050f9: kamctl: use param evaluation mode for cisco restart command
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 21 14:07:14 CET 2021
Module: kamailio
Branch: master
Commit: 359050f9be40002aec1d3894dc43a2a8762ce8cc
URL: https://github.com/kamailio/kamailio/commit/359050f9be40002aec1d3894dc43a2a8762ce8cc
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-01-21T14:06:38+01:00
kamctl: use param evaluation mode for cisco restart command
---
Modified: utils/kamctl/kamctl
---
Diff: https://github.com/kamailio/kamailio/commit/359050f9be40002aec1d3894dc43a2a8762ce8cc.diff
Patch: https://github.com/kamailio/kamailio/commit/359050f9be40002aec1d3894dc43a2a8762ce8cc.patch
---
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 1db38e8865..338b4a8585 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -953,7 +953,7 @@ $AVP_USER_COLUMN='$OSERUSER' AND $AVP_DOMAIN_COLUMN='$OSERDOMAIN'"
cisco_restart() {
require_ctlengine
myhost=`get_my_host`
- CMDPARAMS="tm.t_uac_start NOTIFY $1 . . \"From:sip:daemon@$myhost\r\nTo:<$1>\r\nEvent:check-sync\r\nContact:sip:daemon@$myhost\r\n\""
+ CMDPARAMS="= tm.t_uac_start NOTIFY \"$1\" \".\" \".\" \"From:sip:daemon@$myhost=CRLF=To:<$1>=CRLF=Event:check-sync=CRLF=Contact:sip:daemon@$myhost=CRLF=\""
if [ $CTLENGINETYPE -eq 1 ] ; then
ctl_cmd_run $CMDPARAMS
More information about the sr-dev
mailing list