Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Macros | |
#define | CATENATE_UDH_LEN 5 |
Functions | |
int | fields_to_dcs (Msg *msg, int mode) |
int | dcs_to_fields (Msg **msg, int dcs) |
int | sms_msgdata_len (Msg *msg) |
int | sms_swap (Msg *msg) |
void | prepend_catenation_udh (Msg *sms, int part_no, int num_messages, int msg_sequence) |
static Octstr * | extract_msgdata_part (Octstr *msgdata, Octstr *split_chars, int max_part_len) |
static Octstr * | extract_msgdata_part_by_coding (Msg *msg, Octstr *split_chars, int max_part_len) |
List * | sms_split (Msg *orig, Octstr *header, Octstr *footer, Octstr *nonlast_suffix, Octstr *split_chars, int catenate, unsigned long msg_sequence, int max_messages, int max_octets) |
int | sms_priority_compare (const void *a, const void *b) |
int | sms_charset_processing (Octstr *charset, Octstr *body, int coding) |
#define CATENATE_UDH_LEN 5 |
Definition at line 221 of file sms.c.
Referenced by prepend_catenation_udh(), and sms_split().
int dcs_to_fields | ( | Msg ** | msg, |
int | dcs | ||
) |
Definition at line 139 of file sms.c.
References DC_7BIT, DC_8BIT, DC_UCS2, and MC_UNDEF.
Referenced by at2_pdu_decode_deliver_sm(), cimd2_accept_message(), data_sm_to_msg(), handle_operation(), oisd_accept_message(), and pdu_to_msg().
|
static |
Definition at line 247 of file sms.c.
References octstr_copy, octstr_delete(), octstr_get_char(), octstr_len(), and octstr_search_char().
Referenced by extract_msgdata_part_by_coding().
|
static |
Definition at line 267 of file sms.c.
References charset_gsm_to_utf8(), charset_gsm_truncate(), charset_utf8_to_gsm(), DC_8BIT, DC_UCS2, extract_msgdata_part(), msg, octstr_destroy(), octstr_duplicate, and octstr_len().
Referenced by sms_split().
int fields_to_dcs | ( | Msg * | msg, |
int | mode | ||
) |
Definition at line 73 of file sms.c.
References COMPRESS_ON, DC_7BIT, DC_8BIT, DC_UCS2, DC_UNDEF, MC_UNDEF, msg, MWI_UNDEF, octstr_len(), and SMS_PARAM_UNDEFINED.
Referenced by at2_pdu_encode(), brunet_send_sms(), msg_to_emimsg(), msg_to_pdu(), packet_encode_message(), urltrans_fill_escape_codes(), and xidris_send_sms().
void prepend_catenation_udh | ( | Msg * | sms, |
int | part_no, | ||
int | num_messages, | ||
int | msg_sequence | ||
) |
Create multipart UDH
Definition at line 224 of file sms.c.
References CATENATE_UDH_LEN, num_messages, octstr_append_char(), octstr_create, octstr_format_append(), octstr_len(), and octstr_set_char().
Referenced by data_sm_to_msg(), pdu_to_msg(), and sms_split().
Definition at line 419 of file sms.c.
References charset, charset_convert(), coding, DC_7BIT, DC_UCS2, error(), octstr_get_cstr, and octstr_len().
Referenced by generic_receive_sms(), kannel_receive_sms(), smsbox_req_handle(), and url_result_thread().
int sms_msgdata_len | ( | Msg * | msg | ) |
Definition at line 180 of file sms.c.
References charset_utf8_to_gsm(), DC_7BIT, msg, octstr_destroy(), octstr_duplicate, and octstr_len().
Referenced by at2_pdu_encode(), and sms_split().
int sms_priority_compare | ( | const void * | a, |
const void * | b | ||
) |
Compare priority and time of two sms's.
Definition at line 395 of file sms.c.
References gw_assert().
Referenced by smpp_create(), smsc_at2_create(), and smsc_emi2_create().
List* sms_split | ( | Msg * | orig, |
Octstr * | header, | ||
Octstr * | footer, | ||
Octstr * | nonlast_suffix, | ||
Octstr * | split_chars, | ||
int | catenate, | ||
unsigned long | msg_sequence, | ||
int | max_messages, | ||
int | max_octets | ||
) |
Definition at line 309 of file sms.c.
References CATENATE_UDH_LEN, DC_8BIT, DC_UCS2, DLR_IS_ENABLED, extract_msgdata_part_by_coding(), gwlist_append(), gwlist_create, gwlist_get(), max_messages, msg_destroy(), msg_duplicate(), octstr_append(), octstr_destroy(), octstr_insert(), octstr_len(), prepend_catenation_udh(), sms_msgdata_len(), and uuid_generate().
Referenced by dispatch_datagram(), msg_to_pdu(), run_batch(), send_message(), and smscconn_send().
int sms_swap | ( | Msg * | msg | ) |
Definition at line 201 of file sms.c.
References msg.
Referenced by obey_request_thread().