From owner-freebsd-isp@FreeBSD.ORG Thu Jun 1 19:15:03 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91C1B16AF30 for ; Thu, 1 Jun 2006 19:15:03 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id C440E43D55 for ; Thu, 1 Jun 2006 19:15:02 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.177]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k51JEfLn027178; Thu, 1 Jun 2006 23:14:51 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FlscG-0000D3-Km; Thu, 01 Jun 2006 23:13:56 +0400 To: Odhiambo Washington References: <20060601152435.GC51255@ns2.wananchi.com> From: Boris Samorodov Date: Thu, 01 Jun 2006 23:13:56 +0400 In-Reply-To: <20060601152435.GC51255@ns2.wananchi.com> (Odhiambo Washington's message of "Thu, 1 Jun 2006 18:24:35 +0300") Message-ID: <03202731@ho.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: "Boris B. Samorodov" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-isp@freebsd.org Subject: Re: Mass SMS X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 19:15:04 -0000 --=-=-= On Thu, 1 Jun 2006 18:24:35 +0300 Odhiambo Washington wrote: > I have a few hundred VIP clients (yes, some are more VIP than others) > who I'd like to notify, via SMS, whenever we have any network problem > and also immediately such a > problem is resolved. > What I'm looking for is some software that I can use to do this, > within FreeBSD. I hope one of the experts in this area has done > one so I don't have to wait for the invention. > `make search key=sms` from within the ports did give some apps, > but I did not see one that is capable of looking at a database > of contact numbers and sending that one sms to all of them. > Of course I do expect a reply/delivery report after sending the sms. > Any good pointers will be appreciated. We use: /usr/ports/net-mgmt/nagios /usr/ports/mail/exim /usr/ports/comms/gammu Nagios is used to lookup on host and services. When a problem occures, it sends a letter to address @domain. Exim has router: sms_posting: transport = mail2sms driver = manualroute local_part_suffix = -sms route_list = * ...and transport: mail2sms: driver = pipe user = mailnull command = /usr/local/bin/mail2sms.py The last script is at the attachement. It uses a Subject field as a text to send via sms and write an outgoing message to /var/spool/sms/outbox. Gammu smsd daemon is scanning this directory for any existing files and send them via GSM phone. This phone is connected to our server via COM or USB port (Prolific Technology chip USB-to-COM cable for the latter). /var/spool/sms/db/phones is the file with lines \tab: +7495NNNNNNN bsam-sms@domain.ru We have been using this technology for a year and don't have any claims so far. WBR -- Boris B. Samorodov, Research Engineer InPharmTech Co, http://www.ipt.ru Telephone & Internet Service Provider --=-=-=--