Author |
Post |
|
#1 Thu Jul 14, 2011 09:21, 166 months ago.
|
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
|
|
#2 Sun Jul 17, 2011 12:24, 166 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Have you checked if you can use regular_run_cmdfile and regular_run_logfile for this?
|
|
#3 Sun Jul 17, 2011 17:00, 166 months ago.
|
Member
Registered: Jul 2011
Location: Warsaw, Poland
Topic owner
|
Manually, not regular run and others.
|
|
#4 Mon Jul 18, 2011 11:18, 166 months ago.
|
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).
|
|
#5 Wed Aug 03, 2011 08:09, 165 months ago.
|
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
|
|
#6 Wed Aug 03, 2011 10:55, 165 months ago.
|
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?
|
|
#7 Thu Aug 11, 2011 01:55, 165 months ago.
|
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
|
|
#8 Thu Aug 11, 2011 04:20, 165 months ago.
|
Member
Registered: Aug 2011
Location: sleman, Indonesia
|
|