LinHES Forums
http://forums.linhes.org/

Caller ID on LinHES R6.02
http://forums.linhes.org/viewtopic.php?f=21&t=21187
Page 1 of 1

Author:  Transverse [ Sat Jul 03, 2010 1:12 pm ]
Post subject:  Caller ID on LinHES R6.02

jzigmyth's procedure to get caller ID popup using ncidd/ncid is good. However, I'd rather be able to see the callerid display anytime, not just during playback. So instead of using ncid-mythtv, I used ncid-yac along with xyac.

So, I followed the procedure, but with one change to the ncid configuration:

/etc/sv/ncid/run contents:

Code:
#!/bin/sh
exec 2>&1
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions

svwaitup -s 3 /var/service/ncidd || exit 1

which ncid 2>/dev/null >/dev/null

if [ $? = 0 ]
then
    if [ -f /var/service/ncidd/run ]
    then
        sv start ncidd
    fi

    stat_runit "Starting callerid client"

    exec /usr/bin/ncid --no-gui --message --call-prog --program ncid-yac
fi


Now, the additional steps...
ncid-yac needed to be modified slightly, as it wasn't stopping on its own and wasn't sending until it was stopped.
Code:
sudo nano /usr/share/ncid/ncid-yac

This line:
Code:
echo -n "@CALL${CIDNAME}~${CIDNMBR}" | nc -w1 $YACCLIENT $YACPORT

Needs to change to:
Code:
echo -n "@CALL${CIDNAME}~${CIDNMBR}" | nc -c $YACCLIENT $YACPORT

So now, instead of waiting for a timeout, nc just sends and closes. That timeout never happened on my system, so the yac messages were only occurring on shutdown.



ncid-yac depends on netcat. So install netcat:
Code:
sudo pacman -S gnu-netcat

This gave me a warning, but it functions.



Now to set up xyac...
modified for R6 from elgordo123's procedure here:

xyac depends on xosd, so install that.
Code:
sudo pacman -S xosd


pacman doesn't know xyac, so we'll have to compile it...
Code:
wget http://www.bah.org/~greg/tivo/xyac/xyac-0.1.tar.gz
tar zxvf xyac-0.1.tar.gz
cd xyac*
su
make
make install

This installs xyac to /usr/local/bin

To get xyac to run, it'll need an entry in fluxbox apps.
Code:
sudo nano /home/mythtv/.fluxbox/apps

Add this line:
Code:
[startup] {/usr/local/bin/xyac -p middle -A center -c yellow -s 5 -f lucidasanstypewriter-bold-24 &}

(Note can also use lucidasanstypewriter-bold-18 if 24 is too big)
(Note: the command xlsfonts will show a list of fonts avail to you)
(Make sure it is all ONE line in the apps file or it wont start)

Restart x and give yourself a call.

If you'd like to manually test xyac from the same machine, you can fire off one of these...
Code:
echo -n "testing testing 123" | nc -c 127.0.0.1 10629

or from a different machine, adjust that 127.0.0.1 to meet your needs.

If you'd like to serve yac information to other machines on your network, set the list of listeners for ncid-yac at the bottom of /etc/ncid/ncidmodules.conf. I've got ncid-yac serving out to my windows box too, with the yac client here.

Author:  christ [ Sun Jul 04, 2010 8:03 am ]
Post subject: 

This looks interesting!

Perhaps you could update or add to the wiki?

Author:  jimdoc [ Wed Jul 07, 2010 7:42 pm ]
Post subject: 

Thanks for this!!

I was able to install this without problem.

I've got a CallerID program I wrote on my Windows PC (yes I'm a Windows developer). I was able to modify my program to output CID info to my myth box.

Author:  Transverse [ Wed Jul 07, 2010 8:29 pm ]
Post subject: 

I have the sneaking suspicion that much of this process could be simplified by using the "Run Callerid" and "Show Callerid" tick boxes in:
Service Menu > LinHes Configuration > Advanced Settings

I only noticed they existed after I wrote this up.

I suspect those tick boxes do something similar to jzigmyth's procedure. Is there any documentation on what the tick boxes do exactly? Can anyone point me in the right direction?

Author:  Transverse [ Wed Jul 07, 2010 8:40 pm ]
Post subject: 

Alright, christ, it's up on the wiki.
http://linhes.org/bugs/projects/linhes/ ... using_xyac

Author:  christ [ Thu Jul 08, 2010 4:55 pm ]
Post subject: 

excellent. I think the wiki is slowly building momentum.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/