hipporion/ann_end.sh
2019-10-01 19:01:56 +02:00

14 lines
226 B
Bash
Executable file

#!/bin/bash
line="$1"
[[ -n "$line" ]] || { echo >&2 "usage: $0 <line>"; exit 1; }
echo "Action: login
username: admin
secret: admin
events: off
Action: hangup
Channel: /PJSIP/emerg$line-.*/
" | socat - TCP:localhost:5038