SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Sat May 10, 2025 20:02
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
Vic: Is it possible ? Yes. You can take some script language, for example php, and write some script which will do all work like these ( very simple examples ): Reading data from server: $handle = fopen("http://www.example.com/", "rb"); $contents = stream_get_contents($handle); fclose($handle); Sned data to server: $socket = fsockopen('www.example.loc', 80, $errno, $errstr, 30); $sFullFilePath = "/var/src/filename.txt"; if(!$socket)die("$errstr($errno)"); $boundary = md5(uniqid(time())); $file = "--$boundary\r\n". "Content-Disposition: form-data; name=\"my_file\";". " filename=\"".basename($sFullFilePath)."\"\r\n". "Content-Type: text/plain\r\n". "Content-Transfer-Encoding: binary\r\n\r\n"; $file.= file_get_contents($sFullFilePath); $file.="\r\n"; fwrite($socket, "POST /test.php HTTP/1.1\r\n"); fwrite($socket, "Host: www.example.com\r\n"); fwrite($socket,"User-agent:Opera 10.00\r\n"); fwrite($socket, "Connection: close\r\n"); fwrite($socket,"Content-Type: '. 'multipart/form-data; boundary=$boundary\r\n"); fwrite($socket,"Content-length:".strlen($file)."\r\n"); fwrite($socket,"Accept:*/*\r\n"); fwrite($socket,"\r\n"); fwrite($socket,"$file"); fwrite($socket,"--$boundary--\r\n"); fwrite($socket, "\r\n"); $answer = ''; while(!feof($socket)){ $answer= fgets($socket, 4096); } fclose($socket);
Vic: You can use such system: on point b) periodically run script which send requst to server in point a) and server in it answer return data with message texts. Script on point b) parses server answer, create files with sms data and write to smstool spool directory.
Vic: My php script work perfectly with sms. It does not matter what type of script used. Now I would like to add parameter to config file and change sources of program to read messages from second port to define incoming call.
Vic: I think you can use such system: points a) can use web server with some script which can recieve POST or GET request with message. point b) with use some script send request to poin a) after recieving sms
Vic: This is my config file: # cat /etc/smsd.conf devices = E173 date_filename = 2 logfile = /var/log/smsd.log loglevel = 7 log_charconv = yes user = uucp group = dialer outgoing = /var/spool/sms/outgoing checked = /var/spool/sms/checked failed = /var/spool/sms/failed incoming = /var/spool/sms/incoming report = /var/spool/sms/report sent = /var/spool/sms/sent stats = /var/spool/sms/stats phonecalls = /var/spool/sms/phonecall hangup_incoming_call = yes eventhandler = /var/src/smsop.php [E173] device = /dev/cuaU0.0 phonecalls = yes incoming = yes hangup_incoming_call = yes init = AT^CURC=0 # init = AT+CCWA=1 I use smstools-3.1.14: # pkg_info | grep sms smstools-3.1.14 SMS Gateway software for GSM modems and mobile phones I have next devices: # ls -l /dev/ttyU* crw------- 1 root wheel 0, 107 5 дек 02:26 /dev/ttyU0.0 crw------- 1 root wheel 0, 108 5 дек 02:26 /dev/ttyU0.0.init crw------- 1 root wheel 0, 109 5 дек 02:26 /dev/ttyU0.0.lock crw------- 1 root wheel 0, 113 5 дек 02:26 /dev/ttyU0.1 crw------- 1 root wheel 0, 114 5 дек 02:26 /dev/ttyU0.1.init crw------- 1 root wheel 0, 115 5 дек 02:26 /dev/ttyU0.1.lock crw------- 1 root wheel 0, 119 5 дек 02:26 /dev/ttyU0.2 crw------- 1 root wheel 0, 120 5 дек 02:26 /dev/ttyU0.2.init crw------- 1 root wheel 0, 121 5 дек 02:26 /dev/ttyU0.2.lock
Vic: When incoming call come "RING" is in /dev/cuaU0.2 How I can say this fact to smsd in it config?
Vic: When I try to use modem in Window with it Huawei program that program define when come incoming call. Does exist some AT command for modem that modem start respond to incoming call?
Vic: This is pert of my config: phonecalls = /var/spool/sms/phonecall hangup_incoming_call = yes eventhandler = /var/src/smsop [E173] device = /dev/cuaU0.0 phonecalls = clip incoming = yes but nothing happens when a call comes to modem: - no files in /var/spool/sms/phonecall - no hangup - no execution of eventhandler What I can use to get reaction from modem when call is coming?
Vic: I found this topic http://smstools3.kekekasvi.com/topic.php?id=299 and will try that method
Vic: FreeBSD 8.2: Name and model of a modem / phone: Huawei 173 Interface: USB Sorry for my english. I have connect usb modem Huawei 173 to my computer. I cand send and recieve sms. But my qustion is: Does exist method to define situation when phone call come to modem? And does exist method to get phone number when call coming to modem? I don't need to answer to call, only get number and hang up. I have next devices in my file system: # ls -l /dev/ttyU* crw------- 1 root wheel 0, 131 1 дек 15:41 /dev/ttyU0.0 crw------- 1 root wheel 0, 132 1 дек 15:41 /dev/ttyU0.0.init crw------- 1 root wheel 0, 133 1 дек 15:41 /dev/ttyU0.0.lock crw------- 1 root wheel 0, 137 1 дек 15:41 /dev/ttyU0.1 crw------- 1 root wheel 0, 138 1 дек 15:41 /dev/ttyU0.1.init crw------- 1 root wheel 0, 139 1 дек 15:41 /dev/ttyU0.1.lock crw------- 1 root wheel 0, 143 1 дек 15:41 /dev/ttyU0.2 crw------- 1 root wheel 0, 144 1 дек 15:41 /dev/ttyU0.2.init crw------- 1 root wheel 0, 145 1 дек 15:41 /dev/ttyU0.2.lock I am sorry, this question is not about smsd but if anybody knows something about solution please direct me to the right direction. I can write small unix program if exists only non standart solution.

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.