Execute command on incoming call?`


#1

I’m messing with speechd and i thought it would be nice to have incoming calls announced over the living room speakers, like “call from name/number”.

Is there a way to execute an (external) command like:

echo “call from 55512345” > /dev/speech

on an incoming call?

Thanks,
janne.


#2

use system

exten => 1,1,System(echo “call from ${CALLERID}” > /dev/speech)


#3

Excellent, thanks for your help!

/janne