keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

USSD Balance credits

12 years 2 months ago #7777 by f1700
Good afternoon, I need to check the balance in the carrier with "USSD". Has anyone implemented this in G400P?
12 years 2 months ago #7779 by Joe.Yung
Hello,
Type the below commands step by step please:
A. gsm send at 1 “at+cscs=\”gsm\"" (where 1 is the span number)

B. gsm send at 1 at+cusd=1

C. gsm send at 1 atdt*142# (*142# is might different from different service providers or countries)

After sending the command C. You will get the account information(including balance) on the console.

12 years 2 months ago #7784 by Easy
It's not always 100% correct:
S0*CLI> gsm send at 1 at+cscs=\"gsm\""

OK

S0*CLI> gsm send at 1 at+cusd=1

OK

S0*CLI> gsm send at 1 atdt*142#

+CSQN: 16, 6

S0*CLI> gsm debug span 1
Enabled debugging on span 1
S0*CLI> gsm send at 1 atdt*142#
                1:<<< 0 atdt*142# -- +CSQN: 11, 5 , 12

+CSQN: 11, 5

                1:<<< 0 atdt*142# -- +CUSD: 2,"Your account is X.XX.....",15 , 167
                1:<<< 1 atdt*142# -- OK , 2
12 years 2 months ago #7785 by Easy
Generally speaking it's a bug in chan-extra. It always passes the first received line from modem as an answer. To fix it - simply check return lines. They have codes in them, as +CUSD: in this case. So there is no mandatory requirement for the modem to give an actual reply in the first line.
12 years 2 months ago #7787 by f1700
Changed the span to 2 which is my case, but it gave error in the first row!

A:
voip*CLI> gsm send at 2 at+cscs=\"gsm\""
<<< 0 at+cscs="gsm" -- +CME ERROR: +CSCS type not found , 32

Thank you very much.
12 years 2 months ago #7788 by f1700
the command without the quotes generates the following error:

voip*CLI> gsm send at 2 at+cscs=gsm
<<< 0 at+cscs=gsm -- ERROR , 5
Time to create page: 0.039 seconds
Powered by Kunena Forum