From f0a460534d5f2c9ae85a29db5a08807f8bb3f6d8 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 2 Oct 2008 09:09:24 +0300 Subject: Add defines for Extended Audio Gateway Error Result Codes This is needed for the mandatory "Phone status information" feature of HFP. --- audio/telephony.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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; -- cgit