[mythtv-users] Caller-ID/Asterisk integration?
Thomas Boehm
mythtv-users at lists.boehmi.net
Thu Mar 3 18:53:13 UTC 2016
On 26/02/16 14:23, Harley Peters wrote:
> This is what I use.
>
> In extensions.conf.
> same => n,System(MythTVCallerid "${CALLERID(name)}" ${CALLERID(num)} &)
>
> Shell script named MythTVCallerid
>
> #!/bin/bash
>
> export HOME=/home/mythtv
>
> mythutil --notification \
> --bcastaddr 192.168.1.255 \
> --type warning \
> --message_text 'You have an incoming call!' \
> --origin 'Asterisk' \
> --description "\
> NAME: $1
> Number: $2
> Date: `date`
> " \
> --timeout 30
>
> exit 0;
How did you get the multi-line description in the notification to work?
I tried inserting \n, but it doesn't work.
To stay off-topic with Asterisk, do you know what would I need to do to
run the script only when a certain extension rings? I'm running FreePBX,
so I'm not really familiar with the dialing plan syntax. What I have at
the moment is this in my extensions_custom.conf
> [from-pstn-custom]
> exten => _X.,1,System(/usr/local/bin/incoming_call.sh "${CALLERID(name)}" ${CALLERID(num)} &)
and it works for all incoming calls. I guess I need to change the
context and replace _X. with the extension. But what would be the right
context?
Thanks
Thomas
More information about the mythtv-users
mailing list