64 #define SM_RESULT_SUCCESS 0 65 #define SM_RESULT_FAIL_ARGS 1 66 #define SM_RESLUT_FAIL_SMSC_DB 2 67 #define SM_RESULT_FAIL_SMSC_BUSY 3 68 #define SM_RESULT_FAIL_SM_NOTFOUND 4 69 #define SM_RESULT_FAIL_SM_DUPLICATE 5 71 #define SME_RESULT_SUCCESS 0 72 #define SME_RESULT_INVALIDDATA 1 73 #define SME_RESULT_DBFULL 2 74 #define SME_RESULT_SMEBUSY 3 75 #define SME_RESULT_NOTUSED 4 76 #define SME_RESULT_DUPLICATESM 5 77 #define SME_RESULT_DESTUNAVAILABLE 6 78 #define SME_RESULT_CALLBARREDUSER 7 79 #define SME_RESULT_TRANSMISSION 21 80 #define SME_RESULT_FACILITYNOTSUPPORT 22 81 #define SME_RESULT_ERRORINSME 23 82 #define SME_RESULT_UNKNOWNSUBSCRIBER 24 83 #define SME_RESULT_CALLBARREDOPERATOR 25 84 #define SME_RESULT_CUGVIOLATION 26 85 #define SME_RESULT_NETWORKFAIL 120 92 #define LINE_ENCODE_IA5 1 93 #define LINE_ENCODE_HEX 2 94 #define LINE_ENCODE_BIN 3 96 #define X28_COMMAND_MODE 0 97 #define X28_MT_DATA_MODE 1 98 #define X28_MO_DATA_MODE 2 100 #define INTERNAL_DISCONNECT_TIMEVAL 3 101 #define INTERNAL_READFD_TIMEVAL 1 102 #define INTERNAL_CONNECT_TIMEVAL 5 103 #define INTERNAL_SESSION_MT_TIMEVAL 20 105 #define SESSION_MT_RECEIVE_ERR 0 106 #define SESSION_MT_RECEIVE_TIMEOUT 1 107 #define SESSION_MT_RECEIVE_SUCCESS 2 static unsigned char internal_char_hex_to_gsm(unsigned char from)
unsigned int statusreportrequest
static int internal_char_hex_to_IA5(unsigned char, unsigned char *)
static sema_msg * sema_msg_new(void)
static int sema_decode_msg(sema_msg **, char *)
unsigned int textsizeoctect
static int sema_msglist_pop(sema_msglist *, sema_msg **)
static int sema_msg_session_mt(SMSCenter *, sema_msg *)
static int line_scan_IA5_hex(char *, int, unsigned char *)
unsigned int textsizeoctect
static int internal_char_IA5_to_hex(char *, unsigned char *)
static int unpack_continous_byte(unsigned char, int *, int *, int *)
static unsigned char pack_continous_byte(int, int, int)
struct sm_submit_invoke sm_submit_invoke
struct sm_deliver_invoke sm_deliver_invoke
unsigned char continuebyte
unsigned int validperiodtype
unsigned char smerefnum[4]
unsigned char smscrefnum[4]
struct sm_statusreport_invoke sm_statusreport_invoke
static int sema_msg_session_mo(SMSCenter *, char *)
unsigned int validperiodrela
static int X28_msg_pop(char *, char *)
unsigned char smscrefnum[4]
struct sema_msglist sema_msglist
static int sema_encode_msg(sema_msg *, char *)
struct sm_statusreport_result sm_statusreport_result
static int X28_close_send_link(int)
static sema_msglist * sema_msglist_new(void)
static int X28_open_data_link(char *)
static int X28_open_send_link(int, char *)
unsigned int textsizeseptet
unsigned int textsizeseptet
static int sema_msg_free(sema_msg *msg)
static int line_append_hex_IA5(Octstr *, unsigned char *, int)
static void increment_counter(void)
static int X28_data_read(int, char *)
static int line_scan_hex_GSM7(unsigned char *, int, int, unsigned char *)
static void sema_msglist_free(sema_msglist *)
unsigned char smscrefnum[4]
static int X28_data_send(int, char *, int)
static int sema_msglist_push(sema_msglist *, sema_msg *)
unsigned char smerefnum[4]
unsigned char smscrefnum[4]
static int X28_reopen_data_link(int, char *)
static int sema_submit_result(SMSCenter *, sema_msg *, int)
static XMLRPCDocument * msg
struct sm_submit_result sm_submit_result
struct sm_deliver_result sm_deliver_result