summaryrefslogtreecommitdiffstats
path: root/abs/core/ncid/ncid-linhes
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-04 22:17:20 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-04 22:17:20 (GMT)
commitc9384ea38e51b5efc4ce9d88130c8b52db0926e2 (patch)
tree6bce13bc7809c55a14e491e0edff3305ff4fec7e /abs/core/ncid/ncid-linhes
parent7aa0a951a78696ee89078e50f6505658525a5d27 (diff)
downloadlinhes_pkgbuild-c9384ea38e51b5efc4ce9d88130c8b52db0926e2.zip
linhes_pkgbuild-c9384ea38e51b5efc4ce9d88130c8b52db0926e2.tar.gz
linhes_pkgbuild-c9384ea38e51b5efc4ce9d88130c8b52db0926e2.tar.bz2
ncid: fix up to:
1) work 2) added area code lookup for US only
Diffstat (limited to 'abs/core/ncid/ncid-linhes')
-rw-r--r--abs/core/ncid/ncid-linhes20
1 files changed, 19 insertions, 1 deletions
diff --git a/abs/core/ncid/ncid-linhes b/abs/core/ncid/ncid-linhes
index 1a9e74c..faa1056 100644
--- a/abs/core/ncid/ncid-linhes
+++ b/abs/core/ncid/ncid-linhes
@@ -15,6 +15,8 @@
# OUT: outgoing call
# HUP: blacklisted hangup
# MSG: message instead of a call
+MYTH_RUN_STATUS=1
+. /etc/profile
ConfigDir=/etc/ncid
ConfigFile=$ConfigDir/ncidmodules.conf
@@ -28,6 +30,22 @@ read CIDNAME
read CIDLINE
read CIDTYPE
+LOC=''
+
+#areacode=`echo $CIDNMBR | cut -d "(" -f2 | cut -d ")" -f1`
+areacode=`echo $CIDNMBR | cut -d "-" -f1`
+if [ -e $MV_ROOT/templates/ncid/areacodes.csv ]
+then
+ LOC=`grep $areacode $MV_ROOT/templates/ncid/areacodes.csv |cut -d "," -f2`
+fi
+
+
+
+
#echo "$CIDDATE|$CIDTIME|$CIDNMBR|$CIDNAME|$CIDLINE|$CIDTYPE" > /dev/tty
-/usr/LH/bin/lh_message.sh "$CIDNMBR\n$CIDNAME\n$CIDTYPE"
+
+/usr/LH/bin/msg_client.py --clear
+/usr/LH/bin/msg_client.py --kill
+sleep .2
+/usr/LH/bin/msg_client.py --msg "$CIDNMBR\n$CIDNAME\n$CIDTYPE\n$LOC"
exit 0