Author |
Post |
|
#1 Wed May 05, 2010 02:53, 177 months ago.
|
Member
Registered: Mar 2010
Location: Yogyakarta, Indonesia
|
can we use smstools3 to handle on demand ussd command....?
so i will only get ussd answer when i need it, not in regular run....
if yes, how?
thanks
|
|
#2 Wed May 05, 2010 09:10, 177 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Use the regular run... For example, define: regular_run_post_run = /var/spool/sms/rr.sh regular_run_cmdfile = /var/spool/sms/GSM1_regular_run_cmdfile regular_run_statfile = /var/spool/sms/GSM1_regular_run_statfile regular_run_logfile = /var/log/GSM1_regular_run.log regular_run_interval = 30The regular_run_cmdfile is checked every 30 seconds. If this file does not exist, nothing is done. When you need the USSD information, put your command to the regular_run_cmdfile. Smsd will send the command to the modem, and the answer is written to the regular_run_logfile and to the regular_run_statfile. The script regular_run_post_run is executed after the answer is received. That script can capture the answer and do whatever is required.
|
|
#3 Sun May 09, 2010 12:53, 177 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
If you are using USSD for getting the balance of a prepaid SIM, check this newly created sample: Sample config and script for regular_run and balance of prepaid SIM using USSD. Or are you using USSD for other purposes?
|
|
#4 Mon May 10, 2010 03:23, 177 months ago.
|
Member
Registered: Mar 2010
Location: Yogyakarta, Indonesia
Topic owner
|
that's right, i'm using ussd command for checking balance.... thank you for your big help keke....
but i think later on maybe i will use ussd for another purpose, but for now i stick to checking balance purpose... hope that i'm able to use your sample script
regards
|