#1. I would like to use a non-phone-like headset with my rPi to make calls from the console. #2. Every now and then when I’m out, I’d like the rPi to call me and #3. have it let me press a key from a menu to run a shell script.
The sun is rising over here and having installed and updated asterisk11 on a brand new pie i feel like my head is going to explode from all the vocabulary i don’t know yet.
I know you’re all rooting for me, so please tell me that I’m in the right place and that I can get these things configured with the info i hope to find here!
so i’ve built v11.16.0 from source after enabling the console in menuconfig. but its not showing up. so i wrote the script below to check all the things asterisk spews out at startup but no console yet.
#!/bin/sh
FILE=/var/log/asterisk/messages
OUTP=$FILE.txt
rm $OUTP
show() {
echo $1: >>$OUTP
cat $FILE |grep $2 |cut -b $3- |sort -u >>$OUTP
echo >>$OUTP
}
echo ASTERISK messages >>$OUTP
echo ----------------- >>$OUTP
head -n 1 $FILE >>$OUTP
echo from $FILE >>$OUTP
echo >>$OUTP
show Errors ERROR 32
show Warnings WARNING 34
show Infos NOTICE 33
echo >>$OUTP
less -S $OUTP
i’ll poke around more, meanwhile I hope this helps someone. if you have another round of clues for me on how to do what i described, please go ahead!
i wound up making an org-mode file from the help during which i discovered the module section and its sub-commands.
so i’m looking at the console commands and am open to suggestions and pointers for how to make this thing call me when it needs a decision! tyvm!
p.s. i see my devices and i understand (more or less) how i’d drive this from a script. connecting the device … and responding to tones … ugh. clues would save my weekend!
found a sample console.conf … http svn.dd-wrt.com / browser/src/router/asterisk/configs/samples/console.conf.sample … still looking for how to specify the USB Audio device.
org-mode is dangerous. do not learn about it. seriously. do not invest 2 month in learning emacs and org-mode just so you can save an hour or two every day. http youtube.com / watch?v=6W82EdwQhxU better just throw me another bone so the rpi can call me and present me with a menu of choices… for which it then runs a shell script. … i repeat, stay away from emacs/org-mode
thanks for any help you can offer!
(can’t put links in yet)