[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netsaint-users
Subject:    [netsaint] HOW TO USE SMS NOTIFICATION + GNOKII
From:       Giulius <blizzards () libero ! it>
Date:       2002-08-30 10:25:22
[Download RAW message or body]

This is a little HOWTO that help who try to run gnokii with netsaint on 
unix systems for sms notification:



TO use gnokii with netasint you "must" know 3 things:

1)Netsaint cannot understand any replay output/error given by gnokii;
2)Netsaint user (process owner) must have the ability to read/write on 
the serial (or any other device like irda) connected to the gsm sender
3)Netsaint user (process owner) must read/write on lock directory


1) add this command to netsaint host.cfg
command[sms]=/path/to/printf "MESSAGE+VARIABLE" | /path/to/gnokii 
--sendsms [gsm number] -C0 2>/dev/null
add olso the contact information about sms like this:
contact[netsaint]=Netsaint 
User;24x7;24x7;1;1;1;1;1;1;notify-by-email,notify-by-epager,notify-by-sms;
host-notify-by-email,host-notify-by-epager,host-notify-by-sms;netsaint;netsaint

Remember:
if you forget to add   "2>/dev/null"  on the end of the command line, 
the result was a broken pipe and netsaint
cannot go over, freezing all the netsaint process.

2)Remember to set permission RW on serial (or any other device like 
irda) device to user netsaint (or process owner). This to permit
Read Write on device attached to gsm cel.
There are differently method to do this based on type of unix you own.
You must find this on yourself.

3)Now you must configure gnokii in order to use lock files (to avoid 
conflict with other devices that use serial/usb).
On gnokii/etc directory un can find a file called gnokiirc.
Make sure that contain this:

port = /dev/ (device attached to gsm)
model = (the model number of your nokia gsm like 6210)
connection = serial (or you connection to gsm cel. like irda, ecc.)
use_locking = yes

Now you are ready to receive sms about notification of netsaint.


Bye.
Giulius.







-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Netsaint-users mailing list
Netsaint-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netsaint-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic