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. Tue Dec 12, 2017 04:14
SMSTools3 Community » Help and support Bottom

[answered] How to send USSD code with smstools3

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Aug 2017
Location: Iran, Iran
Operating system: Ubuntu 16.04
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem: GSM Modem- D-Link DWM-157
Interface: USB /dev/ttyUSB1

Hi. I want to know how can I send USSD code with smstools3. I tested sending USSD code via a separate code written in python, but it seems it is not working properly when smstools3 is running!! I think the commands get conflict with smstools3. Due to this issue, I wonder to know is there any way to send USSD code for retrieving the balance and recharging the SIM CARD with smstools3?
Any help is appreciated.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
For retrieving the balance see this topic for example:
Sample config and script for regular_run and balance of prepaid SIM using USSD

For recharging you can put suitable USSD command to the regular_run_cmdfile and smsd will send it to the modem.

See also other regular_run settings. For example you can create a python script which does the job. Two programs cannot use the same modem at the same time, but when regular_run is executed, smsd will wait and the modem is closed while the script is running.

Member
Registered:
Aug 2017
Location: Iran, Iran
Topic owner
Thank you. The first link you provided says it is working on version 3.1.7 or later. I have 3.1.21. Does it work properly on my version too?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Yes, it should work properly.

Member
Registered:
Aug 2017
Location: Iran, Iran
Topic owner
I tested it. It is working properly. Thank you.

Member
Registered:
Aug 2017
Location: Iran, Iran
Topic owner
Excuse me to reopening this post. I defined regular_run and regular_run_cmdfile as you said. I was getting the right result after executing the USSD codes in regular_run_cmdfile but now I see the following error in the logs:



What did happen? I did not change anything but I get error!!!

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.