Execute command on incoming call?`

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?


use system

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

Excellent, thanks for your help!