mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
21 lines
348 B
Bash
Executable File
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
|
|
|