|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Sun Jun 01, 2025 14:14 |
Page: 1
Keywords: Mode: All keywords (AND) |
Mon Nov 08, 2010 03:09
|
johnaa: Hi, keke
Thanks for your advise, I got message_id now by using other phone.
|
Sun Nov 07, 2010 13:26
|
johnaa: Hi,
is this log ok ?
2010-11-07 18:31:20,6, modem1: Pre-initializing modem
2010-11-07 18:31:20,7, modem1: -> ATE0+CMEE=1;+CREG=2
2010-11-07 18:31:20,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:20,7, modem1: <- OK
2010-11-07 18:31:20,6, modem1: Initializing modem
2010-11-07 18:31:21,7, modem1: -> AT+CPMS="ME","ME","ME"
2010-11-07 18:31:21,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:21,7, modem1: <- +CPMS: 0,200,0,200,0,200 OK
2010-11-07 18:31:21,7, modem1: -> AT+CNMI=2,3,2,1,0
2010-11-07 18:31:21,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:22,7, modem1: <- OK
2010-11-07 18:31:22,7, modem1: -> AT+CSQ
2010-11-07 18:31:22,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:22,7, modem1: <- +CSQ: 20,99 OK
2010-11-07 18:31:22,6, modem1: Signal Strength Indicator: (20,99) -73 dBm (Excellent), Bit Error Rate: not known or not detectable
2010-11-07 18:31:22,6, modem1: Checking if Modem is registered to the network
2010-11-07 18:31:23,7, modem1: -> AT+CREG?
2010-11-07 18:31:23,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:23,7, modem1: <- +CREG: 2,1,"3F00","000037A4" OK
2010-11-07 18:31:23,6, modem1: Modem is registered to the network
2010-11-07 18:31:23,6, modem1: Selecting PDU mode
2010-11-07 18:31:23,7, modem1: -> AT+CMGF=0
2010-11-07 18:31:23,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:24,7, modem1: <- OK
2010-11-07 18:31:24,6, modem1: Checking memory size
2010-11-07 18:31:24,7, modem1: -> AT+CPMS?
2010-11-07 18:31:24,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:24,7, modem1: <- +CPMS: "ME",0,200,"ME",0,200,"ME",0,200 OK
2010-11-07 18:31:24,6, modem1: Used memory is 0 of 200
2010-11-07 18:31:24,6, modem1: No SMS received
2010-11-07 18:31:24,6, modem1: Sending SMS from +6583766055 to 6597555334
2010-11-07 18:31:24,6, modem1: Checking if modem is ready
2010-11-07 18:31:25,7, modem1: -> AT
2010-11-07 18:31:25,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:25,7, modem1: <- OK
2010-11-07 18:31:25,6, modem1: Pre-initializing modem
2010-11-07 18:31:25,7, modem1: -> ATE0+CMEE=1;+CREG=2
2010-11-07 18:31:25,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:26,7, modem1: <- OK
2010-11-07 18:31:26,6, modem1: Initializing modem
2010-11-07 18:31:26,7, modem1: -> AT+CPMS="ME","ME","ME"
2010-11-07 18:31:26,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:33,7, modem1: <- +CPMS: 0,200,0,200,0,200 OK
2010-11-07 18:31:34,7, modem1: -> AT+CNMI=2,3,2,1,0
2010-11-07 18:31:34,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:34,7, modem1: <- OK
2010-11-07 18:31:34,7, modem1: -> AT+CSQ
2010-11-07 18:31:34,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:35,7, modem1: <- +CSQ: 19,99 OK
2010-11-07 18:31:35,6, modem1: Signal Strength Indicator: (19,99) -75 dBm (Good), Bit Error Rate: not known or not detectable
2010-11-07 18:31:35,6, modem1: Checking if Modem is registered to the network
2010-11-07 18:31:35,7, modem1: -> AT+CREG?
2010-11-07 18:31:35,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:35,7, modem1: <- +CREG: 2,1,"3F00","000037A4" OK
2010-11-07 18:31:35,6, modem1: Modem is registered to the network
2010-11-07 18:31:35,6, modem1: Selecting PDU mode
2010-11-07 18:31:36,7, modem1: -> AT+CMGF=0
2010-11-07 18:31:36,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:36,7, modem1: <- OK
2010-11-07 18:31:36,7, modem1: -> AT+CMGS=36
2010-11-07 18:31:36,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:37,7, modem1: <- >
2010-11-07 18:31:37,7, modem1: -> 0031000A9156795535430000FF1AC834A80EA2A3CBF2320B747EBFC9A0F65BEE4EBBCFA110.
2010-11-07 18:31:37,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:40,7, modem1: <- +CMGS: 0 OK
2010-11-07 18:31:40,5, modem1: SMS sent, Message_id: 0, To: 6597555334, sending time 16 sec.
2010-11-07 18:31:40,6, modem1: Moved file /var/spool/sms/checked/out.0.1.373 to /var/spool/sms/sent/out.0.1.373
2010-11-07 18:31:40,6, modem1: Checking device for incoming SMS
2010-11-07 18:31:40,6, modem1: Checking memory size
2010-11-07 18:31:41,7, modem1: -> AT+CPMS?
2010-11-07 18:31:41,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:41,7, modem1: <- +CPMS: "ME",0,200,"ME",0,200,"ME",0,200 OK
2010-11-07 18:31:41,6, modem1: Used memory is 0 of 200
2010-11-07 18:31:41,6, modem1: No SMS received
2010-11-07 18:31:41,6, modem1: Running a regular_run (PRE_RUN)
2010-11-07 18:31:41,7, modem1: Running regular_run (modem): /var/spool/sms/regular_run/modem1.sh PRE_RUN "/var/spool/sms/regular_run/modem1.statfile" modem1
2010-11-07 18:31:41,7, modem1: Done: regular_run (modem), execution time 0 sec., status: 0 (0)
2010-11-07 18:31:41,6, modem1: Running a regular_run POST_RUN
2010-11-07 18:31:41,7, modem1: Running regular_run_post_run (modem): /var/spool/sms/regular_run/modem1.sh POST_RUN "/var/spool/sms/regular_run/modem1.statfile" modem1
2010-11-07 18:31:41,7, modem1: Done: regular_run_post_run (modem), execution time 0 sec., status: 0 (0)
2010-11-07 18:31:41,6, modem1: Checking device for incoming SMS
2010-11-07 18:31:41,6, modem1: Checking memory size
2010-11-07 18:31:41,7, modem1: -> AT+CPMS?
2010-11-07 18:31:41,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:42,7, modem1: <- +CPMS: "ME",0,200,"ME",0,200,"ME",0,200 OK
2010-11-07 18:31:42,6, modem1: Used memory is 0 of 200
2010-11-07 18:31:42,6, modem1: No SMS received
2010-11-07 18:31:48,6, modem1: Checking device for incoming SMS
2010-11-07 18:31:48,6, modem1: Checking if modem is ready
2010-11-07 18:31:48,3, modem1: Routed status report detected:
+CDS: 29
06360A9156795535430111708113002301117081130023000000000012
2010-11-07 18:31:48,3, modem1: Saved routed status report for later handling. However, you MUST DISABLE status report routing with modem settings.
2010-11-07 18:31:48,7, modem1: Sending acknowledgement
2010-11-07 18:31:48,7, modem1: -> AT+CNMA
2010-11-07 18:31:49,7, modem1: <- ERROR
2010-11-07 18:31:49,7, modem1: -> AT
2010-11-07 18:31:49,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:49,7, modem1: <- OK
2010-11-07 18:31:49,6, modem1: Pre-initializing modem
2010-11-07 18:31:49,7, modem1: -> ATE0+CMEE=1;+CREG=2
2010-11-07 18:31:49,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:50,7, modem1: <- OK
2010-11-07 18:31:50,6, modem1: Initializing modem
2010-11-07 18:31:50,7, modem1: -> AT+CPMS="ME","ME","ME"
2010-11-07 18:31:50,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:50,7, modem1: <- +CPMS: 0,200,0,200,0,200 OK
2010-11-07 18:31:50,7, modem1: -> AT+CNMI=2,3,2,1,0
2010-11-07 18:31:50,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:51,7, modem1: <- OK
2010-11-07 18:31:51,7, modem1: -> AT+CSQ
2010-11-07 18:31:51,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:51,7, modem1: <- +CSQ: 18,99 OK
2010-11-07 18:31:51,6, modem1: Signal Strength Indicator: (18,99) -77 dBm (Good), Bit Error Rate: not known or not detectable
2010-11-07 18:31:51,6, modem1: Checking if Modem is registered to the network
2010-11-07 18:31:52,7, modem1: -> AT+CREG?
2010-11-07 18:31:52,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:52,7, modem1: <- +CREG: 2,1,"3F00","000037A4" OK
2010-11-07 18:31:52,6, modem1: Modem is registered to the network
2010-11-07 18:31:52,6, modem1: Selecting PDU mode
2010-11-07 18:31:52,7, modem1: -> AT+CMGF=0
2010-11-07 18:31:52,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:53,7, modem1: <- OK
2010-11-07 18:31:53,6, modem1: Checking memory size
2010-11-07 18:31:53,7, modem1: -> AT+CPMS?
2010-11-07 18:31:53,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:31:53,7, modem1: <- +CPMS: "ME",0,200,"ME",0,200,"ME",0,200 OK
2010-11-07 18:31:53,6, modem1: Used memory is 0 of 200
2010-11-07 18:31:53,6, modem1: No SMS received
2010-11-07 18:31:53,6, modem1: Handling saved routed messages / status reports
2010-11-07 18:31:53,5, modem1: SMS received (report, Message_id: 54, Status: 0,Ok,short message received by the SME), From: 6597555334
2010-11-07 18:31:53,6, modem1: Wrote an incoming message file: /var/spool/sms/report/modem1.rPtpOd
2010-11-07 18:31:53,6, modem1: Running a regular_run (PRE_RUN)
2010-11-07 18:31:53,7, modem1: Running regular_run (modem): /var/spool/sms/regular_run/modem1.sh PRE_RUN "/var/spool/sms/regular_run/modem1.statfile" modem1
2010-11-07 18:31:53,7, modem1: Done: regular_run (modem), execution time 0 sec., status: 0 (0)
2010-11-07 18:31:53,6, modem1: Running a regular_run POST_RUN
2010-11-07 18:31:53,7, modem1: Running regular_run_post_run (modem): /var/spool/sms/regular_run/modem1.sh POST_RUN "/var/spool/sms/regular_run/modem1.statfile" modem1
2010-11-07 18:31:53,7, modem1: Done: regular_run_post_run (modem), execution time 0 sec., status: 0 (0)
|
Sun Nov 07, 2010 11:41
|
johnaa: Operating system name and version: Centos 5.3
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: SE W810i
Interface: serial
Message_id is 0 always for send SMS in logfile and SMS send file.
Please help.
config file:
# Global configuration
devices = modem1
loglevel = 7
#logfile = /var/log/smsd.log
logfile = /var/log/sms/smstools.log
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
regular_run = /var/spool/sms/regular_run
stats = /var/spool/sms/stats
report = /var/spool/sms/report
#delivered = /var/spool/sms/delivered
delaytime = 6
errorsleeptime = 12
blocktime = 180
autosplit = 3
receive_before_send = yes
keep_filename = yes
[default]
regular_run_interval = 10
regular_run_logfile = /var/log/sms/smsd_regular_run.log
# Modem configuration
# iTegno 3000 USB
[modem1]
#init = AT+CNMI=2,3,2,0,0;+CMGF=0
#init = AT+CNMI=2,0,0,1,0
init = AT+CPMS="ME","ME","ME"
init2 = AT+CNMI=2,0,0,1,0
#device = /dev/ttyUSB0
device = /dev/ttyS0
incoming = yes
report = yes
routed_status_report_cnma = no
#keep_messages = yes
#pin =
baudrate = 115200
regular_run = /var/spool/sms/regular_run/modem1.sh
regular_run_post_run = /var/spool/sms/regular_run/modem1.sh
regular_run_cmdfile = /var/spool/sms/regular_run/modem1.cmdfile
#regular_run_cmdfile = /var/spool/sms/regular_run/modem1.ussd
regular_run_statfile = /var/spool/sms/regular_run/modem1.statfile
#eventhandler = /usr/local/bin/smsd_eventhandler.sh
Send file:
From: +6583766055
To: +6597555334
Report: yes
Modem: modem1
Sent: 10-11-07 18:48:03
Message_id: 0
IMSI: 525016131286817
Hi u there, good morning!!
Report file:
From: 6597555334
From_TOA: 91 international, ISDN/telephone
Sent: 10-11-07 18:48:00
Received: 10-11-07 18:48:16
Subject: modem1
Modem: modem1
IMSI: 525016131286817
Report: no
Alphabet: ISO
Length: 118
SMS STATUS REPORT
Message_id: 56
Discharge_timestamp: 10-11-07 18:48:00
Status: 0,Ok,short message received by the SME
Logfile:
2010-11-07 18:48:04,6, modem1: Checking device for incoming SMS
2010-11-07 18:48:04,6, modem1: Checking memory size
2010-11-07 18:48:04,7, modem1: -> AT+CPMS?
2010-11-07 18:48:04,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:04,7, modem1: <- +CPMS: "ME",0,200,"ME",0,200,"ME",0,200 OK
2010-11-07 18:48:04,6, modem1: Used memory is 0 of 200
2010-11-07 18:48:04,6, modem1: No SMS received
2010-11-07 18:48:10,6, modem1: Checking device for incoming SMS
2010-11-07 18:48:10,6, modem1: Checking if modem is ready
2010-11-07 18:48:11,3, modem1: Routed status report detected:
+CDS: 29
06380A9156795535430111708184002301117081840023000000000012
2010-11-07 18:48:11,3, modem1: Saved routed status report for later handling. However, you MUST DISABLE status report routing with modem settings.
2010-11-07 18:48:11,7, modem1: -> AT
2010-11-07 18:48:11,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:11,7, modem1: <- OK
2010-11-07 18:48:11,6, modem1: Pre-initializing modem
2010-11-07 18:48:11,7, modem1: -> ATE0+CMEE=1;+CREG=2
2010-11-07 18:48:11,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:12,7, modem1: <- OK
2010-11-07 18:48:12,6, modem1: Initializing modem
2010-11-07 18:48:12,7, modem1: -> AT+CPMS="ME","ME","ME"
2010-11-07 18:48:12,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:12,7, modem1: <- +CPMS: 0,200,0,200,0,200 OK
2010-11-07 18:48:13,7, modem1: -> AT+CNMI=2,0,0,1,0
2010-11-07 18:48:13,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:13,7, modem1: <- OK
2010-11-07 18:48:13,7, modem1: -> AT+CSQ
2010-11-07 18:48:13,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:14,7, modem1: <- +CSQ: 19,99 OK
2010-11-07 18:48:14,6, modem1: Signal Strength Indicator: (19,99) -75 dBm (Good), Bit Error Rate: not known or not detectable
2010-11-07 18:48:14,6, modem1: Checking if Modem is registered to the network
2010-11-07 18:48:14,7, modem1: -> AT+CREG?
2010-11-07 18:48:14,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:14,7, modem1: <- +CREG: 2,1,"3F00","0000377D" OK
2010-11-07 18:48:14,6, modem1: Modem is registered to the network
2010-11-07 18:48:14,6, modem1: Selecting PDU mode
2010-11-07 18:48:15,7, modem1: -> AT+CMGF=0
2010-11-07 18:48:15,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:15,7, modem1: <- OK
2010-11-07 18:48:15,6, modem1: Checking memory size
2010-11-07 18:48:15,7, modem1: -> AT+CPMS?
2010-11-07 18:48:15,7, modem1: Command is sent, waiting for the answer
2010-11-07 18:48:16,7, modem1: <- +CPMS: "ME",0,200,"ME",0,200,"ME",0,200 OK
2010-11-07 18:48:16,6, modem1: Used memory is 0 of 200
2010-11-07 18:48:16,6, modem1: No SMS received
2010-11-07 18:48:16,6, modem1: Handling saved routed messages / status reports
2010-11-07 18:48:16,5, modem1: SMS received (report, Message_id: 56, Status: 0,Ok,short message received by the SME), From: 6597555334
2010-11-07 18:48:16,6, modem1: Wrote an incoming message file: /var/spool/sms/report/modem1.fFzAde
2010-11-07 18:48:16,6, modem1: Running a regular_run (PRE_RUN)
2010-11-07 18:48:16,7, modem1: Running regular_run (modem): /var/spool/sms/regular_run/modem1.sh PRE_RUN "/var/spool/sms/regular_run/modem1.statfile" modem1
2010-11-07 18:48:16,7, modem1: Done: regular_run (modem), execution time 0 sec., status: 0 (0)
2010-11-07 18:48:16,6, modem1: Running a regular_run POST_RUN
2010-11-07 18:48:16,7, modem1: Running regular_run_post_run (modem): /var/spool/sms/regular_run/modem1.sh POST_RUN "/var/spool/sms/regular_run/modem1.statfile" modem1
2010-11-07 18:48:16,7, modem1: Done: regular_run_post_run (modem), execution time 0 sec., status: 0 (0)
|
Wed Nov 03, 2010 03:17
|
johnaa: Works great with above setting, I got expiry alert SMS and low balance alert SMS as well, Thanks.
Last_query: 2010-11-03 11:02:23
Current_alert: 2010-11-03 11:01:00, Alert: The balance has gone low (4). The expiration is near (84 days). The balance is also low (4).
Messages: 2
Balance: 4
Expiration: 84
Balance_alerted: 2010-11-03 11:01:00
Expiration_alerted: 2010-11-03 11:01:00
2010-11-03 11:02:23,5, modem1: CMD: AT+CUSD=1,"*139#": +CUSD: 0,"Main: $4.38 Expiry: 26 Jan 2011. Special Bonus: $0.00 Expiry: - *Special Bonus balance is capped at $'100'. FIC Expiry: -" OK
|
Tue Nov 02, 2010 18:45
|
johnaa: Last_query: 2010-11-03 02:37:50
Messages: 6
Balance: -1
Expiration: 84
2010-11-03 02:37:50,5, modem1: CMD: AT+CUSD=1,"*139#": +CUSD: 0,"Main: $4.74 Expiry: 26 Jan 2011. Special Bonus: $0.00 Expiry: - *Special Bonus balance is capped at $'100'. FIC Expiry: -" OK
Thank, the $ symbol is displayed correctly now, but the low balance alert SMS is not sent out ( alert_balance=5).
|
Tue Nov 02, 2010 16:54
|
johnaa: [root@localhost ~]# hexdump -C < /var/spool/sms/stats/modem1.balance
00000000 4c 61 73 74 5f 71 75 65 72 79 3a 20 32 30 31 30 |Last_query: 2010|
00000010 2d 31 31 2d 30 32 20 32 33 3a 35 38 3a 31 39 0a |-11-02 23:58:19.|
00000020 43 75 72 72 65 6e 74 5f 61 6c 65 72 74 3a 20 32 |Current_alert: 2|
00000030 30 31 30 2d 31 31 2d 30 32 20 32 31 3a 33 38 3a |010-11-02 21:38:|
00000040 31 35 2c 20 41 6c 65 72 74 3a 20 54 68 65 20 65 |15, Alert: The e|
00000050 78 70 69 72 61 74 69 6f 6e 20 69 73 20 6e 65 61 |xpiration is nea|
00000060 72 20 28 38 35 20 64 61 79 73 29 2e 0a 4d 65 73 |r (85 days)..Mes|
00000070 73 61 67 65 73 3a 20 31 39 0a 42 61 6c 61 6e 63 |sages: 19.Balanc|
00000080 65 3a 20 2d 31 0a 45 78 70 69 72 61 74 69 6f 6e |e: -1.Expiration|
00000090 3a 20 38 35 0a 45 78 70 69 72 61 74 69 6f 6e 5f |: 85.Expiration_|
000000a0 61 6c 65 72 74 65 64 3a 20 32 30 31 30 2d 31 31 |alerted: 2010-11|
000000b0 2d 30 32 20 32 31 3a 33 38 3a 31 34 0a 0a 32 30 |-02 21:38:14..20|
000000c0 31 30 2d 31 31 2d 30 32 20 32 33 3a 35 38 3a 31 |10-11-02 23:58:1|
000000d0 39 2c 35 2c 20 6d 6f 64 65 6d 31 3a 20 43 4d 44 |9,5, modem1: CMD|
000000e0 3a 20 41 54 2b 43 55 53 44 3d 31 2c 22 2a 31 33 |: AT+CUSD=1,"*13|
000000f0 39 23 22 3a 20 2b 43 55 53 44 3a 20 30 2c 22 4d |9#": +CUSD: 0,"M|
00000100 61 69 6e 3a 20 02 35 2e 32 35 20 45 78 70 69 72 |ain: .5.25 Expir|
00000110 79 3a 20 32 36 20 4a 61 6e 20 32 30 31 31 2e 20 |y: 26 Jan 2011. |
00000120 53 70 65 63 69 61 6c 20 42 6f 6e 75 73 3a 20 02 |Special Bonus: .|
00000130 30 2e 30 30 20 45 78 70 69 72 79 3a 20 2d 20 2a |0.00 Expiry: - *|
00000140 53 70 65 63 69 61 6c 20 42 6f 6e 75 73 20 62 61 |Special Bonus ba|
00000150 6c 61 6e 63 65 20 69 73 20 63 61 70 70 65 64 20 |lance is capped |
00000160 61 74 20 02 27 31 30 30 27 2e 20 46 49 43 20 45 |at .'100'. FIC E|
00000170 78 70 69 72 79 3a 20 2d 22 20 4f 4b 0a |xpiry: -" OK.|
0000017d
[root@localhost ~]#
|
Tue Nov 02, 2010 16:31
|
johnaa: Hi. Keke
Thank you very much, for expiry, it work well for date format dd mmm yyyyy now.
but for symbol $, sorry for don't make the thing clear, the problem is:
symbol $ is not displayed correctly in logfile, it display code 0002 instead of $, so I can't use "Main: $" to capture it. please advise.
Last_query: 2010-11-03 00:04:11
Current_alert: 2010-11-03 00:00:28, Alert: The expiration is near (84 days).
Messages: 3
Balance: -1
Expiration: 84
Expiration_alerted: 2010-11-03 00:00:28
2010-11-03 00:04:11,5, modem1: CMD: AT+CUSD=1,"*139#": +CUSD: 0,"Main: .5.25 Expiry: 26 Jan 2011. Special Bonus: .0.00 Expiry: - *Special Bonus balance is capped at .'100'. FIC Expiry: -" OK
I cut & paste here, but it is not displayed correctly in this site also, it displays "." instead of "0002". I will send you screen shot to you if you need it.
And Balance is always -1, not updated, is it correct ? -- "Balance: -1"
Thank you again
|
Tue Nov 02, 2010 02:57
|
johnaa: Last_query: 2010-11-02 08:54:20
Current_alert: 2010-11-02 08:53:54, Alert: The expiration is near (-14915 days).
Messages: 8
Balance: -1
Expiration: -14915
Expiration_alerted: 2010-11-02 08:53:54
2010-11-02 08:54:20,5, modem1: CMD: AT+CUSD=1,"*139#",0: +CUSD: 0,"Main: (0002)5.35 Expiry: 26 Jan 2011. Special Bonus: (0002)0.00 Expiry: - *Special Bonus balance is capped at (0002)'100'. FIC Expiry: -" OK
Should be:
2010-11-02 08:54:20,5, modem1: CMD: AT+CUSD=1,"*139#",0: +CUSD: 0,"Main: $5.35 Expiry: 26 Jan 2011. Special Bonus: $0.00 Expiry: - *Special Bonus balance is capped at $'100'. FIC Expiry: -" OK
|
Tue Nov 02, 2010 02:50
|
johnaa: work great,
please help on how to capture $ symbol (code 0002), and how to handle date format dd mmm yyyy (26 Jan 2011) ?
example ussd answer:
Last_query: 2010-11-02 08:54:20
Current_alert: 2010-11-02 08:53:54, Alert: The expiration is near (-14915 days).
Messages: 8
Balance: -1
Expiration: -14915
Expiration_alerted: 2010-11-02 08:53:54
2010-11-02 08:54:20,5, modem1: CMD: AT+CUSD=1,"*139#",0: +CUSD: 0,"Main: 5.35 Expiry: 26 Jan 2011. Special Bonus: 0.00 Expiry: - *Special Bonus balance is capped at '100'. FIC Expiry: -" OK
Thank you!
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|