Sms Server

March 18, 2018 | Author: papaspiro | Category: Hypertext Transfer Protocol, Short Message Service, Web Server, World Wide Web, Technology


Comments



Description

SMS Server toolsNii Okai Quaye February 2010 SMS SERVER TOOLS o  Install o  Aptitude search sms/smstools o  Sudo apt-get install smstools Copyright © 2011. World Wide Web Foundation. All rights reserved d/apache2 stop   config file /usr/apache2/conf/httpd.conf   error logfile /usr/apache2/logs/error. MySQL database         start stop client /etc/init.d/mysqld start /etc/init.d/sms stop /etc/smsd.d/mysqld stop mysql -u root -p Copyright © 2011.log /var/spool/sms     start /etc/init.log   web pages /usr/apache2/htdocs The location of these files is different on some linux distributions. World Wide Web Foundation.d/sms start /etc/init.conf /var/log/smsd.d/apache2 start   stop /etc/init. All rights reserved .SMS SERVER TOOLS   SMS Server Tools Config files start   stop   config file   error logfile   sms queues Apache webserver     /etc/init. 1=monday. .. All rights reserved . World Wide Web Foundation. minute Windows nnCron lite c:\programme\cron\cron.)           Copyright © 2011.tab Part of *nix systems           */10****cp/tmp/logfile. hour.new minute (0-59) hour (0-23) day (1-31) month (1-12) weekday (0=sunday.Cron Jobs   Programs the run repeatedly at specified times Every day.old /tmp/logfile.. Kannel   Open source sms and wap gateway WAP       Communicates to the phone via wap stack and translates request it receives to http for content and service providers Compresses WML scripts into more compact format to save bandwidth and Abstract various smsc protocols and exposes http interface for content providers Copyright © 2011. World Wide Web Foundation. All rights reserved   SMS   . All rights reserved .Kannel   Consists of three programs called boxes   bearerbox -  Accepts sms and wap messages and sends them to other boxes Handles wap messages   wapbox -    smsbox -  Handles sms messages   It is possible to have multiple sms and wap boxes on the same or different hosts Copyright © 2011. World Wide Web Foundation. d/kannel -    start / stop / restart Copyright © 2011. All rights reserved .Kannel on Debian   Apt-get install /etc/init. World Wide Web Foundation. World Wide Web Foundation.gz # cd gateway-1.1.Kannel Setup # mkdir src # cd src # tar xfz ..4. All rights reserved .tar./downloads/gateway-1.4.1 # configure –prefix=/usr/local/kannel # make # sudo make install password: ************** Copyright © 2011. 0 => debug and development 4=>critical errors and problems Ex 0 for development and 1 for production     box-deny-ip = "*. All rights reserved .*" box-allow-ip = "127.0.4.0.log" log-level = 0 -  -  0 . World Wide Web Foundation.*.1" Copyright © 2011.Kannel Core Group   Group (assume comm from localhost only)             group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar log-file = "/tmp/kannel.*. 0. All rights reserved . World Wide Web Foundation.0.Kannel SMSC Group   Smsc Group                 Kannel allows many smsc conf -  Fakesms service for development and testing -  GSM -  SMS service over Http group = smsc smsc = at modemtype = auto device=/dev/ttyUSB* -  Serial port through which device is connected my-number = XXXXXXXXXX connect-allow-ip = 127.1 log-level = 0 Copyright © 2011. World Wide Web Foundation.0. All rights reserved .Kannel SMSBox Group   Receives and sends sms received by the core -  -  -  -  -  group = smsbox bearerbox-host = 127.1 sendsms-port = 13013 Global-sender = XXXXXXXX   Outgoing number of modem log-level = 0 Copyright © 2011.0. All rights reserved .Kannel Sendsms Group   Allows web apps to send sms(over http) using kannel -  -  -  -  -  group = sendsms-user username = kanneluser password = XXX concatenation= true max-messages = 10 Copyright © 2011. World Wide Web Foundation. Kannel SMS-Service Group   Configures how Kannel sends messages to applications Possible to setup to catch incoming messages based on various criteria Using HTTP Get to send message to an app all messages go to one script -  -  -  -  -      -  group = sms-service keyword = keyword-regex = . World Wide Web Foundation. All rights reserved .* catch-all = yes Max-messages = 0   Tells kannel to never send reply directly from incoming message ans for :<empty reply for service provider> get-url = "http://localhost/sms?phone=%p&text=%a" Copyright © 2011. All rights reserved . World Wide Web Foundation.Kannel Receiving Messages   Kannel calls the url sepecified in sms-service group Further processing and use up to us and the specific application/service we intend to deliver   Copyright © 2011. ! }!     Php iconv allow_url_fopen set to On in php.! $results = file('http://'! .ini Copyright © 2011. "&to={$in_phoneNumber}"! . CONFIG_KANNEL_PORT . World Wide Web Foundation. CONFIG_KANNEL_USER_NAME! . ':'! . $in_msg)). '&charset=UCS-2&coding=2'! . CONFIG_KANNEL_PASSWORD! . $in_msg)! {! $url = '/cgi-bin/sendsms?username=' . CONFIG_KANNEL_HOST . All rights reserved . 'ucs-2'. $url). urlencode(iconv('utf-8'. '&text=' .Kannel Sending Messages   Done over Http function sendSmsMessage($in_phoneNumber. '&password=' . kannel Copyright © 2011.com/2010/05/setup-kannel-sms-gateway-on-ubuntu/#more-1320>   Enable SMSBOX   sudo vi /etc/default/kannel -  -  START_WAPBOX=1 START_SMSBOX=1   Add kannel user to dialout group to enable kannel user to use /dev/ttyUSB0 device that is necessary for GSM modems   sudo vi /etc/group -  dialout:x:20:daniel. World Wide Web Foundation.dijexi. All rights reserved .Kannel Hands on courtesy: <http://www. 1" ! smsbox-port = 13003! group = wapbox ! bearerbox-host = localhost ! log-file = "/var/log/kannel/wapbox.! group = core ! admin-port = 13000 ! admin-password = bar ! admin-deny-ip = "*. using enfora modem defined below ! group = smsc ! smsc = at ! modemtype = enfora ! device = /dev/ttyUSB0! Copyright © 2011.0.*.*.0.*" ! box-allow-ip = "127.*.*.log"! ####### SMS box setup ! group = smsbox ! bearerbox-host = localhost ! log-file = "/var/log/kannel/smsbox. ! # See the documentation for explanations of fields. ! #! # HTTP administration is disabled by default.log"! ####### SMSC / GSM modem setup.log" ! box-deny-ip = "*. All rights reserved . World Wide Web Foundation. Make sure you set the ! # password if you enable it.*" ! admin-allow-ip = "" ! wapbox-port = 13002 ! wdp-interface-name = "*" ! log-file = "/var/log/kannel/bearerbox.Kannel Configuration Sample 1 # ! # Sample configuration file for Kannel bearerbox on Debian. FrontlineSMS Keywords   Information pull     Keywords auto reply can be sent to provide the requested information We can also link keywords to forward message to a predifined group or individual -  Eg For customer complaint Eg join group .auto reply and forward   Keywords can be linked to multiple actions -  Copyright © 2011. All rights reserved . World Wide Web Foundation. FrontlineSMS Http Trigger   This allows for of FLSMS be programmed to perform some action based on an external (http) command Need to establish port to listen to Format         http://localhost:<portNumber>/send/sms/ <destinationPhoneNumber>/<messageContent>/ Where Copyright © 2011. All rights reserved . World Wide Web Foundation. " ".= $url."/". ?> <?php if(count($rs)>0) { $counter = 0. $rs = $objDB->select().". foreach($rs as $data) { // You can change the format or the message here //------. // Query messages by campaign ID // if(isset($_POST['campaignid']) && $_POST['campaignid'] != "") { $Query = "select * from custom_fields where campaign = '"."/". curl_close($curl_handle).$data['var2'].$data['phone']. World Wide Web Foundation.2).<?php include_once("config.php"). $content. //------. // database definition include_once("dbclass.Message Format ---------$message =rawurlencode($data['var1'].CURLOPT_CONNECTTIMEOUT."<br/>". $objDB->setQuery($Query).$output.$_POST['campaignid'].=".$url). curl_setopt($curl_handle. All rights reserved . // used for debug $content.php"). // Using Curl $curl_handle=curl_init()."' "." ". $output = curl_exec($curl_handle).$data['var3']." ". // sql Where Conditios $objDB = new DB().CURLOPT_URL.$data['phone']. curl_setopt($curl_handle.".$data['var4']).Message Format ---------$url = "http://localhost:8000/send/sms/". // used for debug ?> Copyright © 2011.$message." . ! String encodedMessage = URLEncoder.encode("helo".encode ("+2348069361226". World Wide Web Foundation."UTF-8").! URL url=new URL("http://localhost: 8181/send/sms/"! + encodedPhoneNumber + "/"! + encodedMessage).! Copyright © 2011."UTF-8").String encodedPhoneNumber = URLEncoder. All rights reserved . All rights reserved . World Wide Web Foundation.Copyright © 2011.
Copyright © 2024 DOKUMEN.SITE Inc.