Browse code

kamctl: removed condition on CTLENGINETYPE

- done again inside ctl_cmd_run

Daniel-Constantin Mierla authored on 21/01/2021 13:05:50
Showing 1 changed files
... ...
@@ -955,12 +955,7 @@ cisco_restart() {
955 955
 	myhost=`get_my_host`
956 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
-	if [ $CTLENGINETYPE -eq 1 ] ; then
959
-		ctl_cmd_run $CMDPARAMS
960
-	else
961
-		RET=`ctl_cmd_run $CMDPARAMS | head -1`
962
-		print_status $RET
963
-	fi
958
+	ctl_cmd_run $CMDPARAMS
964 959
 }
965 960
 
966 961
 #
... ...
@@ -2037,12 +2032,7 @@ options_ping() {
2037 2032
 	myhost=`get_my_host`
2038 2033
 	require_ctlengine
2039 2034
 	CMDPARAMS="= tm.t_uac_wait_block OPTIONS \"$1\" \".\" \".\" \"From:sip:daemon@$myhost=CRLF=To:<$1>=CRLF=Contact:sip:daemon@$myhost=CRLF=\""
2040
-	if [ $CTLENGINETYPE -eq 1 ] ; then
2041
-		ctl_cmd_run $CMDPARAMS
2042
-	else
2043
-		RET=`ctl_cmd_run $CMDPARAMS | head -1`
2044
-		print_status $RET
2045
-	fi
2035
+	ctl_cmd_run $CMDPARAMS
2046 2036
 }
2047 2037
 
2048 2038
 #