summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-02 09:09:24 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-02 09:09:24 +0300
commitf0a460534d5f2c9ae85a29db5a08807f8bb3f6d8 (patch)
tree46811901ba4e61f2d8c9ad1662186865c3f78db8
parente303ffce67951a29d822c8c819e74e2c70c297d7 (diff)
Add defines for Extended Audio Gateway Error Result Codes
This is needed for the mandatory "Phone status information" feature of HFP.
-rw-r--r--audio/telephony.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/telephony.h b/audio/telephony.h
index e2e208ae..50c1a57b 100644
--- a/audio/telephony.h
+++ b/audio/telephony.h
@@ -64,6 +64,31 @@
#define EV_ROAM_INACTIVE 0
#define EV_ROAM_ACTIVE 1
+/* Extended Audio Gateway Error Result Codes */
+#define CME_ERROR_NONE -1
+#define CME_ERROR_AG_FAILURE 0
+#define CME_ERROR_NO_PHONE_CONNECTION 1
+#define CME_ERROR_NOT_ALLOWED 3
+#define CME_ERROR_NOT_SUPPORTED 4
+#define CME_ERROR_PH_SIM_PIN_REQUIRED 5
+#define CME_ERROR_SIM_NOT_INSERTED 10
+#define CME_ERROR_SIM_PIN_REQUIRED 11
+#define CME_ERROR_SIM_PUK_REQUIRED 12
+#define CME_ERROR_SIM_FAILURE 13
+#define CME_ERROR_SIM_BUSY 14
+#define CME_ERROR_INCORRECT_PASSWORD 16
+#define CME_ERROR_SIM_PIN2_REQUIRED 17
+#define CME_ERROR_SIM_PUK2_REQUIRED 18
+#define CME_ERROR_MEMORY_FULL 20
+#define CME_ERROR_INVALID_INDEX 21
+#define CME_ERROR_MEMORY_FAILURE 23
+#define CME_ERROR_TEXT_STRING_TOO_LONG 24
+#define CME_ERROR_INVALID_TEXT_STRING 25
+#define CME_ERROR_DIAL_STRING_TOO_LONG 26
+#define CME_ERROR_INVALID_DIAL_STRING 27
+#define CME_ERROR_NO_NETWORK_SERVICE 30
+#define CME_ERROR_NETWORK_NOT_ALLOWED 32
+
struct indicator {
const char *desc;
const char *range;