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 Oct 12, 2024 09:26
SMSTools3 Community » Help and support Bottom

Receiving and select sms from exact phone number

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Aug 2019
Location: Таганрог, Russian Federation
gentoo:
3.1.21-r1:
portage: sources / package repository / from elsewhere...
don't have yet:
USB: serial / USB / some adapter...

Hello. I'm a novice here in these fields, so excuse me if I ask any silly questions. I need to receive sms, select sms from definite phone number, parse it. And dependently of context of the sms resend it to one of phone numbers from list. Could you please tell me a direction to dig. May be there is a similar topic.

Member
Registered:
Aug 2019
Location: Таганрог, Russian Federation
Topic owner
I found how to do all I asked before. Even more I created an eventhandler that is doin what I need. But aother question we already have an eventhandler which is sprocessing incoming smses and doung different job. Can I set two eventhandlers in a smsd.conf.

Member
Registered:
Aug 2019
Location: Таганрог, Russian Federation
Topic owner
There is an eventhandler in smsd.conf. I want to set another one.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
You can use the single eventhandler as a "main" eventhandler, and call other eventhandlers from it.

Member
Registered:
Aug 2019
Location: Таганрог, Russian Federation
Topic owner
Thank you very much for the answer. Sorry for my questions. Now I realised how silly they are. I got it. I call another script from the main eventhandler as you adviced.
But now I faced one more problem. I'm receiving smses coded in UCS2 and the body of sms is unreadable. When I try to use "iconv -f UCS -t UTF-8" I get other unreadable text something looks like Chinese eroglphs. What I'm doing wrong?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
If decoding messages in the eventhandler, use the iconv with -f UNICODEBIG.

Smstools3 can also do this internally. Try with these global settings:

decode_unicode_text = yes
incoming_utf8 = yes

These settings default to no because of historical reasons and backward compatibility.

Member
Registered:
Aug 2019
Location: Таганрог, Russian Federation
Topic owner
Thank You for the reply. It is very kind of you. As I already said. We have event handler in our system. So I creted my oun one to process smses. And the script in bash is getting sms status and body via arguments from main event handler. But during the pass of the arguments somethings goes wrong. I get a part of body coded in UCS2 with extracted leading null bytes. I checked it in hex editor. What I dont know why. Encoding in main event handler goes fine. So I decided to go around an obstacle and added third argument encoded text of sms. So I'm done for now. I can send you created script if nessary and it can help sombody else. Sincerely Vadim.

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.