Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "gwlib/gwlib.h"
#include "msg.h"
#include "smsc_p.h"
#include "smpp_pdu.h"
#include "smscconn_p.h"
#include "bb_smscconn_cb.h"
#include "sms.h"
#include "dlr.h"
#include "bearerbox.h"
#include "meta_data.h"
#include "load.h"
Go to the source code of this file.
Data Structures | |
struct | SMPP |
struct | smpp_msg |
struct | io_arg |
Macros | |
#define | SMPP_DEFAULT_CHARSET "UTF-8" |
#define | SMPP_DEFAULT_UCS2_CHARSET "UTF-16BE" |
#define | DEBUG 1 |
#define | dump_pdu(msg, id, pdu, format) |
#define | SMPP_ENQUIRE_LINK_INTERVAL 30.0 |
#define | SMPP_MAX_PENDING_SUBMITS 10 |
#define | SMPP_DEFAULT_VERSION 0x34 |
#define | SMPP_DEFAULT_PRIORITY 0 |
#define | SMPP_THROTTLING_SLEEP_TIME 1 |
#define | SMPP_DEFAULT_CONNECTION_TIMEOUT 10 * SMPP_ENQUIRE_LINK_INTERVAL |
#define | SMPP_DEFAULT_WAITACK 60 |
#define | SMPP_DEFAULT_SHUTDOWN_TIMEOUT 30 |
#define | SMPP_DEFAULT_PORT 2775 |
#define | SMPP_WAITACK_RECONNECT 0x00 |
#define | SMPP_WAITACK_REQUEUE 0x01 |
#define | SMPP_WAITACK_NEVER_EXPIRE 0x02 |
#define | IS_ACTIVE (smpp->conn->status == SMSCCONN_ACTIVE || smpp->conn->status == SMSCCONN_ACTIVE_RECV) |
Enumerations | |
enum | smpp_pdu_dump_format { SMPP_PDU_DUMP_MULTILINE = 1, SMPP_PDU_DUMP_LINE = 2 } |
Functions | |
static struct smpp_msg * | smpp_msg_create (Msg *msg) |
static void | smpp_msg_destroy (struct smpp_msg *msg, int destroy_msg) |
static SMPP * | smpp_create (SMSCConn *conn, Octstr *host, int transmit_port, int receive_port, int our_port, int our_receiver_port, Octstr *system_type, Octstr *username, Octstr *password, Octstr *address_range, int source_addr_ton, int source_addr_npi, int dest_addr_ton, int dest_addr_npi, int enquire_link_interval, int max_pending_submits, int version, int priority, int validity, Octstr *my_number, int smpp_msg_id_type, int autodetect_addr, Octstr *alt_charset, Octstr *alt_addr_charset, Octstr *service_type, long connection_timeout, long wait_ack, int wait_ack_action, int esm_class) |
static void | smpp_destroy (SMPP *smpp) |
static int | read_pdu (SMPP *smpp, Connection *conn, long *len, SMPP_PDU **pdu) |
static long | convert_addr_from_pdu (Octstr *id, Octstr *addr, long ton, long npi, Octstr *alt_addr_charset) |
static void | handle_mt_dcs (Octstr *short_message, char *internal, int data_coding) |
static void | handle_mo_dcs (Msg *msg, Octstr *alt_charset, int data_coding, int esm_class) |
static Msg * | pdu_to_msg (SMPP *smpp, SMPP_PDU *pdu, long *reason) |
static Msg * | data_sm_to_msg (SMPP *smpp, SMPP_PDU *pdu, long *reason) |
static long | smpp_status_to_smscconn_failure_reason (long status) |
static SMPP_PDU * | msg_to_pdu (SMPP *smpp, Msg *msg) |
static int | send_enquire_link (SMPP *smpp, Connection *conn, long *last_sent) |
static int | send_gnack (SMPP *smpp, Connection *conn, long reason, unsigned long seq_num) |
static int | send_unbind (SMPP *smpp, Connection *conn) |
static int | send_pdu (Connection *conn, SMPP *smpp, SMPP_PDU *pdu) |
static int | send_messages (SMPP *smpp, Connection *conn, long *pending_submits) |
static Connection * | open_transmitter (SMPP *smpp) |
static Connection * | open_transceiver (SMPP *smpp) |
static Connection * | open_receiver (SMPP *smpp) |
static int | error_from_network_error_code (Octstr *network_error_code) |
static Msg * | handle_dlr (SMPP *smpp, Octstr *destination_addr, Octstr *short_message, Octstr *message_payload, Octstr *receipted_message_id, long message_state, Octstr *network_error_code) |
static long | smscconn_failure_reason_to_smpp_status (long reason) |
static int | handle_pdu (SMPP *smpp, Connection *conn, SMPP_PDU *pdu, long *pending_submits) |
static struct io_arg * | io_arg_create (SMPP *smpp, int transmitter) |
static int | do_queue_cleanup (SMPP *smpp, long *pending_submits) |
static void | io_thread (void *arg) |
static long | queued_cb (SMSCConn *conn) |
static int | send_msg_cb (SMSCConn *conn, Msg *msg) |
static int | shutdown_cb (SMSCConn *conn, int finish_sending) |
int | smsc_smpp_create (SMSCConn *conn, CfgGroup *grp) |
#define DEBUG 1 |
Definition at line 98 of file smsc_smpp.c.
This version does dump.
Definition at line 104 of file smsc_smpp.c.
Referenced by io_thread(), send_enquire_link(), send_gnack(), send_pdu(), and send_unbind().
#define IS_ACTIVE (smpp->conn->status == SMSCCONN_ACTIVE || smpp->conn->status == SMSCCONN_ACTIVE_RECV) |
Referenced by io_thread().
#define SMPP_DEFAULT_CHARSET "UTF-8" |
Definition at line 84 of file smsc_smpp.c.
Referenced by convert_addr_from_pdu(), handle_mo_dcs(), and msg_to_pdu().
#define SMPP_DEFAULT_CONNECTION_TIMEOUT 10 * SMPP_ENQUIRE_LINK_INTERVAL |
Definition at line 125 of file smsc_smpp.c.
Referenced by smsc_smpp_create().
#define SMPP_DEFAULT_PORT 2775 |
Definition at line 128 of file smsc_smpp.c.
Referenced by smsc_smpp_create().
#define SMPP_DEFAULT_PRIORITY 0 |
Definition at line 123 of file smsc_smpp.c.
Referenced by smsc_smpp_create().
#define SMPP_DEFAULT_SHUTDOWN_TIMEOUT 30 |
Definition at line 127 of file smsc_smpp.c.
Referenced by io_thread().
#define SMPP_DEFAULT_UCS2_CHARSET "UTF-16BE" |
Definition at line 85 of file smsc_smpp.c.
Referenced by handle_mt_dcs(), and msg_to_pdu().
#define SMPP_DEFAULT_VERSION 0x34 |
Definition at line 122 of file smsc_smpp.c.
Referenced by smsc_smpp_create().
#define SMPP_DEFAULT_WAITACK 60 |
Definition at line 126 of file smsc_smpp.c.
Referenced by smsc_smpp_create().
#define SMPP_ENQUIRE_LINK_INTERVAL 30.0 |
Definition at line 120 of file smsc_smpp.c.
Referenced by smsc_smpp_create().
#define SMPP_MAX_PENDING_SUBMITS 10 |
Definition at line 121 of file smsc_smpp.c.
Referenced by smsc_smpp_create().
#define SMPP_THROTTLING_SLEEP_TIME 1 |
Definition at line 124 of file smsc_smpp.c.
Referenced by io_thread().
#define SMPP_WAITACK_NEVER_EXPIRE 0x02 |
Definition at line 136 of file smsc_smpp.c.
Referenced by do_queue_cleanup().
#define SMPP_WAITACK_RECONNECT 0x00 |
Definition at line 134 of file smsc_smpp.c.
Referenced by do_queue_cleanup().
#define SMPP_WAITACK_REQUEUE 0x01 |
Definition at line 135 of file smsc_smpp.c.
Referenced by do_queue_cleanup(), and smsc_smpp_create().
enum smpp_pdu_dump_format |
Enumerator | |
---|---|
SMPP_PDU_DUMP_MULTILINE | |
SMPP_PDU_DUMP_LINE |
Definition at line 87 of file smsc_smpp.c.
|
static |
Definition at line 368 of file smsc_smpp.c.
References charset_convert(), charset_gsm_to_utf8(), error(), GSM_ADDR_TON_ALPHANUMERIC, GSM_ADDR_TON_INTERNATIONAL, gw_isdigit(), octstr_check_range(), octstr_delete(), octstr_get_char(), octstr_get_cstr, octstr_imm(), octstr_insert_char(), octstr_len(), octstr_search(), octstr_str_case_compare(), SMPP_DEFAULT_CHARSET, SMPP_ESME_RINVSRCADR, SMPP_ESME_ROK, and warning().
Referenced by data_sm_to_msg(), and pdu_to_msg().
Definition at line 731 of file smsc_smpp.c.
References SMPP::alt_addr_charset, SMPP::alt_charset, SMPP::conn, convert_addr_from_pdu(), dcs_to_fields(), debug(), error(), ESM_CLASS_SUBMIT_RPI, ESM_CLASS_SUBMIT_UDH_INDICATOR, gw_assert(), handle_mo_dcs(), smscconn::id, meta_data_set_values(), msg, msg_create, msg_destroy(), octstr_copy, octstr_create, octstr_delete(), octstr_get_char(), octstr_get_cstr, octstr_len(), prepend_catenation_udh(), SMPP_ESME_RINVDSTADR, SMPP_ESME_RINVESMCLASS, SMPP_ESME_RINVTLVVAL, SMPP_ESME_ROK, SMPP_PDU::type, SMPP_PDU::u, and SMPP::version.
Referenced by handle_pdu().
|
static |
Definition at line 2246 of file smsc_smpp.c.
References bb_smscconn_send_failed(), SMPP::conn, dict_get(), dict_keys(), dict_remove(), error(), gwlist_destroy(), gwlist_extract_first(), smscconn::id, smpp_msg::msg, octstr_destroy(), octstr_destroy_item(), octstr_get_cstr, SMPP::sent_msgs, smpp_msg::sent_time, smpp_msg_destroy(), SMPP_WAITACK_NEVER_EXPIRE, SMPP_WAITACK_RECONNECT, SMPP_WAITACK_REQUEUE, SMSCCONN_FAILED_TEMPORARILY, SMPP::wait_ack, SMPP::wait_ack_action, and warning().
Referenced by io_thread().
|
static |
Definition at line 1468 of file smsc_smpp.c.
References octstr_get_cstr, octstr_len(), and type.
Referenced by handle_dlr().
|
static |
Definition at line 1492 of file smsc_smpp.c.
References SMPP::conn, debug(), DLR_BUFFERED, DLR_EXPIRED, DLR_FAIL, dlr_find(), DLR_SUCCESS, error(), error_from_network_error_code(), gw_isdigit(), smscconn::id, meta_data_set_value(), octstr_check_range(), octstr_compare(), octstr_copy, octstr_create, octstr_create_from_data, octstr_destroy(), octstr_duplicate, octstr_format(), octstr_get_cstr, octstr_imm(), octstr_len(), octstr_search(), octstr_search_char(), octstr_strip_blanks(), report_mo, SMPP::smpp_msg_id_type, SMPP::username, SMPP::version, and warning().
Referenced by handle_pdu().
|
static |
Definition at line 509 of file smsc_smpp.c.
References alt_charset, charset_convert(), charset_gsm_to_utf8(), DC_7BIT, DC_8BIT, DC_UCS2, DC_UNDEF, error(), ESM_CLASS_SUBMIT_UDH_INDICATOR, msg, octstr_get_cstr, and SMPP_DEFAULT_CHARSET.
Referenced by data_sm_to_msg(), and pdu_to_msg().
|
static |
Definition at line 439 of file smsc_smpp.c.
References charset_convert(), charset_utf8_to_gsm(), error(), and SMPP_DEFAULT_UCS2_CHARSET.
Referenced by msg_to_pdu().
|
static |
Definition at line 1726 of file smsc_smpp.c.
References bb_alog_sms(), bb_smscconn_connected(), bb_smscconn_receive(), bb_smscconn_send_failed(), bb_smscconn_sent(), SMPP::conn, smscconn::connect_time, data_sm_to_msg(), debug(), dict_remove(), dlr_add(), DLR_IS_ENABLED_DEVICE, error(), smscconn::flow_mutex, gw_isdigit(), handle_dlr(), smscconn::id, smscconn::is_stopped, meta_data_set_values(), msg, smpp_msg::msg, msg_destroy(), mutex_lock, mutex_unlock, SMPP::my_number, octstr_check_range(), octstr_create, octstr_destroy(), octstr_duplicate, octstr_format(), octstr_get_cstr, octstr_len(), pdu_to_msg(), SMPP::quitting, SMPP::retry, send_gnack(), send_pdu(), SMPP::sent_msgs, smpp_error_to_string(), SMPP_ESME_RALYBND, SMPP_ESME_RINVCMDID, SMPP_ESME_RINVPASWD, SMPP_ESME_RINVSYSID, SMPP_ESME_RINVSYSTYP, SMPP_ESME_ROK, SMPP_ESME_RTHROTTLED, SMPP_ESME_RX_T_APPN, smpp_msg_destroy(), SMPP::smpp_msg_id_type, smpp_pdu_create(), smpp_pdu_destroy(), smpp_status_to_smscconn_failure_reason(), SMSCCONN_ACTIVE, SMSCCONN_ACTIVE_RECV, SMSCCONN_DISCONNECTED, smscconn_failure_reason_to_smpp_status(), SMSCCONN_SUCCESS, smscconn::status, SMPP::throttling_err_time, SMPP_PDU::type, SMPP_PDU::type_name, SMPP_PDU::u, SMPP::username, and warning().
Referenced by io_thread().
Definition at line 2231 of file smsc_smpp.c.
References io_arg::smpp, and io_arg::transmitter.
Referenced by smsc_smpp_create().
|
static |
Definition at line 2311 of file smsc_smpp.c.
References bb_smscconn_killed(), bb_smscconn_send_failed(), SMPP::conn, conn_destroy(), conn_wait(), SMPP::connection_timeout, smscconn::data, debug(), dict_keys(), dict_remove(), do_queue_cleanup(), dump_pdu, SMPP::enquire_link_interval, error(), smscconn::flow_mutex, gw_prioqueue_len(), gw_prioqueue_remove(), gwlist_destroy(), gwlist_extract_first(), gwthread_join(), gwthread_sleep(), gwthread_wakeup(), handle_pdu(), smscconn::id, IS_ACTIVE, SMPP::log_format, smscconn::log_idx, log_thread_to(), SMPP::max_pending_submits, msg, smpp_msg::msg, SMPP::msgs_to_send, mutex_lock, mutex_unlock, smscconn::name, octstr_destroy(), octstr_get_cstr, open_receiver(), open_transceiver(), open_transmitter(), SMPP::quitting, read_pdu(), SMPP::receiver, smscconn::reconnect_delay, send_enquire_link(), send_gnack(), send_messages(), send_unbind(), SMPP::sent_msgs, io_arg::smpp, SMPP_DEFAULT_SHUTDOWN_TIMEOUT, smpp_destroy(), SMPP_ESME_RINVCMDLEN, smpp_msg_destroy(), smpp_pdu_destroy(), SMPP_THROTTLING_SLEEP_TIME, SMSCCONN_DEAD, SMSCCONN_DISCONNECTED, SMSCCONN_FAILED_SHUTDOWN, SMSCCONN_FAILED_TEMPORARILY, SMSCCONN_RECONNECTING, smscconn::status, SMPP::throttling_err_time, smscconn::throughput, SMPP::transmitter, io_arg::transmitter, SMPP::wait_ack, and warning().
Referenced by smsc_smpp_create().
Definition at line 870 of file smsc_smpp.c.
References SMPP::alt_addr_charset, SMPP::alt_charset, smscconn::alt_dcs, SMPP::autodetect_addr, charset_convert(), charset_utf8_to_gsm(), SMPP::conn, counter_increase(), DC_7BIT, DC_UCS2, DC_UNDEF, debug(), SMPP::dest_addr_npi, SMPP::dest_addr_ton, dict_destroy(), DLR_IS_BUFFERED, DLR_IS_FAIL, DLR_IS_SUCCESS, DLR_IS_SUCCESS_OR_FAIL, error(), SMPP::esm_class, ESM_CLASS_SUBMIT_RPI, ESM_CLASS_SUBMIT_UDH_INDICATOR, fields_to_dcs(), GSM_ADDR_NPI_E164, GSM_ADDR_NPI_UNKNOWN, GSM_ADDR_TON_ALPHANUMERIC, GSM_ADDR_TON_INTERNATIONAL, GSM_ADDR_TON_NATIONAL, gw_gmtime(), gw_isdigit(), handle_mt_dcs(), smscconn::id, MC_UNDEF, SMPP::message_id_counter, meta_data_get_value(), meta_data_get_values(), METADATA_SMPP_GROUP, msg, MWI_UNDEF, octstr_check_range(), octstr_delete(), octstr_destroy(), octstr_duplicate, octstr_format(), octstr_get_char(), octstr_get_cstr, octstr_imm(), octstr_insert(), octstr_len(), octstr_replace(), octstr_str_case_compare(), SMPP::priority, SMPP::service_type, SMPP_DEFAULT_CHARSET, SMPP_DEFAULT_UCS2_CHARSET, smpp_pdu_create(), smpp_pdu_destroy(), smpp_tlv_add_constant(), SMS_PARAM_UNDEFINED, SMPP::source_addr_npi, SMPP::source_addr_ton, SMPP_PDU::u, SMPP::validityperiod, and SMPP::version.
Referenced by send_messages().
|
static |
Definition at line 1416 of file smsc_smpp.c.
References SMPP::address_range, SMPP::bind_addr_npi, SMPP::bind_addr_ton, SMPP::conn, conn_destroy(), conn_open_tcp(), conn_open_tcp_with_port(), counter_increase(), error(), SMPP::host, smscconn::id, SMPP::message_id_counter, octstr_create, octstr_duplicate, octstr_get_cstr, smscconn::our_host, SMPP::our_receiver_port, SMPP::password, SMPP::receive_port, send_pdu(), smpp_pdu_create(), smpp_pdu_destroy(), SMPP::ssl_client_certkey_file, SMPP::system_type, SMPP_PDU::u, SMPP::use_ssl, SMPP::username, and SMPP::version.
Referenced by io_thread().
|
static |
Definition at line 1365 of file smsc_smpp.c.
References SMPP::address_range, SMPP::bind_addr_npi, SMPP::bind_addr_ton, SMPP::conn, conn_destroy(), conn_open_tcp(), conn_open_tcp_with_port(), counter_increase(), error(), SMPP::host, smscconn::id, SMPP::message_id_counter, octstr_create, octstr_duplicate, octstr_get_cstr, smscconn::our_host, SMPP::our_port, SMPP::password, send_pdu(), smpp_pdu_create(), smpp_pdu_destroy(), SMPP::ssl_client_certkey_file, SMPP::system_type, SMPP::transmit_port, SMPP_PDU::u, SMPP::use_ssl, SMPP::username, and SMPP::version.
Referenced by io_thread().
|
static |
Definition at line 1312 of file smsc_smpp.c.
References SMPP::address_range, SMPP::bind_addr_npi, SMPP::bind_addr_ton, SMPP::conn, conn_destroy(), conn_open_tcp(), conn_open_tcp_with_port(), counter_increase(), error(), SMPP::host, smscconn::id, SMPP::message_id_counter, octstr_create, octstr_duplicate, octstr_get_cstr, smscconn::our_host, SMPP::our_port, SMPP::password, send_pdu(), smpp_pdu_create(), smpp_pdu_destroy(), SMPP::ssl_client_certkey_file, SMPP::system_type, SMPP::transmit_port, SMPP_PDU::u, SMPP::use_ssl, SMPP::username, and SMPP::version.
Referenced by io_thread().
Definition at line 590 of file smsc_smpp.c.
References SMPP::alt_addr_charset, SMPP::alt_charset, SMPP::conn, convert_addr_from_pdu(), dcs_to_fields(), debug(), error(), ESM_CLASS_SUBMIT_RPI, ESM_CLASS_SUBMIT_UDH_INDICATOR, gw_assert(), handle_mo_dcs(), smscconn::id, meta_data_set_values(), msg, msg_create, msg_destroy(), octstr_copy, octstr_create, octstr_delete(), octstr_get_char(), octstr_get_cstr, octstr_len(), prepend_catenation_udh(), SMPP_ESME_RINVDSTADR, SMPP_ESME_RINVESMCLASS, SMPP_ESME_RINVTLVVAL, SMPP_ESME_ROK, SMPP_PDU::type, SMPP_PDU::u, and SMPP::version.
Referenced by handle_pdu().
|
static |
Definition at line 2537 of file smsc_smpp.c.
References smscconn::data, gw_prioqueue_len(), smscconn::load, SMPP::msgs_to_send, SMSCCONN_DEAD, and smscconn::status.
Referenced by smsc_smpp_create().
|
static |
Definition at line 327 of file smsc_smpp.c.
References SMPP::conn, conn_eof(), conn_error(), debug(), error(), smscconn::id, octstr_destroy(), octstr_dump, octstr_get_cstr, smpp_pdu_read_data(), smpp_pdu_read_len(), and smpp_pdu_unpack().
Referenced by io_thread().
|
static |
Definition at line 1174 of file smsc_smpp.c.
References SMPP::conn, conn_write(), counter_increase(), date_universal_now(), dump_pdu, SMPP::enquire_link_interval, smscconn::id, SMPP::log_format, SMPP::message_id_counter, octstr_destroy(), smpp_pdu_create(), smpp_pdu_destroy(), and smpp_pdu_pack().
Referenced by io_thread().
|
static |
Definition at line 1197 of file smsc_smpp.c.
References SMPP::conn, conn_write(), dump_pdu, smscconn::id, SMPP::log_format, octstr_destroy(), smpp_pdu_create(), smpp_pdu_destroy(), smpp_pdu_pack(), and SMPP_PDU::u.
Referenced by handle_pdu(), and io_thread().
|
static |
Definition at line 1256 of file smsc_smpp.c.
References bb_smscconn_send_failed(), SMPP::conn, debug(), dict_put(), gw_prioqueue_remove(), smscconn::id, SMPP::load, load_get(), load_increase, msg, msg_to_pdu(), SMPP::msgs_to_send, octstr_create, octstr_destroy(), octstr_format(), octstr_get_cstr, send_pdu(), SMPP::sent_msgs, smpp_msg_create(), smpp_pdu_destroy(), SMSCCONN_FAILED_MALFORMED, SMSCCONN_FAILED_TEMPORARILY, smscconn::throughput, and SMPP_PDU::u.
Referenced by io_thread().
Definition at line 2548 of file smsc_smpp.c.
References smscconn::data, gw_prioqueue_produce, gwthread_wakeup(), msg, msg_duplicate(), SMPP::msgs_to_send, and SMPP::transmitter.
Referenced by smsc_smpp_create().
|
static |
Definition at line 1237 of file smsc_smpp.c.
References SMPP::conn, conn_write(), dump_pdu, smscconn::id, SMPP::log_format, octstr_destroy(), and smpp_pdu_pack().
Referenced by handle_pdu(), open_receiver(), open_transceiver(), open_transmitter(), and send_messages().
|
static |
Definition at line 1217 of file smsc_smpp.c.
References SMPP::conn, conn_write(), counter_increase(), dump_pdu, smscconn::id, SMPP::log_format, SMPP::message_id_counter, octstr_destroy(), smpp_pdu_create(), smpp_pdu_destroy(), and smpp_pdu_pack().
Referenced by io_thread().
|
static |
Definition at line 2559 of file smsc_smpp.c.
References smscconn::data, debug(), smscconn::flow_mutex, gwthread_wakeup(), mutex_lock, mutex_unlock, smscconn::name, octstr_get_cstr, SMPP::quitting, SMPP::receiver, SMSCCONN_KILLED_SHUTDOWN, SMPP::transmitter, and smscconn::why_killed.
Referenced by smsc_smpp_create().
|
static |
Definition at line 229 of file smsc_smpp.c.
References SMPP::address_range, SMPP::alt_addr_charset, alt_charset, SMPP::alt_charset, SMPP::autodetect_addr, SMPP::bind_addr_npi, SMPP::bind_addr_ton, SMPP::conn, SMPP::connection_timeout, counter_create(), counter_increase(), SMPP::dest_addr_npi, SMPP::dest_addr_ton, dict_create(), SMPP::enquire_link_interval, SMPP::esm_class, gw_prioqueue_add_producer(), gw_prioqueue_create(), gwlist_create, host, SMPP::host, SMPP::load, load_add_interval(), load_create_real(), SMPP::max_pending_submits, SMPP::message_id_counter, SMPP::msgs_to_send, SMPP::my_number, octstr_duplicate, our_port, SMPP::our_port, SMPP::our_receiver_port, password, SMPP::password, SMPP::priority, SMPP::quitting, SMPP::receive_port, SMPP::received_msgs, SMPP::receiver, SMPP::sent_msgs, SMPP::service_type, SMPP::smpp_msg_id_type, sms_priority_compare(), SMPP::source_addr_npi, SMPP::source_addr_ton, SMPP::ssl_client_certkey_file, SMPP::system_type, SMPP::throttling_err_time, SMPP::transmit_port, SMPP::transmitter, SMPP::use_ssl, username, SMPP::username, SMPP::validityperiod, SMPP::version, SMPP::wait_ack, and SMPP::wait_ack_action.
Referenced by smsc_smpp_create().
|
static |
Definition at line 295 of file smsc_smpp.c.
References SMPP::address_range, SMPP::alt_addr_charset, SMPP::alt_charset, counter_destroy(), dict_destroy(), gw_prioqueue_destroy(), gwlist_destroy(), SMPP::host, SMPP::load, load_destroy(), SMPP::message_id_counter, msg_destroy_item(), SMPP::msgs_to_send, SMPP::my_number, octstr_destroy(), SMPP::password, SMPP::received_msgs, SMPP::sent_msgs, SMPP::service_type, SMPP::ssl_client_certkey_file, SMPP::system_type, and SMPP::username.
Referenced by io_thread(), and smsc_smpp_create().
Definition at line 201 of file smsc_smpp.c.
References gw_assert(), msg, smpp_msg::msg, and smpp_msg::sent_time.
Referenced by send_messages().
|
inlinestatic |
Definition at line 216 of file smsc_smpp.c.
References msg, and msg_destroy().
Referenced by do_queue_cleanup(), handle_pdu(), and io_thread().
|
static |
Definition at line 854 of file smsc_smpp.c.
References SMPP_ESME_RMSGQFUL, SMPP_ESME_RSYSERR, SMPP_ESME_RTHROTTLED, SMPP_ESME_RX_T_APPN, SMSCCONN_FAILED_REJECTED, and SMSCCONN_FAILED_TEMPORARILY.
Referenced by handle_pdu().
Definition at line 2599 of file smsc_smpp.c.
References alt_charset, SMPP::bind_addr_npi, SMPP::bind_addr_ton, cfg_get, cfg_get_bool(), cfg_get_integer(), SMPP::conn, smscconn::data, error(), ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE, gwthread_create, gwthread_join(), gwthread_wakeup(), host, smscconn::id, io_arg_create(), io_thread(), SMPP::log_format, smscconn::name, octstr_destroy(), octstr_duplicate, octstr_format(), octstr_get_cstr, octstr_imm(), octstr_len(), ok, our_port, panic, password, port, smscconn::queued, queued_cb(), SMPP::quitting, SMPP::receiver, SMPP::retry, smscconn::send_msg, send_msg_cb(), smscconn::shutdown, shutdown_cb(), smpp_create(), SMPP_DEFAULT_CONNECTION_TIMEOUT, SMPP_DEFAULT_PORT, SMPP_DEFAULT_PRIORITY, SMPP_DEFAULT_VERSION, SMPP_DEFAULT_WAITACK, smpp_destroy(), SMPP_ENQUIRE_LINK_INTERVAL, SMPP_MAX_PENDING_SUBMITS, SMPP_PDU_DUMP_MULTILINE, SMPP_WAITACK_REQUEUE, SMS_PARAM_UNDEFINED, smsc_id, SMSCCONN_CONNECTING, SMPP::ssl_client_certkey_file, smscconn::status, SMPP::transmitter, SMPP::use_ssl, username, and warning().
Referenced by smscconn_create().
|
static |
Definition at line 1711 of file smsc_smpp.c.
References SMPP_ESME_ROK, SMPP_ESME_RX_R_APPN, SMPP_ESME_RX_T_APPN, SMSCCONN_FAILED_QFULL, SMSCCONN_FAILED_REJECTED, SMSCCONN_FAILED_TEMPORARILY, and SMSCCONN_SUCCESS.
Referenced by handle_pdu().