Ticket #1226 (closed defect: fixed)
Support USSD messages, e.g. for "remaining airtime" checks
| Reported by: | mail@… | Owned by: | erin_yueh |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | gsmd | Version: | current svn head |
| Severity: | normal | Keywords: | |
| Cc: | buglog@…, reddog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
gsmd and other related applications should support USSD (Unstructured
Supplementary Service Data) messages from the carrier. This protocol is used
with some prepaid plans to check the remaining balance. For example, with Fido
Prepaid (Canada) I dial "*225" and get a USSD response indicating the answer:
AT+CUSD=1
OK
ATD*225;
OK
%CPRI: 1,2
+CUSD: 0,"Your balance is $55.15, expiring at 00:01am 15022008 (DDMMYYYY).
Refill before this date to keep your unused balance. Thank you.",15
ATH
OK
These messages may also appear when a regular call is made, e.g.:
ATD604xxxxxxx;
K
%CPRI: 1,2
+CUSD: 0,"Reminder: Airtime expires soon. Please refill to avoid losing airtime5
%CSQ: 21, 99, 2
There are probably other USSD-related functions that should be supported at some
point, but just passing these messages through to the user's GUI would be a good
start (and would be required for a "consumer-ready" phone).
