asterisk
Inhaltsverzeichnis
Asterisk 1.8
Diese Konfiguration wurde mit Ubuntu 10.04 LTS durchgeführt.
Bluetooth-Installation
Asterisk-Installation
# aptitude build-dep asterisk # aptitude build-dep asterisk-addons # aptitude build-esential libxml2-dev ncurses-dev # wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz # tar xvzf asterisk-1.8-current.tar.gz # cd asterisk-1.8.* # make menuselect # -> unter addons den chan_mobile auswählen # make && make install && make config && make samples # cd /etc/asterisk # vi chan_mobile.conf
/etc/asterisk/chan_mobile.conf
[general] interval=30 [adapter] id=blue address=xx:xx:xx:xx:xx:xx # <- aus hcitool dev
# /etc/init.d/asterisk stop
# asterisk –gcvvvvvvvvvvvvvv mobile search mobile show device quit
# vi chan_mobile.conf hinzufügen
[T7373] address=xx:xx:xx:xx:xx:xx # <- aus hcitool scan port=7 # <- aus mobile search context=default adapter=blue
/root/bin/anwahl.sh
Das hier ist das Skript zur Anwahl per Asterisk. Die Mobiltelefonnummer wird als Parameter übergeben:
# /root/bin/anwahl.sh 01729876543210
#!/bin/bash
if [ -z "$1" ] ; then
exit 1
fi
cat <<EOF >/tmp/mobile.call
Channel: Mobile/T7373/$1
Application: Playback
Data: hello-world
MaxRetries: 100
RetryTime: 120
WaitTime: 60
EOF
chown asterisk /tmp/mobile.call
mv /tmp/mobile.call /var/spool/asterisk/outgoing/
/home/http/wiki/data/pages/asterisk.txt · Zuletzt geändert: von 127.0.0.1
