Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
apt-get -y install asterisk-prompt-de
apt-get -y install espeak
apt-get -y install ffmpeg
;
; SIP Configuration for Asterisk
;
[general]
language=de
tonezone=de
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
register => [SIZE=3][B][COLOR=#008000]621[/COLOR][/B][/SIZE]:[SIZE=3][COLOR=#0000ff][B]KENNWORT[/B][/COLOR][/SIZE]@[SIZE=3][B][COLOR=#0000ff]IPDERFRITZBOX[/COLOR][/B][/SIZE]:5060/[SIZE=3][B][COLOR=#008000]621[/COLOR][/B][/SIZE]
[authentication]
[gateway](!)
description=Fritz!Box Registrar
context=sastalk
call-limit=15
type=friend
insecure=invite
nat=force_rport,comedia
fromdomain=fritz.box
secret=[SIZE=3][B][COLOR=#0000ff]KENNWORT[/COLOR][/B][/SIZE]
host=[SIZE=3][COLOR=#0000ff][B]IPDERFRITZBOX[/B][/COLOR][/SIZE]
canreinvite=yes
directmedia = no
dtmfmode=rfc2833
allow=!all,g722,alaw,ulaw
[fbgateway](gateway)
defaultuser=[SIZE=3][B][COLOR=#008000]621[/COLOR][/B][/SIZE]
fromuser=[SIZE=3][B][COLOR=#008000]621[/COLOR][/B][/SIZE]
[sastalk]
exten => s,1(start),NoOp(${CHANNEL} ${CALLERID(all)} ruft ${EXTEN})
same => n,Answer()
same => n,Wait(1)
same => n,Playback(play)
same => n,Wait(1)
same => n(exit),Hangup()
service asterisk stop
service asterisk start
service asterisk restart
#!/bin/bash
rm /usr/share/asterisk/sounds/de/playx.wav 2>/dev/null >/dev/null
rm /usr/share/asterisk/sounds/de/play.wav 2>/dev/null >/dev/null
echo -e "Channel: SIP/$1@fbgateway\nCallerid: SaS\nContext: sastalk\nExtension: s\nArchive: no" >/etc/asterisk/hallo.call
espeak -v german-mbrola-7 "$2" -w /usr/share/asterisk/sounds/de/playx.wav 2>/dev/null >/dev/null
ffmpeg -i /usr/share/asterisk/sounds/de/playx.wav -ar 8000 -ac 1 /usr/share/asterisk/sounds/de/play.wav 2>/dev/null >/dev/null
mv /etc/asterisk/hallo.call /var/spool/asterisk/outgoing/hallo.call 2>/dev/null >/dev/null
chmod 0777 /bin/telefoniere
telefoniere "[SIZE=3][B][COLOR=#0000ff]NUMMER[/COLOR][/B][/SIZE]" "[SIZE=3][B][COLOR=#0000ff]ZU SPRECHENDER TEXT[/COLOR][/B][/SIZE]"
telefoniere "**610" "Hallo, dies ist ein Test. "
telefoniere "0049VORWAHLOHNE0RUFNUMMER" "Hallo, dies ist ein Testanruf. "