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 15:22
SMSTools3 Community » Feature requests Bottom

Sending USSD codes "by hand"

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jul 2011
Location: Warsaw, Poland
Hello

Please think about the possibility of creating an message with ussd codes, to send it from spool directory.
For example:



or


In this example smsd would send: AT+CUSD=1,"*109#",15

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Have you checked if you can use regular_run_cmdfile and regular_run_logfile for this?

Member
Registered:
Jul 2011
Location: Warsaw, Poland
Topic owner
Manually, not regular run and others.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Content of regular_run_cmdfile is created manually, when required, and the answer can be seen from the log. When users load more balance to prepaid SIM, this is the way how it can be done.

I think that handling of SMS files goes too complicated if ussd commands are allowed. Also, usually the answer should be seen, and just creating of outgoing file is not enough. Perhaps answers for ussd commands should be stored as incoming message files, and this requires more changes to the code.

You can use a file as shown with checkhandler which does the following:

- Detect "To: USSD".
- Get Suffix and propably Prefix.
- Create content of regular_run_cmdfile with the proper CUSD command.
- Delete outgoing file and return value 2 to smsd (= spooled by checkhandler).

Member
Registered:
Aug 2011
Location: sleman, Indonesia
Please help Me..i try keke post but i got problem
What the error??

Quote
2011-08-03 14:57:05,3, GSM1: ! Error while parsing the answer (balance): 2011-08-03 14:57:04,5, GSM1: CMD: AT+CUSD=1,"*388#": OK +CUSD: 4
2011-08-03 14:57:05,3, GSM1: ! balancing : -1
2011-08-03 14:57:05,3, GSM1: ! Error while parsing the answer (expiration): 2011-08-03 14:57:04,5, GSM1: CMD: AT+CUSD=1,"*388#": OK +CUSD: 4

The GSM1.Balance get
Quote
Last_query: 2011-08-03 14:57:05
Messages: 0
Balance: -1
Expiration: -1

2011-08-03 14:57:04,5, GSM1: CMD: AT+CUSD=1,"*388#": OK +CUSD: 4


Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
archeyla64bit wrote
The GSM1.Balance get
Quote
Last_query: 2011-08-03 14:57:05
Messages: 0
Balance: -1
Expiration: -1

2011-08-03 14:57:04,5, GSM1: CMD: AT+CUSD=1,"*388#": OK +CUSD: 4

First check that *388# works properly with your handset.

Try to change the ussd command in the script:

ussd_command="AT+CUSD=1,\"*388#\",15"

If that does not make any difference, try with ,0 or ,1 at the end.

What is your modem, manufacturer and model?

Member
Registered:
Aug 2011
Location: sleman, Indonesia
thanks you keke my problem is clear
now i get the balance and expire date
Quote
Last_query: 2011-08-09 14:52:17
Messages: 0
Balance: 7892
Expiration: 03-09-2011


Member
Registered:
Aug 2011
Location: sleman, Indonesia
My modem manufacture is
Quote
Itegno W3800

:) :) :) :) :)

Login and Post Reply

Page:  1

SMSTools3 Community » Feature requests Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.