summaryrefslogtreecommitdiffstats
path: root/abs/core/ncid/ncid-linhes
diff options
context:
space:
mode:
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