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 10:57
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
peteruk2009: The return value of your script is not zero and this means an error. If you have exit 1 in the script, change it to exit 0. If there is not exit used, insert exit 0 to the end of script. Yeap, thanks that was missing the exit 0, that fixed it. /usr/local/bin/smsd_eventhandler RECEIVED /home/...whatever.../GSM1.icf0T7 Thanks for this tip too, that was easy debugging, actually nothing was wrong with the script the problem was in the database. Why FAILED and SENT are in the same condition? How is the maxing character you can send in a text? Have you got a all possible sample of the text message fileds you can encounter in sending and receiving? In the smstest.php there is some text conversion ISO UNICO No conversion, why do I need all this conversion? I did some test all of them work in my mobile phone network, from one mobile to another one. Just no conversion take longer this are the result ISO 14 sec, UNICO 15 sec, No conversion 16 sec At last but not ask least there is a option in the smstest.php that point the the variable flash? could you please elaborate for me why do I need this adjustment, what is actually doing? Thank you in advance for all your help!
peteruk2009: Yes, you need to set up an eventhandler: In the global part of smsd.conf file, define: eventhandler = /usr/local/bin/smsd_eventhandler Hi, I did include the folder and the suggested code, but its not working fully, I get in the smsd.conf Done: eventhandler, excecution time 0 sec., status:256 ALERT problem with eventhandler, result 1 Do you know what does it mean? additionally I have create a sh file to test the shell script and in the script folder in the file smsevent you said # This is an example how to use an eventhandler with smsd. # $1 is the type of the event wich can be SENT, RECEIVED, FAILED or REPORT. # $2 is the filename of the sms. # $3 is the message id. Only used for SENT messages with status report. I am trying to test and learn bit about the shell programming in this sentences FROM=`formail -zx From: < $2 | sed 's/"//g'` TO=`formail -zx To: < $2` where I belive you store the values from and to in the received test message, but the shell is giving this error $2: ambiguous redirect as a matter of fast it can not open the file I did before $2 =/home/.../GSM1.icf0T7 I am trying to test the script in cold so I can learn a bit more about shell programming I know I am trying to cut conner writing to you, but time is pressure this days :) There is 2 question in all this, one the error in the smsd.conf file, and two, the way to force $2 (file point name) in order to test the script without the need to keep sending me message, (is this possible). Thanks
peteruk2009: Hi, I would like to make my sms server to work with incoming message, the objective the sms server would be able to receive a text, save it on a database an then re forward it to another phone. At the moment the messages are going to the incoming folder with a weird denomination and extention like GSM1.dhHJ (I can read them in the Text editor though) Having not shell script active in the shell, the message are getting into the incoming folder, as guess as we talked before when the daemon is up it keep checking for income message. I know how to work with the database part, but I am not sure about handling the incoming message, how can I open from the incoming folder? I guess this still gone in scrit shell programming, right? On your files there is something like #Extract data from the SMS file FROM=`formail -zx From: < $2 | sed 's/"//g'` TO=`formail -zx To: < $2` #Remove plus sign, spaces, minus and short number prefix TO=`echo "$TO" | sed 's/ //g' | sed 's/+//g' | sed 's/s//g' | sed 's/-//g'` SUBJECT=`formail -zx Subject: < $2` SENT=`formail -zx Sent: < $2` #Text is not used but could be used #TEXT=`formail -I "" <$2` May I in the right track??? you said in there # Please read the documentation before using this script. Where? Please give me some guide lines and point me to example code if you already have, Thank you in advance, King Regards
peteruk2009: You said" The following does not work with IE, but with another clients like FF your PHP code could use print() and flush() functions to send a part of page. For example "Processing, please be patient...." with dots as a progress bar is possible and user friendly. With IE some AJAX code will be needed for this." Have you got some examples??? Thanks
peteruk2009: Yes that right, the sms server is running DSL link and no fix IP. At the moment the sms server keep looking on the main server database for messages it works fast anyway I get the message sent on the sms services terminal in 3 seconds but I see this approach inefficient it check across the internet every 2 sec aprox. its loading the internet link without any need you could have not message send in whole day and it was keep checking the data every 2 sec. I will try later the customer send it to the sms server directly and see how it works. obviously this is php code, so it means its running on the main server, but It could mean customer experience delay because the response in the customer browser will not show up until the main server do the save data on the sms database on the sms server. Hi, I have looked at the smstest.php I think I see what you meant, you pass the argument to and message to the sms server and it create the out going file and put it on the outgoing folder, and because the sms server keep checking that folder as soon as message file is in there it will send it, right?
peteruk2009: Hi everybody At the moment because I could not install my sms server on the same network of my main server. I am accessing to the data base remotely and did the script to loop it. but this design I believe I'm loading the network and the server without any needs. the ideal design I can think at the moment is the following leave the main server as its (logistic reason to keep a copy of the database in there and fast bandwidth, giving as a result a good customer experience) it takes about 3 sec to get the data into the database. I could add a routing to add a second copy of the data into the sms server database, reliacing the sms server to checking every x secong into the main server database in across another network. The only problem I see on this approach is that because the sms server link is not that fast I could introduce delay to the customer experience which can result on customer wait What do you think? Is there another topology I am missing out? (I was thinking the main server send a message to the sms server when a data is introduce into the database, but I don't have a clue how could it be implemented) Thank you for your help!
peteruk2009: Hi, I have done the test across networks and it is taking nearly the same 12 to 16 sec and in the same network its 10 seconds Its not bad really, just wondering that checking every sec may reduce performance of the server? What do you think? it take about 3 sec from the webpage to the the send command on my server but it takes about 22-30 sec to get on the final destination. I wish it would get faster.
peteruk2009: Thanks for your reply! I'm just adding to this that this is the website that explain where to add it http://smstools3.kekekasvi.com/index.php?p=configure Thanks
peteruk2009: Hi, I would like to add more information to the finding out detail times and which cheap phone is the best for a text message gateway. I did a test now a message from my phone to my phone same network it took 16 second seen I pressed the enter on my PC And 5 seconds if I do it from the phone Thanks
peteruk2009: please look also to, I attached my other topic to this by this link http://smstools3.kekekasvi.com/topic.php?id=85
peteruk2009: I have create this New topic because I would like to know which from the cheaper phone is the faster in sending message. now the question is why its taking too long the test is the following: sending from 02 to 3 network seen I've pressed enter on the PC to the message arrive in the other phone is 20 to 22 seconds but when I type the message on the phone itself it takes 6 seconds I know the must be a delay on the transmitting time serial conection So the question is the following: Does it make much different have a USB connection to the phone? From the cheap old phone which one is the faster? I have looked at the Sony-Ericsson T300 (init string AT+CPMS="ME",baudrate=115200), as you see it said 115200 but the only cable I can find for this online is USB does it make any different, is the rate changed if it is a USB connection? Thanks, please look also to, I attached my other topic to this by this link http://smstools3.kekekasvi.com/topic.php?post=298#post298
peteruk2009: Hi, Sorry about all this :) its working now I did notice that when it start keep sending whatever is in checked folder, so I deleted all and start fresh, and you must type + and country code my case 44 and it works. I also notice that in the log file the sign + does not appear ever though it was typed, DO you know Why? now the question is why its taking too long the test is the following: sending from 02 to 3 network seen I've pressed enter on the PC to the message arrive in the other phone is 20 to 22 seconds but when I type the message on the phone itself it takes 6 seconds I know the must be a delay on the transmitting time serial conection So the question is the following: Does it make much different have a USB connection to the phone? From the cheap old phone which one is the faster? I have looked at the Sony-Ericsson T300 (init string AT+CPMS="ME",baudrate=115200), as you see it said 115200 but the only cable I can find for this online is USB does it make any different, is the rate changed if it is a USB connection? Thanks,
peteruk2009: I have forgotten to say I am trying it in the O2 network at the moment, Thanks
peteruk2009: I did a search and it comes like this 38 - "Network out of order" This cause indicates that the network is not functioning correctly and that the condition is likely to last a relatively long period of time; e.g., immediately reattempting the short message transfer is not likely to be successful. But it works fine if I use the phone itself, I can sent text to my other phone no problem and they arrive really quickly. Do you know what is going on? Thanks,
peteruk2009: Ok keke I have to create the failed folder on the sms directory so the smsg.conf file look like this: ( as you see it was already loglevel = 7, I added the failed line) # Example smsd.conf. Read the manual for a description devices = GSM1 logfile = /var/log/smsd.log loglevel = 7 failed = /var/spool/sms/failed [GSM1] device = /dev/ttyS0 incoming = yes #pin = 1111 now I tried to send a message after reset the sms3 and I see the file going into the failed folder this is how the log looks like (please note I am in the UK I've just ussed as an example in the previous post, I am deleting some digits from my original phone, just for security reasons) 2009-07-09 21:24:41,6, GSM1: Checking if modem is ready 2009-07-09 21:24:41,7, GSM1: -> AT 2009-07-09 21:24:41,7, GSM1: Command is sent, waiting for the answer 2009-07-09 21:24:42,7, GSM1: <- OK 2009-07-09 21:24:42,6, GSM1: Pre-initializing modem 2009-07-09 21:24:42,7, GSM1: -> ATE0+CMEE=1 2009-07-09 21:24:42,7, GSM1: Command is sent, waiting for the answer 2009-07-09 21:24:42,7, GSM1: <- OK 2009-07-09 21:24:42,7, GSM1: -> AT+CSQ 2009-07-09 21:24:42,7, GSM1: Command is sent, waiting for the answer 2009-07-09 21:24:43,7, GSM1: <- +CSQ: 24,99 OK 2009-07-09 21:24:43,6, GSM1: Checking if Modem is registered to the network 2009-07-09 21:24:43,7, GSM1: -> AT+CREG? 2009-07-09 21:24:43,7, GSM1: Command is sent, waiting for the answer 2009-07-09 21:24:43,7, GSM1: <- +CREG: 0,1 OK 2009-07-09 21:24:43,6, GSM1: Modem is registered to the network 2009-07-09 21:24:43,6, GSM1: Selecting PDU mode 2009-07-09 21:24:43,7, GSM1: -> AT+CMGF=0 2009-07-09 21:24:43,7, GSM1: Command is sent, waiting for the answer 2009-07-09 21:24:44,7, GSM1: <- OK 2009-07-09 21:24:44,7, GSM1: -> AT+CMGS=30 2009-07-09 21:24:44,7, GSM1: Command is sent, waiting for the answer 2009-07-09 21:24:44,7, GSM1: <- > 2009-07-09 21:24:44,7, GSM1: -> PDU REMOVED 2009-07-09 21:24:45,7, GSM1: Command is sent, waiting for the answer 2009-07-09 21:24:48,7, GSM1: <- +CMS ERROR: 38 (Network out of order) 2009-07-09 21:24:48,3, GSM1: The modem answer was not OK: +CMS ERROR: 38 (Network out of order) 2009-07-09 21:24:48,4, GSM1: Sending SMS to 077xxxxxxxx failed 2009-07-09 21:24:48,6, GSM1: Moved file /var/spool/sms/checked/send_vDbKGk to /var/spool/sms/failed/send_vDbKGk 2009-07-09 21:24:48,2, GSM1: Fatal error: sending failed 3 times. Blocking 3600 sec.
peteruk2009: I have also installed the smstool3 on a linux machine, but when I type sendsms 491721234567 'Hello, how are you' I can see the file created send_"code" on the output folder and disappear after a few sec but nothing happen, no text coming, no text on the phone itself? Could yo up please help? Regards
peteruk2009: Hi I am trying to send text message using a Nokia 6210 but its giving me error The error is the follow +CMS EROOR:69 I type at+cmgf=1 reply OK them I type at+cmgs="mynumber" I have tried "+mynumber" and "+country code mynumber" >hello (this is text i supposed) press Ctrl+z and it reply +CMS EROOR:69 Do you know what's going on and what I am doing wrong? Regards

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.