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. Fri Mar 14, 2025 18:35
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
z-wer: I could not realize the multi sending. Now it worked. Thanks Keke. Good luck. :D
z-wer: You do not understand ... ;)
z-wer: Variable "headers" is fundamental in sending SMS to multiple recipients? What is it should take? Sorry, I'm only two weeks teaching bash scripts. ;) I do not understand everything in the examples.
z-wer: Hi Keke. I can not understand the logic of the program. :D My file To: 375291111111 To: 375292222222 Hello! The examples do not help. Script file="aa" count=`cat $file | grep '^To: ' |wc -l` message=`cat $file |tail -n -1` if [ $count -gt 1 ]; then i=0 while [ $i -lt $count ] do i=`expr $i + 1` head -n $i "$file" | tail -n -1 > $i.msg ( echo "Alphabet: UTF-8" && \ echo && \ echo "$message" ) >> $i.msg done rm $file fi
z-wer: Ok. Good luck.
z-wer: Sometimes I get this error. 1970-01-02 10:40:33,7, GSM1: <- AT+CPMS? +CPMS: "SM",0,30,"SM",0,30,"SM",0,30 OK 1970-01-02 10:40:34,6, GSM1: Used memory is 0 of 30 1970-01-02 10:40:34,6, GSM1: No SMS received 1970-01-02 10:40:41,6, GSM1: Running a regular_run (PRE_RUN) 1970-01-02 10:40:41,7, GSM1: Running regular_run (modem): /home/smsd/ussd.sh PRE_RUN "/var/run/spool/ussd/stat.file" GSM1 1970-01-02 10:40:41,7, GSM1: Done: regular_run (modem), execution time 0 sec., status: 0 (0) 1970-01-02 10:40:41,7, GSM1: -> AT+CUSD=1,*100#,15 1970-01-02 10:40:41,7, GSM1: Command is sent, waiting for the answer 1970-01-02 10:40:44,7, GSM1: <- AT+CUSD=1,*100#,15 OK +CME ERROR: 258 1970-01-02 10:40:44,6, GSM1: Running a regular_run POST_RUN 1970-01-02 10:40:44,7, GSM1: Running regular_run_post_run (modem): /home/smsd/ussd.sh POST_RUN "/var/run/spool/ussd/stat.file" GSM1 1970-01-02 10:40:45,7, GSM1: Done: regular_run_post_run (modem), execution time 1 sec., status: 0 (0) 1970-01-02 10:40:48,6, GSM1: Checking device for incoming SMS 1970-01-02 10:40:48,6, GSM1: Checking if modem is ready 1970-01-02 10:40:48,7, GSM1: -> AT 1970-01-02 10:40:48,7, GSM1: Command is sent, waiting for the answer 1970-01-02 10:40:49,7, GSM1: <- AT OK 1970-01-02 10:40:49,6, GSM1: Pre-initializing modem
z-wer: Thank you for your help. ;) I will test more tomorrow. I sometimes get an error. Cause I can not install.
z-wer: Hi keke. I sent you the log file. My fix. if ((p = strstr(answer, "+CUSD:"))) { if (atoi(p + 6) == 1) { char answer[1024]; put_command("AT+CUSD=2\r", answer, sizeof(answer), 1, EXPECT_OK_ERROR); } }
z-wer: makefile include $(TOPDIR)/rules.mk PKG_NAME:=smstools3 PKG_VERSION:=3.1.15 PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://smstools3.kekekasvi.com/packages PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/smstools3 SECTION:=utils CATEGORY:=Utilities TITLE:=Sms Server Tools 3 DEPENDS:=+libiconv-full +iconv URL:=http://smstools3.kekekasvi.com/ endef define Package/smstools3/description The SMS Server Tools 3 is a SMS Gateway software which can send and receive short messages through GSM modems and mobile phones. endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CC=$(TARGET_CC) \ USER_CFLAGS='$(TARGET_CFLAGS) $(EXTRA_CFLAGS) \ $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) \ -I$(STAGING_DIR)/usr/lib/libiconv-full/include' \ USER_LDFLAGS='$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) \ -L$(STAGING_DIR)/usr/lib/libiconv-full/lib' endef define Package/smstools3/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smsd $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/sendsms $(1)/usr/bin/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DATA) -m 0755 ./files/sms3 $(1)/etc/init.d/ $(INSTALL_DIR) $(1)/etc $(INSTALL_DATA) ./files/smsd.conf $(1)/etc/ endef $(eval $(call BuildPackage,smstools3)) patches/001-smsd.patch --- a/src/smsd.c 2010-09-21 13:47:48.000000000 +0300 +++ b/src/smsd.c 2013-03-05 05:26:26.000000000 +0300 @@ -5200,8 +5200,8 @@ int result = 1; char *cmd; char *p; - char answer[500]; - char buffer[600]; + char answer[1024]; + char buffer[1024]; int fd; int log_retry = 3; int i; patches/010-makefile.patch --- a/src/Makefile 2010-09-21 15:29:14.000000000 +0300 +++ b/src/Makefile 2013-02-26 05:22:07.913423027 +0300 @@ -1,7 +1,10 @@ # In case of windows, use os_cygwin=yes setting in the configuration file (smsd.conf). # Select your setup size: -CFLAGS = -D NUMBER_OF_MODEMS=64 +CFLAGS = -D NUMBER_OF_MODEMS=1 + +CFLAGS += $(USER_CFLAGS) +LFLAGS += $(USER_LDFLAGS) # Uncomment for Solaris # CFLAGS += -D SOLARIS @@ -12,10 +15,10 @@ CFLAGS += -D NOSTATS # Comment this out if iconv is not available on the system -#CFLAGS += -D USE_ICONV +CFLAGS += -D USE_ICONV # Uncomment this is iconv is used and it's not included in libc: -#LFLAGS += -liconv +LFLAGS += -liconv # Uncomment this to force smsd to run in terminal mode #CFLAGS += -D TERMINAL I have everything compiled. The architecture ar71xx.
z-wer: I can send you their version of makefile where to send?
z-wer: check all posted
z-wer: Well, I'll try ... Sorry for my bad english ;)
z-wer: Log file is 100k Where to send the package? Messages can be translated into English ... Sorry, the log file does not want to cut into pieces. How to package and to attach - the forum can not find .. Good luck....
z-wer: I will make and post the result. But this problem is a particular provider ... Can I change my SIM card? :D
z-wer: Hi keke. I have another problem. After sending a USSD-request session is not closed. To close the USSD-session need to send another request. Can I duplicate a USSD-request for one minute? In the log file, it shows, I have attached it before.
z-wer: Hi keke. All work properly. Thank you for your help. Maybe someone will come in handy. Small patch. 001-smsd.patch --- a/src/smsd.c 2010-09-21 13:47:48.000000000 +0300 +++ b/src/smsd.c 2013-03-05 05:26:26.000000000 +0300 @@ -5200,8 +5200,8 @@ int result = 1; char *cmd; char *p; - char answer[500]; - char buffer[600]; + char answer[1024]; + char buffer[1024]; int fd; int log_retry = 3; int i;
z-wer: Thank you for your help. Good luck.
z-wer: ussd #!/bin/sh touch /var/run/spool/ussd/ussd.file echo "AT+CUSD=1,"*100#",15" >> /var/run/spool/ussd/ussd.file
z-wer: Hi keke. I can not understand what the problem with receiving ussd-messages ... It comes in the form of torn. This is only one operator "life". Maybe it is too long on the text? Logs and configuration, see below ... config devices = GSM1 loglevel = 7 infofile = /var/run/smsd/smsd.working pidfile = /var/run/smsd/smsd.pid checked = /var/run/spool/checked outgoing = /var/run/spool/outgoing logfile = /home/smsd/smsd.log incoming = /home/smsd/incoming sent = /home/smsd/sending #checkhandler = /home/scripts/check.sh eventhandler = /home/scripts/event.sh [GSM1] device = /dev/ttyUSB1 incoming = yes check_network = 0 signal_quality_ber_ignore = yes status_signal_quality = no memory_start = 0 #unexpected_input_is_trouble = yes regular_run_interval = 10 regular_run_logfile = /home/smsd/run.log regular_run = /home/smsd/ussd regular_run_cmdfile = /var/run/spool/ussd/ussd.file run.log 1970-01-01 14:23:22,5, GSM1: CMD: AT+CUSD=1,*100#,15: AT+CUSD=1,*100#,15 OK +CUSD: 1,"00420061006C0061006E0073003A002000310030003200300038002E00340035002000420072003B00200062006F006E0075007300200030002000420072003B00200064006C006A0061002000700072006F0064006F006C007A00680065006E0069006A00610020006F00620073006C0075007A0068006900760061006E0069006A006100200070006F0070006F006C006E00690074006500200073006300680065007400200064006F002000320034002E00300038002E00310033003B00200064006500740061006C006900200073006D006F007400720069002000760020002A0031003000 1970-01-01 14:23:32,5, GSM1: CMD: AT+CUSD=1,*100#,15: AT+CUSD=1,*100#,15 OK +CUSD: 0,"005500530053004400200073006500730073006900610020007A0061007600650072007300680065006E0061",72 1970-01-01 14:23:43,5, GSM1: CMD: AT+CUSD=1,*100#,15: AT+CUSD=1,*100#,15 OK +CUSD: 1,"00420061006C0061006E0073003A002000310030003200300038002E00340035002000420072003B00200062006F006E0075007300200030002000420072003B00200064006C006A0061002000700072006F0064006F006C007A00680065006E0069006A00610020006F00620073006C0075007A0068006900760061006E0069006A006100200070006F0070006F006C006E00690074006500200073006300680065007400200064006F002000320034002E00300038002E00310033003B00200064006500740061006C006900200073006D006F007400720069002000760020002A0031003000 1970-01-01 14:23:52,5, GSM1: CMD: AT+CUSD=1,*100#,15: AT+CUSD=1,*100#,15 OK +CUSD: 0,"005500530053004400200073006500730073006900610020007A0061007600650072007300680065006E0061",72 smsd.log 1970-01-01 14:23:15,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:15,7, GSM1: <- +CPMS: "ME",0,100,"ME",0,100,"SM",0,30 OK 1970-01-01 14:23:15,6, GSM1: Used memory is 0 of 100 1970-01-01 14:23:15,6, GSM1: No SMS received 1970-01-01 14:23:19,6, GSM1: Running a regular_run (PRE_RUN) 1970-01-01 14:23:19,7, GSM1: Running regular_run (modem): /home/smsd/ussd PRE_RUN "" GSM1 1970-01-01 14:23:19,7, GSM1: Done: regular_run (modem), execution time 0 sec., status: 0 (0) 1970-01-01 14:23:20,7, GSM1: -> AT+CUSD=1,*100#,15 1970-01-01 14:23:20,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:22,7, GSM1: <- AT+CUSD=1,*100#,15 OK +CUSD: 1,"00420061006C0061006E0073003A002000310030003200300038002E00340035002000420072003B00200062006F006E0075007300200030002000420072003B00200064006C006A0061002000700072006F0064006F006C007A00680065006E0069006A00610020006F00620073006C0075007A0068006900760061006E0069006A006100200070006F0070006F006C006E00690074006500200073006300680065007400200064006F002000320034002E00300038002E00310033003B00200064006500740061006C006900200073006D006F007400720069002000760020002A0031003000 1970-01-01 14:23:28,6, GSM1: Checking device for incoming SMS 1970-01-01 14:23:28,6, GSM1: Checking if modem is ready 1970-01-01 14:23:28,3, GSM1: Unexpected input: 350023003B002000310020002D002000440061006C00650065",72 1970-01-01 14:23:29,7, GSM1: -> AT 1970-01-01 14:23:29,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:29,7, GSM1: <- AT OK 1970-01-01 14:23:29,6, GSM1: Pre-initializing modem 1970-01-01 14:23:29,7, GSM1: -> ATE0+CMEE=1;+CREG=2 1970-01-01 14:23:29,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:29,7, GSM1: <- ATE0+CMEE=1;+CREG=2 OK 1970-01-01 14:23:29,6, GSM1: Selecting PDU mode 1970-01-01 14:23:30,7, GSM1: -> AT+CMGF=0 1970-01-01 14:23:30,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:30,7, GSM1: <- AT+CMGF=0 OK 1970-01-01 14:23:30,6, GSM1: Checking memory size 1970-01-01 14:23:30,7, GSM1: -> AT+CPMS? 1970-01-01 14:23:30,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:30,7, GSM1: <- AT+CPMS? +CPMS: "ME",0,100,"ME",0,100,"SM",0,30 OK 1970-01-01 14:23:30,6, GSM1: Used memory is 0 of 100 1970-01-01 14:23:30,6, GSM1: No SMS received 1970-01-01 14:23:30,6, GSM1: Running a regular_run (PRE_RUN) 1970-01-01 14:23:30,7, GSM1: Running regular_run (modem): /home/smsd/ussd PRE_RUN "" GSM1 1970-01-01 14:23:30,7, GSM1: Done: regular_run (modem), execution time 0 sec., status: 0 (0) 1970-01-01 14:23:31,7, GSM1: -> AT+CUSD=1,*100#,15 1970-01-01 14:23:31,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:32,7, GSM1: <- AT+CUSD=1,*100#,15 OK +CUSD: 0,"005500530053004400200073006500730073006900610020007A0061007600650072007300680065006E0061",72 1970-01-01 14:23:40,6, GSM1: Running a regular_run (PRE_RUN) 1970-01-01 14:23:40,7, GSM1: Running regular_run (modem): /home/smsd/ussd PRE_RUN "" GSM1 1970-01-01 14:23:40,7, GSM1: Done: regular_run (modem), execution time 0 sec., status: 0 (0) 1970-01-01 14:23:40,7, GSM1: -> AT+CUSD=1,*100#,15 1970-01-01 14:23:40,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:43,7, GSM1: <- AT+CUSD=1,*100#,15 OK +CUSD: 1,"00420061006C0061006E0073003A002000310030003200300038002E00340035002000420072003B00200062006F006E0075007300200030002000420072003B00200064006C006A0061002000700072006F0064006F006C007A00680065006E0069006A00610020006F00620073006C0075007A0068006900760061006E0069006A006100200070006F0070006F006C006E00690074006500200073006300680065007400200064006F002000320034002E00300038002E00310033003B00200064006500740061006C006900200073006D006F007400720069002000760020002A0031003000 1970-01-01 14:23:45,6, GSM1: Checking device for incoming SMS 1970-01-01 14:23:45,6, GSM1: Checking if modem is ready 1970-01-01 14:23:45,3, GSM1: Unexpected input: 350023003B002000310020002D002000440061006C00650065",72 1970-01-01 14:23:45,7, GSM1: -> AT 1970-01-01 14:23:45,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:46,7, GSM1: <- AT OK 1970-01-01 14:23:46,6, GSM1: Pre-initializing modem 1970-01-01 14:23:46,7, GSM1: -> ATE0+CMEE=1;+CREG=2 1970-01-01 14:23:46,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:46,7, GSM1: <- ATE0+CMEE=1;+CREG=2 OK 1970-01-01 14:23:46,6, GSM1: Selecting PDU mode 1970-01-01 14:23:46,7, GSM1: -> AT+CMGF=0 1970-01-01 14:23:46,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:47,7, GSM1: <- OK 1970-01-01 14:23:47,6, GSM1: Checking memory size 1970-01-01 14:23:47,7, GSM1: -> AT+CPMS? 1970-01-01 14:23:47,7, GSM1: Command is sent, waiting for the answer 1970-01-01 14:23:48,7, GSM1: <- +CPMS: "ME",0,100,"ME",0,100,"SM",0,30 OK 1970-01-01 14:23:48,6, GSM1: Used memory is 0 of 100 1970-01-01 14:23:48,6, GSM1: No SMS received 1970-01-01 14:23:50,6, GSM1: Running a regular_run (PRE_RUN) 1970-01-01 14:23:50,7, GSM1: Running regular_run (modem): /home/smsd/ussd PRE_RUN "" GSM1 1970-01-01 14:23:50,7, GSM1: Done: regular_run (modem), execution time 0 sec., status: 0 (0) complete text 00420061006C0061006E0073003A002000310030003200300038002E00340035002000420072003B00200062006F006E0075007300200030002000420072003B00200064006C006A0061002000700072006F0064006F006C007A00680065006E0069006A00610020006F00620073006C0075007A0068006900760061006E0069006A006100200070006F0070006F006C006E00690074006500200073006300680065007400200064006F002000320034002E00300038002E00310033003B00200064006500740061006C006900200073006D006F007400720069002000760020002A0031003000350023003B002000310020002D002000440061006C00650065
z-wer: Operating system name and version: OpenWrt Tp-Link Version of smsd: 3.1.15 Smsd installed from: Name and model of a modem / phone: ZTE mf190 Interface: USB Hi all. I apologize for bad English, modem ZTE MF 190. Logs from three different SIM cards MTS, Velcom, Life. Belarus. Settings are not changed. MTS 1970-01-01 05:10:26,7, GSM1: Command is sent, waiting for the answer 1970-01-01 05:10:28,7, GSM1: <- AT+CMGD=0 OK 1970-01-01 05:10:28,7, GSM1: -> AT+CUSD=1,"*100#",15 1970-01-01 05:10:28,7, GSM1: Command is sent, waiting for the answer 1970-01-01 05:10:31,7, GSM1: <- AT+CUSD=1,"*100#",15 OK +CUSD: 0,"00420061006C0061006E0073003D00320034003200380072000A00520045004B004C0041004D0041003A00500052004F005600450052002000530056004F004900550020004C00550042004F00560021002A00370038003900230020003700320072002F007300680061006700200020005A0041004F002000530050004E004400690067006900740061006C00200055004E0050003100390030003600390030003500330035",72 1970-01-01 05:10:31,6, GSM1: Checking device for incoming SMS 1970-01-01 05:10:31,6, GSM1: Checking memory size 1970-01-01 05:10:31,7, GSM1: -> AT+CPMS? 1970-01-01 05:10:31,7, GSM1: Command is sent, waiting for the answer 1970-01-01 05:10:31,7, GSM1: <- AT+CPMS? +CPMS: "SM",0,30,"SM",0,30,"SM",0,30 OK Velkom 1970-01-01 05:13:17,7, GSM1: Command is sent, waiting for the answer 1970-01-01 05:13:19,7, GSM1: <- AT+CUSD=1,"*100#",15 OK +CUSD: 0,"0056006100730068002000620061006C0061006E007300200073006F0073007400610076006C0079006100650074002000310037003000380020007200750062006C0065006A002E",72 1970-01-01 05:13:29,6, GSM1: Checking device for incoming SMS 1970-01-01 05:13:29,6, GSM1: Checking if modem is ready 1970-01-01 05:13:29,7, GSM1: -> AT 1970-01-01 05:13:29,7, GSM1: Command is sent, waiting for the answer 1970-01-01 05:13:29,7, GSM1: <- AT OK Life ???? :'( 1970-01-01 05:10:37,7, GSM1: -> AT+CUSD=1,"*100#",15 1970-01-01 05:10:37,7, GSM1: Command is sent, waiting for the answer 1970-01-01 05:10:39,7, GSM1: <- AT+CUSD=1,"*100#",15 OK +CUSD: 1,"00420061006C0061006E0073003A002000310030003200300038002E00340035002000420072003B00200062006F006E0075007300200030002000420072003B00200064006C006A0061002000700072006F0064006F006C007A00680065006E0069006A00610020006F00620073006C0075007A0068006900760061006E0069006A006100200070006F0070006F006C006E00690074006500200073006300680065007400200064006F002000320034002E00300038002E00310033003B00200064006500740061006C006900200073006D006F007400720069002000760020002A00310030 1970-01-01 05:10:50,6, GSM1: Checking device for incoming SMS 1970-01-01 05:10:50,6, GSM1: Checking if modem is ready 1970-01-01 05:10:50,3, GSM1: Unexpected input: 00350023003B002000310020002D002000440061006C00650065",72 1970-01-01 05:10:50,7, GSM1: -> AT 1970-01-01 05:10:50,7, GSM1: Command is sent, waiting for the answer 1970-01-01 05:10:50,7, GSM1: <- AT OK 1970-01-01 05:10:50,6, GSM1: Pre-initializing modem 1970-01-01 05:10:51,7, GSM1: -> ATE0+CMEE=1;+CREG=2 What's the problem I can not understand the operator "Life" ?
z-wer: I do not speak English, but your information helped me a lot. spasibo unterwulf i warm nu i avtoru programmy, Udachy... ;)

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.