Files
jami-daemon/tools/sflphone-bash/hangupall
2005-12-19 00:11:35 +00:00

21 lines
348 B
Bash
Executable File

#!/bin/sh
# Copyright (C) 2005 Yan Morin <yan.morin@savoirfairelinux.com>
##
# Use the daemon to hangup all calls (with netcat)
# @author Yan Morin
##
. ./global
if [ ! -z `$pidof 'sflphoned'` ]; then
callstring="hangupall calls\n"
echo "Hangup all calls..."
echo -en $callstring | $netcat
else
echo "sflphoned is already stopped"
fi