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. Sat Apr 20, 2024 02:13
SMSTools3 Community » Help and support Bottom

[answered] how can I load credit to my sim card that I put in my GSM modem?

  This topic is locked

Page:  1

Author Post
Member
Registered:
Apr 2011
Location: Iran
Operating system name and version: ubuntu 10.1
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: GSM Modem
Interface: Serial


how can I load credit to my sim card that I put in my GSM modem?

Member
Registered:
Apr 2011
Location: Iran
Topic owner
For example in mobile phone I send: *140*123456789# To operator


« Last edit by alireza976 on Thu Apr 07, 2011 05:38, 158 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Use the regular_run_cmdfile feature. See also description of other regular_run* settings.

Create this directory, and make it writable for smsd:
/var/spool/sms/regular_run

In the modem section of smsd.conf, define:
regular_run_cmdfile = /var/spool/sms/regular_run/GSM1.cmdfile
regular_run_statfile = /var/spool/sms/regular_run/GSM1.statfile

This might also be useful:
regular_run_logfile = /var/log/smsd_regular_run.log

Default interval for handling this file is 300 seconds. It can be changed with a setting:
regular_run_interval = 60

After changing the configuration. restart smsd and check that it's started without any error messages.

When you need to load the credit, store proper USSD command to the GSM1.cmdfile. Write something like this to the first line:
AT+CUSD=1,"*140*123456789#"

Smsd will send this command to the modem, and you can see the answer in the GSM1.statfile. After the cmdfile is handled, it is removed by smsd, so it does not try to load more credit with the same code.

Member
Registered:
Apr 2011
Location: Iran
Topic owner
Thank you ;)

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.