Browse code

cisco_reboot introduced

Jiri Kuthan authored on 31/05/2003 18:45:11
Showing 1 changed files
... ...
@@ -143,6 +143,9 @@ usage:
143 143
  $CMD stop ............................... stop ser
144 144
  $CMD restart ............................ restart ser
145 145
 
146
+           * miscellaneous *
147
+ $CMD cisco_restart <uri> ................ restart a Cisco phone
148
+
146 149
 
147 150
    Commands labeled with (*) will prompt for a MySQL password.
148 151
    If the variable PW is set, the password will not be prompted.
... ...
@@ -752,6 +755,16 @@ case $1 in
752 755
 		fifo_cmd "$@"
753 756
 		;;
754 757
 
758
+	cisco_restart)
759
+		if [ "$#" -ne 2 ] ; then	
760
+			usage
761
+			exit 1
762
+		fi
763
+		fifo_cmd t_uac_dlg NOTIFY "$2" "." "From: sip:daemon@$SIP_DOMAIN" \
764
+			"To: <$2>" "Event: check-sync" "Contact: <sip:daemon@!!>" "." "." |
765
+			head -1
766
+		;;
767
+
755 768
 	version)
756 769
 		echo  "$0 $VERSION"
757 770
 		;;