[mythtv-users] Caller-ID/Asterisk integration?

Harley Peters harley at thepetersclan.com
Fri Feb 26 14:23:52 UTC 2016


On 02/25/2016 07:48 PM, Rob wrote:
> Does anyone know if any working plugins exist that integrate
> MythFrontend w/ Asterisk for anything along the lines of caller-ID?  I
> noticed that there was a plugin for 0.24, but the wiki indicates that it
> broke as of 0.25 w/ the introduction of MythMessage.
>
>
> Thank you,
> Rob
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>

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;

This will send it to all frontends which you may or may not want.
Also the backend is running on the same machine as Asterisk.

Harley


More information about the mythtv-users mailing list