SMS Server Tools 3
This site is hosted by Kekekasvi.com
 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. Please login or register. Thu Mar 28, 2024 11:11
SMSTools3 Community » Help and support Bottom

Possible to change format of sms file?

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Dec 2020
Location: Sweden
Operating system name and version: CentOS/Redhat 7
Version of smsd: Newest
Smsd installed from: Epel repo
Name and model of a modem / phone
: -
Interface: USB

I'm going to remove an old sms server and that has this format of the files containing the text message:

+44xxxxx
texttexttexttext
texttexttexttext

I would like to use smstools for this but is it possible to use this format instead of:

To: 44xxxxx

texttexttexttext
texttexttexttext


I know that I could set a script that edits the file before it is sent to the que but if it would be possible to change the format sms3 reads this would be better.


Thanks

//P

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
A script is required, but you can put it inside smstools using the global setting checkhandler = /path/to/your/script.

The checkhandler is executed every time when a new message is detected in the spooler. It can modify the message file (which is the first and only argument for the script). In your case it can detect the old format and change it to sms3 format, and you do not have to change any previous systems.

The return value of checkhandler in your case must always be zero.

Member
Registered:
Dec 2020
Location: Sweden
Topic owner
keke wrote
A script is required, but you can put it inside smstools using the global setting checkhandler = /path/to/your/script.

The checkhandler is executed every time when a new message is detected in the spooler. It can modify the message file (which is the first and only argument for the script). In your case it can detect the old format and change it to sms3 format, and you do not have to change any previous systems.

The return value of checkhandler in your case must always be zero.

Cool! didnt know about that! many thanks! think that could work for me.

Have a nice day and Merry X-mas!

//P

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.