#!/bin/bash cd "$(dirname "$0")" echo "Action: login username: admin secret: admin events: off Action: hangup Channel: /.*emerg.*/ " | socat - TCP:localhost:5038