Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Functions | |
void | dlr_init (Cfg *cfg) |
void | dlr_shutdown (void) |
void | dlr_add (const Octstr *smsc, const Octstr *ts, Msg *msg, int use_dst) |
Msg * | dlr_find (const Octstr *smsc, const Octstr *ts, const Octstr *dst, int type, int use_dst) |
long | dlr_messages (void) |
void | dlr_flush (void) |
const char * | dlr_type (void) |
Msg * | create_dlr_from_msg (const Octstr *smsc, const Msg *msg, const Octstr *reply, long stat) |
void | dlr_save (const char *filename) |
void | dlr_load (const char *filename) |
#define DLR_BUFFERED 0x04 |
Definition at line 74 of file dlr.h.
Referenced by at2_pdu_decode_report_sm(), cgw_handle_op(), clickatell_receive_sms(), clickatell_send_sms(), handle_dlr(), handle_operation(), msg_to_pdu(), soap_parse_dlr(), and xidris_receive_sms().
#define DLR_EXPIRED 0x20|DLR_FAIL |
Definition at line 77 of file dlr.h.
Referenced by cimd2_accept_delivery_report_message(), clickatell_receive_sms(), clickatell_send_sms(), handle_dlr(), and msg_to_pdu().
#define DLR_FAIL 0x02 |
Definition at line 73 of file dlr.h.
Referenced by at2_pdu_decode_report_sm(), cgw_handle_op(), cimd2_accept_delivery_report_message(), clickatell_receive_sms(), clickatell_send_sms(), handle_dlr(), handle_operation(), msg_to_pdu(), oisd_accept_delivery_report_message(), pdu_to_msg(), soap_parse_dlr(), and xidris_receive_sms().
#define DLR_IS_BUFFERED | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & DLR_BUFFERED)) |
Definition at line 88 of file dlr.h.
Referenced by msg_to_emimsg(), and msg_to_pdu().
#define DLR_IS_DEFINED | ( | dlr | ) | (dlr != DLR_UNDEFINED) |
#define DLR_IS_ENABLED | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & (DLR_SUCCESS | DLR_FAIL | DLR_BUFFERED | DLR_SMSC_SUCCESS | DLR_SMSC_FAIL | DLR_EXPIRED | DLR_UNKNOWN))) |
Definition at line 81 of file dlr.h.
Referenced by create_dlr_from_msg(), dlr_add(), handle_pdu(), main(), send_message(), and sms_split().
#define DLR_IS_ENABLED_DEVICE | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & (DLR_SUCCESS | DLR_FAIL | DLR_BUFFERED | DLR_EXPIRED | DLR_UNKNOWN))) |
Definition at line 82 of file dlr.h.
Referenced by add_msg_cb(), at2_pdu_encode(), at2_send_one_message(), cgw_handle_op(), clickatell_parse_reply(), clickatell_send_sms(), emi2_handle_smscreq(), generic_parse_reply(), handle_pdu(), kannel_parse_reply(), msg_cb(), msg_to_cgwop(), msg_to_emimsg(), and xidris_parse_reply().
#define DLR_IS_ENABLED_SMSC | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & (DLR_SMSC_SUCCESS | DLR_SMSC_FAIL))) |
Definition at line 83 of file dlr.h.
Referenced by soap_o2o_dlrmask_smsc_yn_attribute().
#define DLR_IS_FAIL | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & (DLR_FAIL|DLR_EXPIRED|DLR_UNKNOWN))) |
Definition at line 87 of file dlr.h.
Referenced by bb_smscconn_send_failed(), and msg_to_pdu().
#define DLR_IS_NOT_FINAL | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & (DLR_BUFFERED | DLR_SMSC_SUCCESS))) |
Definition at line 84 of file dlr.h.
Referenced by dlr_find().
#define DLR_IS_SMSC_FAIL | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & DLR_SMSC_FAIL)) |
Definition at line 90 of file dlr.h.
Referenced by bb_smscconn_send_failed().
#define DLR_IS_SMSC_SUCCESS | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & DLR_SMSC_SUCCESS)) |
Definition at line 89 of file dlr.h.
Referenced by bb_smscconn_sent().
#define DLR_IS_SUCCESS | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & DLR_SUCCESS)) |
Definition at line 86 of file dlr.h.
Referenced by msg_to_pdu(), and soap_o2o_dlrmask_success_01_attribute().
#define DLR_IS_SUCCESS_OR_FAIL | ( | dlr | ) | (DLR_IS_DEFINED(dlr) && (dlr & (DLR_SUCCESS | DLR_FAIL | DLR_EXPIRED | DLR_UNKNOWN))) |
Definition at line 85 of file dlr.h.
Referenced by cimd2_submit_msg(), dlr_find(), main_connection_loop(), msg_to_pdu(), oisd_submit_msg(), and packet_encode_message().
#define DLR_NOTHING 0x00 |
Definition at line 71 of file dlr.h.
Referenced by kannel_send_sms(), and msg_to_pdu().
#define DLR_SMSC_FAIL 0x10 |
Definition at line 76 of file dlr.h.
Referenced by bb_smscconn_send_failed(), msg_to_pdu(), and pdu_to_msg().
#define DLR_SMSC_SUCCESS 0x08 |
Definition at line 75 of file dlr.h.
Referenced by bb_smscconn_sent(), and msg_to_pdu().
#define DLR_SUCCESS 0x01 |
Definition at line 72 of file dlr.h.
Referenced by at2_pdu_decode_report_sm(), cgw_handle_op(), cimd2_accept_delivery_report_message(), clickatell_receive_sms(), clickatell_send_sms(), handle_dlr(), handle_operation(), main_connection_loop(), msg_to_pdu(), oisd_accept_delivery_report_message(), pdu_to_msg(), soap_parse_dlr(), and xidris_receive_sms().
#define DLR_UNDEFINED -1 |
Definition at line 70 of file dlr.h.
Referenced by create_onetrans(), generic_receive_sms(), kannel_send_sms(), and msg_to_pdu().
#define DLR_UNKNOWN 0x40|DLR_FAIL |
Definition at line 78 of file dlr.h.
Referenced by clickatell_receive_sms().
Definition at line 501 of file dlr.c.
References debug(), DLR_IS_ENABLED, dlr_mask, gw_assert(), meta_data_set_value(), METADATA_ORIG_MSG_GROUP, METADATA_ORIG_MSG_GROUP_DLR_MASK, msg, msg_create, octstr_create, octstr_destroy(), octstr_duplicate, octstr_format(), octstr_get_cstr, octstr_imm(), reply(), report_mo, and dlr_entry::smsc.
Referenced by bb_smscconn_send_failed(), and bb_smscconn_sent().
Definition at line 330 of file dlr.c.
References dlr_entry::boxc_id, debug(), dlr_entry::destination, dlr_storage::dlr_add, dlr_entry_create(), DLR_IS_ENABLED, dlr_type(), gw_assert(), handles, dlr_entry::mask, msg, octstr_create, octstr_destroy(), octstr_duplicate, octstr_get_cstr, octstr_len(), dlr_entry::service, dlr_entry::smsc, dlr_entry::source, split, dlr_entry::timestamp, dlr_entry::url, dlr_entry::use_dst, and warning().
Referenced by add_msg_cb(), at2_send_one_message(), cgw_handle_op(), cimd2_submit_msg(), clickatell_parse_reply(), emi2_handle_smscreq(), generic_parse_reply(), handle_pdu(), kannel_parse_reply(), msg_cb(), oisd_submit_msg(), soap_read_response(), and xidris_parse_reply().
Definition at line 387 of file dlr.c.
References dlr_entry::boxc_id, debug(), dlr_entry::destination, dlr_entry_destroy(), dlr_storage::dlr_get, DLR_IS_NOT_FINAL, DLR_IS_SUCCESS_OR_FAIL, dlr_mask, dlr_storage::dlr_remove, dlr_type(), dlr_storage::dlr_update, handles, dlr_entry::mask, meta_data_set_value(), METADATA_ORIG_MSG_GROUP, METADATA_ORIG_MSG_GROUP_DLR_MASK, MIN_DST_LEN, msg, msg_create, O_SET, octstr_create, octstr_delete(), octstr_destroy(), octstr_duplicate, octstr_format(), octstr_get_cstr, octstr_imm(), octstr_len(), report_mo, dlr_entry::service, dlr_entry::smsc, dlr_entry::source, dlr_entry::url, dlr_entry::use_dst, and warning().
Referenced by at2_pdu_decode_report_sm(), cgw_handle_op(), cimd2_accept_delivery_report_message(), clickatell_receive_sms(), generic_receive_sms(), handle_dlr(), handle_operation(), kannel_receive_sms(), main_connection_loop(), msg_to_pdu(), oisd_accept_delivery_report_message(), soap_parse_dlr(), and xidris_receive_sms().
void dlr_flush | ( | void | ) |
Definition at line 491 of file dlr.c.
References dlr_storage::dlr_flush, dlr_messages(), dlr_type(), handles, and info().
Referenced by bb_flush_dlr().
void dlr_init | ( | Cfg * | cfg | ) |
Definition at line 233 of file dlr.c.
References cfg, cfg_get, cfg_get_single_group(), dlr_storage::dlr_add, dlr_storage::dlr_get, dlr_init_cass(), dlr_init_mem(), dlr_init_mssql(), dlr_init_mysql(), dlr_init_oracle(), dlr_init_pgsql(), dlr_init_redis(), dlr_init_sdb(), dlr_init_spool(), dlr_init_sqlite3(), dlr_storage::dlr_remove, dlr_type(), handles, info(), octstr_compare(), octstr_destroy(), octstr_get_cstr, octstr_imm(), panic, dlr_storage::type, and warning().
Referenced by init_smppbox(), and main().
void dlr_load | ( | const char * | filename | ) |
long dlr_messages | ( | void | ) |
Definition at line 308 of file dlr.c.
References dlr_storage::dlr_messages, and handles.
Referenced by bb_print_status(), and dlr_flush().
void dlr_save | ( | const char * | filename | ) |
void dlr_shutdown | ( | void | ) |
Definition at line 299 of file dlr.c.
References dlr_storage::dlr_shutdown, and handles.
Referenced by main().
const char* dlr_type | ( | void | ) |
Definition at line 319 of file dlr.c.
References handles, and dlr_storage::type.
Referenced by bb_print_status(), dlr_add(), dlr_find(), dlr_flush(), and dlr_init().