Browse code

kamctl: use param evaluation mode for cisco restart command

Daniel-Constantin Mierla authored on 21/01/2021 09:00:46
Showing 1 changed files
... ...
@@ -953,7 +953,7 @@ $AVP_USER_COLUMN='$OSERUSER' AND $AVP_DOMAIN_COLUMN='$OSERDOMAIN'"
953 953
 cisco_restart() {
954 954
 	require_ctlengine
955 955
 	myhost=`get_my_host`
956
-	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\""
956
+	CMDPARAMS="= tm.t_uac_start NOTIFY \"$1\" \".\" \".\" \"From:sip:daemon@$myhost=CRLF=To:<$1>=CRLF=Event:check-sync=CRLF=Contact:sip:daemon@$myhost=CRLF=\""
957 957
 
958 958
 	if [ $CTLENGINETYPE -eq 1 ] ; then
959 959
 		ctl_cmd_run $CMDPARAMS