diff options
author | James Meyer <james.meyer@operamail.com> | 2012-05-10 20:06:06 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-05-10 20:06:06 (GMT) |
commit | 2b532b540f448f02d7aee7ff04fa3d31655e7f8f (patch) | |
tree | 61dc3cbb6ce683a7d9d5fed2af090f63a086e86b /abs/core/ncid/ncid-linhes | |
parent | 42ae9b94604db5f6bd515863e0ffd3a44b6c866e (diff) | |
download | linhes_pkgbuild-2b532b540f448f02d7aee7ff04fa3d31655e7f8f.zip linhes_pkgbuild-2b532b540f448f02d7aee7ff04fa3d31655e7f8f.tar.gz linhes_pkgbuild-2b532b540f448f02d7aee7ff04fa3d31655e7f8f.tar.bz2 |
ncid: reintroduction to repo
Diffstat (limited to 'abs/core/ncid/ncid-linhes')
-rw-r--r-- | abs/core/ncid/ncid-linhes | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/core/ncid/ncid-linhes b/abs/core/ncid/ncid-linhes new file mode 100644 index 0000000..1a9e74c --- /dev/null +++ b/abs/core/ncid/ncid-linhes @@ -0,0 +1,33 @@ +#!/bin/sh +# keep "ncid-" in the name +# input is 6 lines obtained from ncid +# input: DATE\nTIME\nNUMBER\nNAME\nLINE\nTYPE\n +# +# input is 6 lines if a message was sent +# input: \n\n\n<MESSAGE>\n\nMSG\n +# Message will be in $CIDNAME +# +# ncid usage: +# ncid --no-gui [--message] --program ncid-linhes + +# $CIDTYPE is one of: +# CID: incoming call +# OUT: outgoing call +# HUP: blacklisted hangup +# MSG: message instead of a call + +ConfigDir=/etc/ncid +ConfigFile=$ConfigDir/ncidmodules.conf + +[ -f $ConfigFile ] && . $ConfigFile + +read CIDDATE +read CIDTIME +read CIDNMBR +read CIDNAME +read CIDLINE +read CIDTYPE + +#echo "$CIDDATE|$CIDTIME|$CIDNMBR|$CIDNAME|$CIDLINE|$CIDTYPE" > /dev/tty +/usr/LH/bin/lh_message.sh "$CIDNMBR\n$CIDNAME\n$CIDTYPE" +exit 0 |