Add defines for Extended Audio Gateway Error Result Codes

This is needed for the mandatory "Phone status information"
feature of HFP.
This commit is contained in:
Johan Hedberg 2008-10-02 09:09:24 +03:00
parent e303ffce67
commit f0a460534d

View File

@ -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;