|
SWILIB API (NSG)
|
SMS, calls, USSD and others.
Usage: #include <swilib.h> or #include <swilib/telephony.h>
Data Structures | |
| struct | GBS_USSD_MSG |
| USSD reply GSB message. More... | |
| struct | RAMNET |
| Cellular network state (http://e71.ru/publ/4-1-0-34). More... | |
| struct | PDU |
| SMS PDU. More... | |
| struct | StructUSSDStr |
| USSD request. More... | |
| struct | StructUSSD |
| USSD request (???). More... | |
| struct | SMS_POS_INDEX_DATA |
| SMS position index. More... | |
| struct | INDEX_ID_DATA |
| SMS index data. More... | |
| struct | SMS_DATA_LIST |
| Container of the SMS data. More... | |
| struct | SMS_DATA_LLIST |
| Linked-List of SMS (Openwave). More... | |
| struct | SMS_DATA_ROOT |
| Root of the SMS list (Openwave). More... | |
| struct | EAM_DATA |
| EMS Admin data. More... | |
| struct | RAM_EMS_ADMIN |
| EMS Admin. More... | |
Typedefs | |
| typedef struct RAMNET | RAMNET |
| typedef struct PDU | PDU |
| typedef struct StructUSSDStr | StructUSSDStr |
| typedef struct StructUSSD | StructUSSD |
| typedef struct GBS_USSD_MSG | GBS_USSD_MSG |
| typedef struct SMS_POS_INDEX_DATA | SMS_POS_INDEX_DATA |
| typedef struct INDEX_ID_DATA | INDEX_ID_DATA |
| typedef struct SMS_DATA_LIST | SMS_DATA_LIST |
| typedef struct SMS_DATA_LLIST | SMS_DATA_LLIST |
| typedef struct SMS_DATA_ROOT | SMS_DATA_ROOT |
| typedef struct EAM_DATA | EAM_DATA |
| typedef struct RAM_EMS_ADMIN | RAM_EMS_ADMIN |
Functions | |
| int | MakeVoiceCall (const char *number, int unk1, int unk2) |
| Call the number. | |
| int | GetSMSState (void) |
| Get SMS status. | |
| int | HasNewSMS (void) |
| Check for new SMS. | |
| int | HasFlashSMS (void) |
| Check for a pending flash message (flash SMS, USSD reply or network text) that ReadFlashSMS shows. | |
| char * | RamMissedSMS () |
| Pointer to the for missed SMS count. | |
| char * | RamMissedMessage () |
| Pointer to the for missed messages count. | |
| int | GetMissedCallsCount (void) |
| Check for missed calls. | |
| char * | RamMissedCalls () |
| Pointer to the for missed calls count. | |
| int | IsCalling (void) |
| Checking for an active call. | |
| int | GetDurationFromCurrentCall (void) |
| Get current call diration. | |
| int | isDecryption (void) |
| Check if current call in decryption state. | |
| int | IsIncognitoCall (int call_id) |
| Check if the call has a number. | |
| int | IsDirectCallActive (void) |
| Checking for an active direct call. | |
| char * | RamCallState () |
| State of the current call. | |
| int | GetTypeOfCall (int type) |
| Get type of the current call. | |
| int | ShowCallList (int list, int zero) |
| Open calls list phone UI. | |
| void | EndCall (void) |
| Cancel current call. | |
| void | EndCallBusy (int param1, int param2) |
| Cancel current call with BUSY status. | |
| uint16_t * | RamLastCallNum () |
| Number of the last call in call slot 1, as UTF-16 characters. | |
| char * | RAM_IMSI (void) |
| Get IMSI of the SIM card. | |
| char * | RamServiceProviderName (void) |
| Get cellurar operator name. | |
| RAMNET * | RamNet () |
| Current cellular network state. | |
| int * | RamNetOnline () |
| Network online flag. | |
| int | GetNetAccessMode () |
| Get current network access mode. | |
| int | GetRoamingState () |
| Get network roaming status. | |
| uint16_t * | GetCI () |
| Get current network cell identification. | |
| char * | Get_CC_NC () |
| Get cell network MCC & MNC. | |
| char | GetProvider (WSHDR *name, int unk) |
| Get name of the current cellurar provider. | |
| int | GetSubprovider (WSHDR *name) |
| Get name of the current cellurar sub-provider. | |
| char | GetTypeUSSD () |
| Get type of the current USSD request. | |
| uint32_t | SetUSSD (const StructUSSDStr *req) |
| Set current USSD request. | |
| void | SendAutoUSSDack (void) |
| Send auto-ACK for the current USSD. | |
| void | freeUSSD () |
| Free current USSD request. | |
| int | SendSMS (WSHDR *text, const char *number, int cepid, int msg, int flag) |
| Send SMS. | |
| PDU * | IncommingPDU (void) |
| Get PDU from the received SMS message (in MSG_SMS_RX event). | |
| int | DeleteSMS (int index, short *del_cnt) |
| Remove SMS from memory (Openwave). | |
| int | SetSmsStatus (int index, int status) |
| Update SMS status (Openwave). | |
| SMS_DATA_ROOT * | SmsDataRoot () |
| Get root of the SMS list (Openwave). | |
| int | GetSmsPosIndex (SMS_POS_INDEX_DATA *buf, int data_id) |
| Get SMS position index (SMS_POS_INDEX_DATA) by data ID. | |
| RAM_EMS_ADMIN * | RAM_EMS_Admin () |
| Get pointer to the EMS Admin data. | |
| int | GSMTXT_Decode (WSHDR *result, void *pkt, int len, int encoding_type, malloc_func_t malloc_fn, mfree_func_t mfree_fn) |
| Decode GSM-encoded text. | |
| void | FreeGSMTXTpkt (void *pkt) |
| Free USSD response packet. | |
| void | ReadNewSMS (void) |
| Open new received SMS in SMS UI. | |
| int | ReadFlashSMS (int ack) |
| Open new received flash SMS in SMS UI. | |
| void | GetAllEmail () |
| Starts "opwvmsg:RGetAllEmail" in Openwave. | |
| struct GBS_USSD_MSG |
| struct RAMNET |
| struct PDU |
| struct StructUSSDStr |
| struct StructUSSD |
| struct SMS_POS_INDEX_DATA |
| struct INDEX_ID_DATA |
| struct SMS_DATA_LIST |
| struct SMS_DATA_LLIST |
| struct SMS_DATA_ROOT |
| struct EAM_DATA |
| struct RAM_EMS_ADMIN |
| typedef struct RAMNET RAMNET |
Definition at line 18 of file telephony.h.
| typedef struct PDU PDU |
Definition at line 19 of file telephony.h.
| typedef struct StructUSSDStr StructUSSDStr |
Definition at line 20 of file telephony.h.
| typedef struct StructUSSD StructUSSD |
Definition at line 21 of file telephony.h.
| typedef struct GBS_USSD_MSG GBS_USSD_MSG |
Definition at line 22 of file telephony.h.
| typedef struct SMS_POS_INDEX_DATA SMS_POS_INDEX_DATA |
Definition at line 23 of file telephony.h.
| typedef struct INDEX_ID_DATA INDEX_ID_DATA |
Definition at line 24 of file telephony.h.
| typedef struct SMS_DATA_LIST SMS_DATA_LIST |
Definition at line 25 of file telephony.h.
| typedef struct SMS_DATA_LLIST SMS_DATA_LLIST |
Definition at line 26 of file telephony.h.
| typedef struct SMS_DATA_ROOT SMS_DATA_ROOT |
Definition at line 27 of file telephony.h.
| typedef struct EAM_DATA EAM_DATA |
Definition at line 28 of file telephony.h.
| typedef struct RAM_EMS_ADMIN RAM_EMS_ADMIN |
Definition at line 29 of file telephony.h.
| int MakeVoiceCall | ( | const char * | number, |
| int | unk1, | ||
| int | unk2 ) |
Call the number.
| number | phone number |
| unk1 | unknown, set to 0x10 |
| unk2 | unknown, set to 0x20C0 |
| int GetSMSState | ( | void | ) |
Get SMS status.
| int HasNewSMS | ( | void | ) |
Check for new SMS.
| int HasFlashSMS | ( | void | ) |
Check for a pending flash message (flash SMS, USSD reply or network text) that ReadFlashSMS shows.
| char * RamMissedSMS | ( | ) |
Pointer to the for missed SMS count.
| char * RamMissedMessage | ( | ) |
Pointer to the for missed messages count.
| int GetMissedCallsCount | ( | void | ) |
Check for missed calls.
| char * RamMissedCalls | ( | ) |
Pointer to the for missed calls count.
| int IsCalling | ( | void | ) |
Checking for an active call.
| int GetDurationFromCurrentCall | ( | void | ) |
Get current call diration.
| int isDecryption | ( | void | ) |
Check if current call in decryption state.
| int IsIncognitoCall | ( | int | call_id | ) |
Check if the call has a number.
| call_id | call ID (1..7), other values cause a fatal error |
| int IsDirectCallActive | ( | void | ) |
Checking for an active direct call.
| char * RamCallState | ( | ) |
State of the current call.
| int GetTypeOfCall | ( | int | type | ) |
Get type of the current call.
| type | unknown, set to 1 |
| int ShowCallList | ( | int | list, |
| int | zero ) |
Open calls list phone UI.
| list | type of the list |
| zero | unknown, set to 0 |
| void EndCall | ( | void | ) |
Cancel current call.
| void EndCallBusy | ( | int | param1, |
| int | param2 ) |
Cancel current call with BUSY status.
| param1 | unknown |
| param2 | unknown |
| uint16_t * RamLastCallNum | ( | ) |
Number of the last call in call slot 1, as UTF-16 characters.
| char * RAM_IMSI | ( | void | ) |
Get IMSI of the SIM card.
| char * RamServiceProviderName | ( | void | ) |
Get cellurar operator name.
| RAMNET * RamNet | ( | ) |
Current cellular network state.
| int * RamNetOnline | ( | ) |
Network online flag.
| int GetNetAccessMode | ( | ) |
Get current network access mode.
| int GetRoamingState | ( | ) |
Get network roaming status.
| uint16_t * GetCI | ( | ) |
| char * Get_CC_NC | ( | ) |
Get cell network MCC & MNC.
| char GetProvider | ( | WSHDR * | name, |
| int | unk ) |
Get name of the current cellurar provider.
| [out] | name | name of the provider |
| unk | set to 0 |
| int GetSubprovider | ( | WSHDR * | name | ) |
Get name of the current cellurar sub-provider.
| [out] | name | name of the sub-provider |
| char GetTypeUSSD | ( | ) |
Get type of the current USSD request.
| uint32_t SetUSSD | ( | const StructUSSDStr * | req | ) |
Set current USSD request.
| req | pointer to the USSD request |
| void SendAutoUSSDack | ( | void | ) |
Send auto-ACK for the current USSD.
| void freeUSSD | ( | ) |
Free current USSD request.
Send SMS.
| text | text of the SMS |
| number | receiver number |
| cepid | set to MMI_CEPID |
| msg | set to MSG_SMS_TX |
| flag | unknown, set to 6 |
| PDU * IncommingPDU | ( | void | ) |
Get PDU from the received SMS message (in MSG_SMS_RX event).
| int DeleteSMS | ( | int | index, |
| short * | del_cnt ) |
Remove SMS from memory (Openwave).
| index | index of the SMS | |
| [out] | del_cnt | number of deleted segments |
| int SetSmsStatus | ( | int | index, |
| int | status ) |
Update SMS status (Openwave).
| index | index of the SMS |
| status | new SMS status (1: read, 3: unread) |
| SMS_DATA_ROOT * SmsDataRoot | ( | ) |
Get root of the SMS list (Openwave).
| int GetSmsPosIndex | ( | SMS_POS_INDEX_DATA * | buf, |
| int | data_id ) |
Get SMS position index (SMS_POS_INDEX_DATA) by data ID.
| RAM_EMS_ADMIN * RAM_EMS_Admin | ( | ) |
Get pointer to the EMS Admin data.
| int GSMTXT_Decode | ( | WSHDR * | result, |
| void * | pkt, | ||
| int | len, | ||
| int | encoding_type, | ||
| malloc_func_t | malloc_fn, | ||
| mfree_func_t | mfree_fn ) |
Decode GSM-encoded text.
| [out] | result | result of the decoding |
| pkt | input GSM-encoded data | |
| len | length of the input | |
| encoding_type | type of the encoding | |
| malloc_fn | result of malloc_adr() | |
| mfree_fn | result of mfree_adr() |
| void FreeGSMTXTpkt | ( | void * | pkt | ) |
Free USSD response packet.
| void ReadNewSMS | ( | void | ) |
Open new received SMS in SMS UI.
| int ReadFlashSMS | ( | int | ack | ) |
Open new received flash SMS in SMS UI.
| ack | nonzero: acknowledge the flash SMS when the UI is closed |
| void GetAllEmail | ( | ) |
Starts "opwvmsg:RGetAllEmail" in Openwave.