[sr-dev] git:master:4a4f0475: kamctl: removed condition on CTLENGINETYPE

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 21 14:07:15 CET 2021


Module: kamailio
Branch: master
Commit: 4a4f0475716cbf824b2ab9684457e21f6732aa74
URL: https://github.com/kamailio/kamailio/commit/4a4f0475716cbf824b2ab9684457e21f6732aa74

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: removed condition on CTLENGINETYPE

- done again inside ctl_cmd_run

---

Modified: utils/kamctl/kamctl

---

Diff:  https://github.com/kamailio/kamailio/commit/4a4f0475716cbf824b2ab9684457e21f6732aa74.diff
Patch: https://github.com/kamailio/kamailio/commit/4a4f0475716cbf824b2ab9684457e21f6732aa74.patch

---

diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 338b4a8585..b28dfb642e 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -955,12 +955,7 @@ cisco_restart() {
 	myhost=`get_my_host`
 	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
-	else
-		RET=`ctl_cmd_run $CMDPARAMS | head -1`
-		print_status $RET
-	fi
+	ctl_cmd_run $CMDPARAMS
 }
 
 #
@@ -2037,12 +2032,7 @@ options_ping() {
 	myhost=`get_my_host`
 	require_ctlengine
 	CMDPARAMS="= tm.t_uac_wait_block OPTIONS \"$1\" \".\" \".\" \"From:sip:daemon@$myhost=CRLF=To:<$1>=CRLF=Contact:sip:daemon@$myhost=CRLF=\""
-	if [ $CTLENGINETYPE -eq 1 ] ; then
-		ctl_cmd_run $CMDPARAMS
-	else
-		RET=`ctl_cmd_run $CMDPARAMS | head -1`
-		print_status $RET
-	fi
+	ctl_cmd_run $CMDPARAMS
 }
 
 #




More information about the sr-dev mailing list