31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# noise.sh
|
|
# This file is part of the YATE Project http://YATE.null.ro
|
|
#
|
|
# Yet Another Telephony Engine - a fully featured software PBX and IVR
|
|
# Copyright (C) 2005-2023 Null Team
|
|
#
|
|
# This software is distributed under multiple licenses;
|
|
# see the COPYING file in the main directory for licensing
|
|
# information for this specific distribution.
|
|
#
|
|
# This use of this software may be subject to additional restrictions.
|
|
# See the LEGAL file in the main directory for details.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
# Bourne shell test script for the Yate external module interface
|
|
# Generates 2 seconds of white noise
|
|
# To test add a route to: external/play/noise.sh
|
|
|
|
read -r REPLY
|
|
echo "$REPLY" | sed 's/^[^:]*:\([^:]*\):.*$/%%<message:\1:true:/;'
|
|
|
|
echo "=================== noise ===================" >&2
|
|
dd if=/dev/urandom bs=320 count=100 >&4
|
|
echo "================= noise done ================" >&2
|