Sip

From My Mnemonic Rhyme
Jump to navigation Jump to search

cmd clients

linphone und twinkle

/dev/dsp

modprobe snd-pcm-oss

1&1 call script

#!/bin/bash
if [ -z "$1" ]
then
echo "Enter Phonenumber"
exit 1
fi
if [ -f /tmp/test123 ]
then
unset id1
id1=$1
echo "Start Callscript"
linphonecsh init
sleep 5
echo "Register:"
linphonecsh register --host sip.1und1.de --username USER--password PASS
sleep 1
linphonecsh status register
sleep 1
echo "Calling $1"
linphonecsh dial sip:$id1\@sip.1und1.de
sleep 20
echo "Hang up"
linphonecsh generic terminate
sleep 1
echo "Exit"
rm -f /tmp/test123
linphonecsh exit
exit 0
fi
echo "No Callfile"
exit 0