Browse code

kamctl: use tm.t_uac_wait for ping command

Daniel-Constantin Mierla authored on 19/01/2021 06:49:24
Showing 1 changed files
... ...
@@ -2036,7 +2036,7 @@ kamailio_stop() {
2036 2036
 options_ping() {
2037 2037
 	myhost=`get_my_host`
2038 2038
 	require_ctlengine
2039
-	CMDPARAMS="= tm.t_uac_start OPTIONS \"$1\" \".\" \".\" \"From:sip:daemon@$myhost=CRLF=To:<$1>=CRLF=Contact:sip:daemon@$myhost=CRLF=\""
2039
+	CMDPARAMS="= tm.t_uac_wait OPTIONS \"$1\" \".\" \".\" \"From:sip:daemon@$myhost=CRLF=To:<$1>=CRLF=Contact:sip:daemon@$myhost=CRLF=\""
2040 2040
 	if [ $CTLENGINETYPE -eq 1 ] ; then
2041 2041
 		ctl_cmd_run $CMDPARAMS
2042 2042
 	else