Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
struct | SMASI_PDU |
Macros | |
#define | SMASI_HYPHEN_ID 0x00000010 |
#define | NONTERMINATED(name) |
#define | COMATERMINATED(name) |
#define | PDU(name, id, fields) name = id, |
#define | NONTERMINATED(name) Octstr *name; |
#define | COMATERMINATED(name) Octstr *name; |
#define | PDU(name, id, fields) struct name { fields } name; |
#define | GSM_ADDR_TON_UNKNOWN 0x00000000 |
#define | GSM_ADDR_TON_INTERNATIONAL 0x00000001 |
#define | GSM_ADDR_TON_NATIONAL 0x00000002 |
#define | GSM_ADDR_TON_NETWORKSPECIFIC 0x00000003 |
#define | GSM_ADDR_TON_SUBSCRIBER 0x00000004 |
#define | GSM_ADDR_TON_ALPHANUMERIC 0x00000005 /* GSM TS 03.38 */ |
#define | GSM_ADDR_TON_ABBREVIATED 0x00000006 |
#define | GSM_ADDR_TON_EXTENSION 0x00000007 /* Reserved */ |
#define | GSM_ADDR_NPI_UNKNOWN 0x00000000 |
#define | GSM_ADDR_NPI_E164 0x00000001 |
#define | GSM_ADDR_NPI_X121 0x00000003 |
#define | GSM_ADDR_NPI_TELEX 0x00000004 |
#define | GSM_ADDR_NPI_NATIONAL 0x00000008 |
#define | GSM_ADDR_NPI_PRIVATE 0x00000009 |
#define | GSM_ADDR_NPI_ERMES 0x0000000A /* ETSI DE/PS 3 01-3 */ |
#define | GSM_ADDR_NPI_EXTENSION 0x0000000F /* Reserved */ |
#define | ESM_CLASS_DEFAULT_SMSC_MODE 0x00000000 |
#define | ESM_CLASS_DATAGRAM_MODE 0x00000001 |
#define | ESM_CLASS_FORWARD_MODE 0x00000002 |
#define | ESM_CLASS_STORE_AND_FORWARD_MODE 0x00000003 |
#define | ESM_CLASS_DELIVERY_ACK 0x00000008 |
#define | ESM_CLASS_USER_ACK 0x00000010 |
#define | ESM_CLASS_UDH_INDICATOR 0x00000040 |
#define | ESM_CLASS_RPI 0x00000080 |
#define | ESM_CLASS_UDH_AND_RPI 0x000000C0 |
Typedefs | |
typedef struct SMASI_PDU | SMASI_PDU |
Enumerations | |
enum | { PDU, PDU } |
Functions | |
SMASI_PDU * | smasi_pdu_create (unsigned long type) |
void | smasi_pdu_destroy (SMASI_PDU *pdu) |
int | smasi_pdu_is_valid (SMASI_PDU *pdu) |
Octstr * | smasi_pdu_pack (SMASI_PDU *pdu) |
SMASI_PDU * | smasi_pdu_unpack (Octstr *data_without_len) |
void | smasi_pdu_dump (SMASI_PDU *pdu) |
Octstr * | smasi_pdu_read (Connection *conn) |
#define COMATERMINATED | ( | name | ) |
Definition at line 90 of file smasi_pdu.h.
Definition at line 90 of file smasi_pdu.h.
#define ESM_CLASS_DATAGRAM_MODE 0x00000001 |
Definition at line 124 of file smasi_pdu.h.
#define ESM_CLASS_DEFAULT_SMSC_MODE 0x00000000 |
Definition at line 123 of file smasi_pdu.h.
#define ESM_CLASS_DELIVERY_ACK 0x00000008 |
Definition at line 127 of file smasi_pdu.h.
#define ESM_CLASS_FORWARD_MODE 0x00000002 |
Definition at line 125 of file smasi_pdu.h.
#define ESM_CLASS_RPI 0x00000080 |
Definition at line 130 of file smasi_pdu.h.
#define ESM_CLASS_STORE_AND_FORWARD_MODE 0x00000003 |
Definition at line 126 of file smasi_pdu.h.
#define ESM_CLASS_UDH_AND_RPI 0x000000C0 |
Definition at line 131 of file smasi_pdu.h.
#define ESM_CLASS_UDH_INDICATOR 0x00000040 |
Definition at line 129 of file smasi_pdu.h.
#define ESM_CLASS_USER_ACK 0x00000010 |
Definition at line 128 of file smasi_pdu.h.
#define GSM_ADDR_NPI_E164 0x00000001 |
Definition at line 112 of file smasi_pdu.h.
Referenced by get_dest_addr_npi(), get_source_addr_npi(), and msg_to_pdu().
#define GSM_ADDR_NPI_ERMES 0x0000000A /* ETSI DE/PS 3 01-3 */ |
Definition at line 117 of file smasi_pdu.h.
#define GSM_ADDR_NPI_EXTENSION 0x0000000F /* Reserved */ |
Definition at line 118 of file smasi_pdu.h.
#define GSM_ADDR_NPI_NATIONAL 0x00000008 |
Definition at line 115 of file smasi_pdu.h.
#define GSM_ADDR_NPI_PRIVATE 0x00000009 |
Definition at line 116 of file smasi_pdu.h.
#define GSM_ADDR_NPI_TELEX 0x00000004 |
Definition at line 114 of file smasi_pdu.h.
#define GSM_ADDR_NPI_UNKNOWN 0x00000000 |
Definition at line 111 of file smasi_pdu.h.
Referenced by msg_to_pdu().
#define GSM_ADDR_NPI_X121 0x00000003 |
Definition at line 113 of file smasi_pdu.h.
#define GSM_ADDR_TON_ABBREVIATED 0x00000006 |
Definition at line 108 of file smasi_pdu.h.
#define GSM_ADDR_TON_ALPHANUMERIC 0x00000005 /* GSM TS 03.38 */ |
Definition at line 107 of file smasi_pdu.h.
Referenced by convert_addr_from_pdu(), get_originator_type(), and msg_to_pdu().
#define GSM_ADDR_TON_EXTENSION 0x00000007 /* Reserved */ |
Definition at line 109 of file smasi_pdu.h.
#define GSM_ADDR_TON_INTERNATIONAL 0x00000001 |
Definition at line 103 of file smasi_pdu.h.
Referenced by convert_addr_from_pdu(), get_dest_addr_ton(), get_originator_type(), get_source_addr_ton(), and msg_to_pdu().
#define GSM_ADDR_TON_NATIONAL 0x00000002 |
Definition at line 104 of file smasi_pdu.h.
Referenced by msg_to_pdu().
#define GSM_ADDR_TON_NETWORKSPECIFIC 0x00000003 |
Definition at line 105 of file smasi_pdu.h.
#define GSM_ADDR_TON_SUBSCRIBER 0x00000004 |
Definition at line 106 of file smasi_pdu.h.
#define GSM_ADDR_TON_UNKNOWN 0x00000000 |
Definition at line 102 of file smasi_pdu.h.
#define NONTERMINATED | ( | name | ) |
Definition at line 89 of file smasi_pdu.h.
Definition at line 89 of file smasi_pdu.h.
Definition at line 91 of file smasi_pdu.h.
Definition at line 91 of file smasi_pdu.h.
#define SMASI_HYPHEN_ID 0x00000010 |
Definition at line 73 of file smasi_pdu.h.
Definition at line 83 of file smasi_pdu.h.
anonymous enum |
SMASI_PDU* smasi_pdu_create | ( | unsigned long | type | ) |
Definition at line 132 of file smasi_pdu.c.
References SMASI_PDU::type, type, and warning().
Referenced by handle_pdu(), msg_to_pdu(), open_connection(), send_enquire_link(), send_logoff(), and smasi_pdu_unpack().
void smasi_pdu_destroy | ( | SMASI_PDU * | pdu | ) |
Definition at line 160 of file smasi_pdu.c.
References error(), and SMASI_PDU::type.
Referenced by handle_pdu(), open_connection(), send_enquire_link(), send_logoff(), send_messages(), and smasi_thread().
void smasi_pdu_dump | ( | SMASI_PDU * | pdu | ) |
Definition at line 280 of file smasi_pdu.c.
References debug(), and warning().
Referenced by dump_pdu().
int smasi_pdu_is_valid | ( | SMASI_PDU * | pdu | ) |
Definition at line 178 of file smasi_pdu.c.
References error(), SMASI_PDU::needs_hyphen, octstr_append_char(), octstr_append_cstr(), octstr_create, octstr_destroy(), octstr_insert(), SMASI_PDU::type, and SMASI_PDU::type_name.
Referenced by send_enquire_link(), send_logoff(), and send_pdu().
Octstr* smasi_pdu_read | ( | Connection * | conn | ) |
Definition at line 299 of file smasi_pdu.c.
References conn_read_line().
Referenced by read_pdu().
Definition at line 223 of file smasi_pdu.c.
References decode_type(), octstr_destroy(), octstr_get_cstr, skip_until_after_colon(), smasi_pdu_create(), type, and warning().
Referenced by read_pdu().