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 #7790 by f1700
The problem of command was the "space". I managed, but the result is in HEX?

voip*CLI> gsm send at 2 AT + CSCS="GSM"
<<< 0 AT -- OK , 2

OK

voip*CLI> gsm send at 2 AT + CUSD = 1
<<< 0 AT -- OK , 2

OK

gsm send at 2 ATDT*544#
<<< 0 ATDT*544# -- +CSQN: 15,0 , 11
<<< 0 ATDT*544# -- +CUSD: 0,"00530061006C0064006F00200065006D0020006300720065006400690074006F007300200064006500200052002400200030002E00300034002000760061006C00690064006F00730020006100740065002000300032002F00300032002F0032003000310032002E00200043006F006E00730075006C0074006500200073006500750073002000730061006C0064006F0073002000700072006F006D006F00630069006F006E0061006900730020006C006900670061006E0064006F002000670072006100740075006900740061006D0065006E007400650020002A0035003400360023",15 , 470
<<< 1 ATDT*544# -- OK , 2

+CUSD: 0,"00530061006C0064006F00200065006D0020006300720065006400690074006F007300200064006500200052002400200030002E00300034002000760061006C00690064006F00730020006100740065002000300032002F00300032002F0032003000310032002E00200043006F006E00730075006C0074006500200073006500750073002000730061006C0064006F0073002000700072006F006D006F00630069006F006E0061006900730020006C006900670061006E0064006F002000670072006100740075006900740061006D0065006E007400650020002A0035003400360023",15

OK
12 years 2 months ago #7794 by Joe.Yung
Hi f1700,

Generally speaking, it would be like this:
1:<<< 0 atdt*142# -- +CUSD: 2,"Your account is X.XX.....",15 , 167。
X.XX is your detail balance ..Please be sure "gsm send at 2 ATDT*544#" is using for checking balance. and make sure it is supported by the service provider.

12 years 2 months ago #7798 by f1700
Thanks Joe, solved! Now would be a way to send the result to a text file?
12 years 2 months ago #7799 by Joe.Yung
Hi,
Yes, firstly you have better switch the debug verbose to a higher level in /etc/asterisk/logger.conf near line 60 . And then enable the debug mode on all spans by 'gsm debug on span X'. The next, type 'gsm
set debug file > /var/tmp/debug.txt ' to save all the debug info to a specific file.

Finally, you are able to catch the balance message from /var/tmp/debug.txt by a shell script or regular expression.

8 years 5 months ago #10704 by benita
Hi,

I follow your instructions step by step, when i type the last command i have this:
osdial-8ead51bd*CLI> gsm send at 1 atdt#123#
[2015-11-23 12:27:15]           1:<<< 0 atdt#123# -- +CSQN: 11, 0 , 12
[2015-11-23 12:27:15]
[2015-11-23 12:27:15] +CSQN: 11, 0
[2015-11-23 12:27:15]           1:<<< 0 atdt#123# -- +CUSD: 2,"0054006500630068006E006900630061006C0020004500720072006F00720021",15 , 78
[2015-11-23 12:27:19]           1:<<< 0 atdt#123# -- +CSQN: 14, 0 , 12

I dont know whate this line means 1:<<< 0 atdt#123# -- +CUSD: 2,"0054006500630068006E006900630061006C0020004500720072006F00720021",15 , 78

can you help me please
Time to create page: 0.040 seconds
Powered by Kunena Forum