Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "smsc.h"
#include "smsc_p.h"
#include "gwlib/gwlib.h"
#include "sms.h"
Go to the source code of this file.
Data Structures | |
struct | ois_listentry |
Macros | |
#define | SAY(d, s) { if (d<=ois_debug_level) debug("bb.sms.ois",0,s); } |
#define | SAY2(d, s, t) { if (d<=ois_debug_level) debug("bb.sms.ois",0,s,t); } |
#define | SAY3(d, s, t, u) { if (d<=ois_debug_level) debug("bb.sms.ois",0,s,t,u); } |
#define | IOTRACE(x, s, l) SAY3(1,"%s [%s]",x,ois_debug_str(s,l)) |
#define | BUFLEN (511) /* sure enough for ois messages */ |
#define | OIS_OPEN_WAITTIME (15) /* seconds, waiting for banners */ |
#define | OIS_MESSAGE_WAITTIME (30) /* seconds, until closing idle connection */ |
#define | OIS_WAITTIME (999999) /* microseconds, waiting for banners at a time */ |
#define | OIS_NOWAIT (0) /* microseconds, not waiting */ |
#define | MAXCOUNTER (10000) /* ois message id */ |
#define | EOL ('\r') /* ois definition for the eol */ |
#define | OIS_FLAG_DEBUG (0x000f) |
#define | OIS_FLAG_ERROR (0x0100) |
#define | OIS_FLAG_NOBANNER (0x0200) |
#define | OIS_FLAG_MULTIPLE_CALL (0x0400) |
#define | OIS_FLAG_CLOSED (0x0800) |
Typedefs | |
typedef struct ois_listentry | ois_listentry |
Enumerations | |
enum | dcs_body_type { DCS_GSM_TEXT = 0, DCS_OCTET_DATA = 4 } |
Functions | |
static int | ois_open_listener (SMSCenter *smsc) |
static int | ois_open_sender (SMSCenter *smsc) |
static int | ois_open_receiver (SMSCenter *smsc) |
static void | ois_disconnect_all (SMSCenter *smsc) |
static void | ois_disconnect (SMSCenter *smsc) |
static int | ois_read_into_buffer (SMSCenter *smsc, long wait_usec) |
static int | ois_check_input (SMSCenter *smsc, long wait_usec) |
static int | ois_check_incoming (SMSCenter *smsc, long wait_usec) |
static void | ois_append_to_list (ois_listentry **head, Msg *msg) |
static int | ois_int_to_i4 (char *raw, int nbr) |
static int | ois_increment_counter (void) |
static int | ois_submit_sm_invoke (SMSCenter *smsc, const Msg *msg) |
static int | ois_encode_submit_sm_invoke (char *str, const Msg *msg) |
static int | ois_append_msisdn (char *raw, const Msg *msg) |
static int | ois_append_sme_reference_number (char *raw) |
static int | ois_append_priority (char *raw) |
static int | ois_append_originating_address (char *raw) |
static int | ois_append_validity_period (char *raw) |
static int | ois_append_data_coding_scheme (char *raw, const Msg *msg) |
static int | ois_append_status_report_request (char *raw) |
static int | ois_append_protocol_id (char *raw) |
static int | ois_append_submission_options (char *raw, const Msg *msg) |
static int | ois_append_sm_text (char *raw, const Msg *msg) |
static int | ois_submit_sm_result (SMSCenter *smsc, const char *buffer) |
static int | ois_decode_submit_sm_result (int *code, const char *str) |
static int | ois_deliver_sm_invoke (SMSCenter *smsc, const char *buffer) |
static int | ois_decode_deliver_sm_invoke (Msg *msg, const char *str) |
static int | ois_check_deliver_sm_invoke (const char *str) |
static int | ois_adjust_destination_address (Msg *msg, const char *raw) |
static int | ois_ignore_smsc_reference_number (const char *raw) |
static int | ois_adjust_originating_address (Msg *msg, const char *raw) |
static int | ois_adjust_data_coding_scheme (Msg *msg, const char *raw) |
static int | ois_ignore_protocol_id (const char *raw) |
static int | ois_adjust_additional_information (Msg *msg, const char *raw) |
static int | ois_adjust_sm_text (Msg *msg, const char *raw) |
static int | ois_ignore_time (const char *raw) |
static int | ois_deliver_sm_result (SMSCenter *smsc, int result, const char *str) |
static int | ois_encode_deliver_sm_result (char *str, int result) |
static int | ois_expand_gsm7 (char *raw8, const char *raw7, int len) |
static int | ois_expand_gsm7_to_bits (char *bits, const char *raw7, int len) |
static char | ois_expand_gsm7_from_bits (const char *bits, int pos) |
static int | ois_convert_to_ia5 (char *str, const char *raw, int len) |
static int | ois_convert_from_ia5 (char *raw, const char *str) |
static int | ois_convert_to_iso88591 (char *raw, int len) |
static int | ois_extract_msg_from_buffer (char *str, SMSCenter *smsc) |
static int | ois_extract_line_from_buffer (char *str, SMSCenter *smsc) |
static void | ois_swap_buffering (SMSCenter *smsc) |
static const char * | ois_debug_str (const char *raw, int len) |
SMSCenter * | ois_open (int receiveport, const char *hostname, int port, int debug_level) |
int | ois_close (SMSCenter *smsc) |
int | ois_reopen (SMSCenter *smsc) |
int | ois_pending_smsmessage (SMSCenter *smsc) |
int | ois_submit_msg (SMSCenter *smsc, const Msg *msg) |
int | ois_receive_msg (SMSCenter *smsc, Msg **msg) |
void | ois_delete_queue (SMSCenter *smsc) |
Variables | |
int | ois_debug_level = 0 |
static int | ois_counter = 0 |
#define BUFLEN (511) /* sure enough for ois messages */ |
Definition at line 147 of file smsc_ois.c.
Referenced by ois_adjust_sm_text(), ois_check_deliver_sm_invoke(), ois_check_input(), ois_debug_str(), ois_decode_deliver_sm_invoke(), ois_decode_submit_sm_result(), ois_deliver_sm_result(), ois_encode_submit_sm_invoke(), ois_expand_gsm7(), ois_extract_msg_from_buffer(), ois_open_sender(), and ois_submit_sm_invoke().
#define EOL ('\r') /* ois definition for the eol */ |
Definition at line 153 of file smsc_ois.c.
Referenced by ois_check_deliver_sm_invoke(), ois_decode_deliver_sm_invoke(), ois_decode_submit_sm_result(), ois_deliver_sm_result(), ois_extract_msg_from_buffer(), and ois_submit_sm_invoke().
#define IOTRACE | ( | x, | |
s, | |||
l | |||
) | SAY3(1,"%s [%s]",x,ois_debug_str(s,l)) |
Definition at line 144 of file smsc_ois.c.
Referenced by ois_adjust_sm_text(), ois_append_sm_text(), ois_check_input(), ois_deliver_sm_result(), and ois_submit_sm_invoke().
#define MAXCOUNTER (10000) /* ois message id */ |
Definition at line 152 of file smsc_ois.c.
Referenced by ois_increment_counter().
#define OIS_FLAG_CLOSED (0x0800) |
Definition at line 164 of file smsc_ois.c.
Referenced by ois_read_into_buffer().
#define OIS_FLAG_DEBUG (0x000f) |
Definition at line 160 of file smsc_ois.c.
Referenced by ois_close(), ois_delete_queue(), ois_open(), ois_pending_smsmessage(), ois_receive_msg(), ois_reopen(), and ois_submit_msg().
#define OIS_FLAG_ERROR (0x0100) |
Definition at line 161 of file smsc_ois.c.
Referenced by ois_check_incoming(), ois_check_input(), ois_open_listener(), ois_open_receiver(), and ois_receive_msg().
#define OIS_FLAG_MULTIPLE_CALL (0x0400) |
Definition at line 163 of file smsc_ois.c.
Referenced by ois_check_incoming().
#define OIS_FLAG_NOBANNER (0x0200) |
Definition at line 162 of file smsc_ois.c.
Referenced by ois_open_listener(), and ois_open_sender().
#define OIS_MESSAGE_WAITTIME (30) /* seconds, until closing idle connection */ |
Definition at line 149 of file smsc_ois.c.
Referenced by ois_check_input().
#define OIS_NOWAIT (0) /* microseconds, not waiting */ |
Definition at line 151 of file smsc_ois.c.
Referenced by ois_pending_smsmessage().
#define OIS_OPEN_WAITTIME (15) /* seconds, waiting for banners */ |
Definition at line 148 of file smsc_ois.c.
Referenced by ois_open_sender().
#define OIS_WAITTIME (999999) /* microseconds, waiting for banners at a time */ |
Definition at line 150 of file smsc_ois.c.
Referenced by ois_open_sender().
#define SAY | ( | d, | |
s | |||
) | { if (d<=ois_debug_level) debug("bb.sms.ois",0,s); } |
Definition at line 141 of file smsc_ois.c.
Referenced by ois_adjust_additional_information(), ois_adjust_data_coding_scheme(), ois_adjust_destination_address(), ois_adjust_originating_address(), ois_adjust_sm_text(), ois_append_data_coding_scheme(), ois_append_msisdn(), ois_append_originating_address(), ois_append_priority(), ois_append_protocol_id(), ois_append_sm_text(), ois_append_sme_reference_number(), ois_append_status_report_request(), ois_append_submission_options(), ois_append_to_list(), ois_append_validity_period(), ois_check_deliver_sm_invoke(), ois_check_incoming(), ois_check_input(), ois_close(), ois_convert_from_ia5(), ois_decode_deliver_sm_invoke(), ois_decode_submit_sm_result(), ois_delete_queue(), ois_deliver_sm_invoke(), ois_deliver_sm_result(), ois_disconnect_all(), ois_encode_deliver_sm_result(), ois_encode_submit_sm_invoke(), ois_expand_gsm7_to_bits(), ois_ignore_protocol_id(), ois_ignore_smsc_reference_number(), ois_ignore_time(), ois_increment_counter(), ois_int_to_i4(), ois_open(), ois_open_listener(), ois_open_receiver(), ois_open_sender(), ois_pending_smsmessage(), ois_read_into_buffer(), ois_receive_msg(), ois_reopen(), ois_submit_msg(), ois_submit_sm_invoke(), ois_submit_sm_result(), and ois_swap_buffering().
#define SAY2 | ( | d, | |
s, | |||
t | |||
) | { if (d<=ois_debug_level) debug("bb.sms.ois",0,s,t); } |
Definition at line 142 of file smsc_ois.c.
Referenced by ois_convert_from_ia5(), ois_convert_to_ia5(), ois_convert_to_iso88591(), ois_disconnect(), ois_disconnect_all(), ois_expand_gsm7(), ois_expand_gsm7_from_bits(), ois_extract_line_from_buffer(), ois_extract_msg_from_buffer(), ois_open_listener(), ois_open_receiver(), and ois_open_sender().
#define SAY3 | ( | d, | |
s, | |||
t, | |||
u | |||
) | { if (d<=ois_debug_level) debug("bb.sms.ois",0,s,t,u); } |
Definition at line 143 of file smsc_ois.c.
typedef struct ois_listentry ois_listentry |
enum dcs_body_type |
Enumerator | |
---|---|
DCS_GSM_TEXT | |
DCS_OCTET_DATA |
Definition at line 128 of file smsc_ois.c.
|
static |
|
static |
|
static |
Definition at line 1191 of file smsc_ois.c.
References msg, octstr_create_from_data, and SAY.
Referenced by ois_decode_deliver_sm_invoke().
|
static |
Definition at line 1220 of file smsc_ois.c.
References msg, octstr_create_from_data, and SAY.
Referenced by ois_decode_deliver_sm_invoke().
|
static |
Definition at line 1262 of file smsc_ois.c.
References BUFLEN, DC_7BIT, DC_8BIT, IOTRACE, MC_UNDEF, msg, octstr_create, octstr_create_from_data, octstr_get_cstr, octstr_len(), ois_convert_to_iso88591(), ois_expand_gsm7(), and SAY.
Referenced by ois_decode_deliver_sm_invoke().
|
static |
Definition at line 944 of file smsc_ois.c.
References DC_8BIT, DCS_OCTET_DATA, msg, and SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 894 of file smsc_ois.c.
References msg, octstr_get_cstr, octstr_len(), and SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 924 of file smsc_ois.c.
References SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 916 of file smsc_ois.c.
References SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 964 of file smsc_ois.c.
References SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 988 of file smsc_ois.c.
References charset_utf8_to_gsm(), DC_7BIT, DC_UNDEF, IOTRACE, msg, octstr_get_cstr, octstr_len(), and SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 906 of file smsc_ois.c.
References ois_counter, ois_int_to_i4(), and SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 956 of file smsc_ois.c.
References SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 972 of file smsc_ois.c.
References DC_8BIT, msg, octstr_len(), and SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 764 of file smsc_ois.c.
References msg, ois_listentry::msg, ois_listentry::next, and SAY.
Referenced by ois_deliver_sm_invoke().
|
static |
Definition at line 935 of file smsc_ois.c.
References SAY.
Referenced by ois_encode_submit_sm_invoke().
|
static |
Definition at line 1153 of file smsc_ois.c.
References BUFLEN, EOL, error(), and SAY.
Referenced by ois_decode_deliver_sm_invoke().
|
static |
Definition at line 721 of file smsc_ois.c.
References debug(), error(), OIS_FLAG_ERROR, OIS_FLAG_MULTIPLE_CALL, SMSCenter::ois_flags, SMSCenter::ois_listening_socket, ois_open_receiver(), SAY, and SMSCenter::socket.
Referenced by ois_pending_smsmessage().
|
static |
Definition at line 644 of file smsc_ois.c.
References BUFLEN, debug(), error(), IOTRACE, SMSCenter::ois_ack_debt, SMSCenter::ois_alive, ois_debug_str(), ois_deliver_sm_invoke(), ois_deliver_sm_result(), ois_disconnect(), ois_extract_msg_from_buffer(), OIS_FLAG_ERROR, SMSCenter::ois_flags, OIS_MESSAGE_WAITTIME, ois_read_into_buffer(), SMSCenter::ois_received_mo, ois_submit_sm_result(), SAY, SMSCenter::socket, and warning().
Referenced by ois_pending_smsmessage().
int ois_close | ( | SMSCenter * | smsc | ) |
Definition at line 263 of file smsc_ois.c.
References SMSCenter::buflen, ois_debug_level, ois_disconnect_all(), OIS_FLAG_DEBUG, SMSCenter::ois_flags, ois_swap_buffering(), SAY, SMSC_TYPE_OIS, smscenter_remove_from_buffer(), SMSCenter::type, and warning().
Referenced by ois_open_listener(), ois_reopen(), and smsc_close().
|
static |
Definition at line 1483 of file smsc_ois.c.
References ois_debug_str(), SAY, and SAY2.
Referenced by ois_decode_deliver_sm_invoke(), and ois_decode_submit_sm_result().
|
static |
Definition at line 1444 of file smsc_ois.c.
References ois_debug_str(), and SAY2.
Referenced by ois_encode_deliver_sm_result(), and ois_encode_submit_sm_invoke().
|
static |
Definition at line 1537 of file smsc_ois.c.
References ois_debug_str(), and SAY2.
Referenced by ois_adjust_sm_text().
|
static |
Definition at line 1709 of file smsc_ois.c.
References BUFLEN.
Referenced by ois_check_input(), ois_convert_from_ia5(), ois_convert_to_ia5(), ois_convert_to_iso88591(), ois_expand_gsm7(), and ois_open_sender().
|
static |
Definition at line 1099 of file smsc_ois.c.
References BUFLEN, EOL, error(), msg, ois_adjust_additional_information(), ois_adjust_data_coding_scheme(), ois_adjust_destination_address(), ois_adjust_originating_address(), ois_adjust_sm_text(), ois_check_deliver_sm_invoke(), ois_convert_from_ia5(), ois_ignore_protocol_id(), ois_ignore_smsc_reference_number(), ois_ignore_time(), and SAY.
Referenced by ois_deliver_sm_invoke().
|
static |
Definition at line 1043 of file smsc_ois.c.
References BUFLEN, code, EOL, error(), ois_convert_from_ia5(), and SAY.
Referenced by ois_submit_sm_result().
void ois_delete_queue | ( | SMSCenter * | smsc | ) |
Definition at line 423 of file smsc_ois.c.
References msg, ois_debug_level, OIS_FLAG_DEBUG, SMSCenter::ois_flags, ois_receive_msg(), and SAY.
Referenced by smscenter_destruct().
|
static |
Definition at line 1073 of file smsc_ois.c.
References error(), mo, msg, msg_create, msg_destroy(), ois_append_to_list(), ois_decode_deliver_sm_invoke(), SMSCenter::ois_received_mo, and SAY.
Referenced by ois_check_input().
|
static |
Definition at line 1339 of file smsc_ois.c.
References BUFLEN, EOL, error(), IOTRACE, ois_encode_deliver_sm_result(), SAY, SMSCenter::socket, and write_to_socket().
Referenced by ois_check_input().
|
static |
Definition at line 595 of file smsc_ois.c.
References SAY2, SMSCenter::socket, and warning().
Referenced by ois_check_input(), ois_disconnect_all(), ois_open_sender(), ois_read_into_buffer(), and ois_submit_msg().
|
static |
Definition at line 574 of file smsc_ois.c.
References ois_disconnect(), SMSCenter::ois_listening_socket, ois_swap_buffering(), SAY, SAY2, and warning().
Referenced by ois_close().
|
static |
Definition at line 1373 of file smsc_ois.c.
References ois_convert_to_ia5(), and SAY.
Referenced by ois_deliver_sm_result().
|
static |
Definition at line 868 of file smsc_ois.c.
References BUFLEN, msg, ois_append_data_coding_scheme(), ois_append_msisdn(), ois_append_originating_address(), ois_append_priority(), ois_append_protocol_id(), ois_append_sm_text(), ois_append_sme_reference_number(), ois_append_status_report_request(), ois_append_submission_options(), ois_append_validity_period(), ois_convert_to_ia5(), and SAY.
Referenced by ois_submit_sm_invoke().
|
static |
Definition at line 1387 of file smsc_ois.c.
References BUFLEN, ois_debug_str(), ois_expand_gsm7_from_bits(), ois_expand_gsm7_to_bits(), and SAY2.
Referenced by ois_adjust_sm_text().
|
static |
|
static |
|
static |
Definition at line 1641 of file smsc_ois.c.
References SMSCenter::buffer, SMSCenter::buflen, SAY2, and smscenter_remove_from_buffer().
Referenced by ois_open_sender().
|
static |
Definition at line 1577 of file smsc_ois.c.
References SMSCenter::buffer, BUFLEN, SMSCenter::buflen, EOL, error(), SAY2, and smscenter_remove_from_buffer().
Referenced by ois_check_input().
|
static |
Definition at line 1244 of file smsc_ois.c.
References SAY.
Referenced by ois_decode_deliver_sm_invoke().
|
static |
Definition at line 1203 of file smsc_ois.c.
References SAY.
Referenced by ois_decode_deliver_sm_invoke().
|
static |
Definition at line 1326 of file smsc_ois.c.
References SAY.
Referenced by ois_decode_deliver_sm_invoke().
|
static |
Definition at line 799 of file smsc_ois.c.
References MAXCOUNTER, ois_counter, and SAY.
Referenced by ois_submit_sm_invoke().
|
static |
Definition at line 786 of file smsc_ois.c.
References SAY.
Referenced by ois_append_sme_reference_number().
SMSCenter* ois_open | ( | int | receiveport, |
const char * | hostname, | ||
int | port, | ||
int | debug_level | ||
) |
Definition at line 222 of file smsc_ois.c.
References error(), SMSCenter::hostname, hostname, SMSCenter::name, ois_debug_level, OIS_FLAG_DEBUG, SMSCenter::ois_flags, ois_open_listener(), port, SMSCenter::port, SMSCenter::receive_port, SAY, SMSC_TYPE_OIS, smscenter_construct(), smscenter_destruct(), and SMSCenter::type.
Referenced by smsc_open().
|
static |
Definition at line 448 of file smsc_ois.c.
References error(), make_server_socket(), SMSCenter::ois_alive, SMSCenter::ois_alive2, ois_close(), OIS_FLAG_ERROR, OIS_FLAG_NOBANNER, SMSCenter::ois_flags, SMSCenter::ois_listening_socket, SMSCenter::receive_port, SAY, SAY2, and socket_set_blocking().
Referenced by ois_open(), and ois_reopen().
|
static |
Definition at line 539 of file smsc_ois.c.
References debug(), error(), gw_netaddr_to_octstr(), octstr_destroy(), octstr_get_cstr, SMSCenter::ois_alive, OIS_FLAG_ERROR, SMSCenter::ois_flags, SMSCenter::ois_listening_socket, SAY, SAY2, and SMSCenter::socket.
Referenced by ois_check_incoming().
|
static |
Definition at line 475 of file smsc_ois.c.
References SMSCenter::buffer, BUFLEN, SMSCenter::buflen, debug(), error(), SMSCenter::hostname, SMSCenter::ois_ack_debt, SMSCenter::ois_alive, ois_debug_str(), ois_disconnect(), ois_extract_line_from_buffer(), OIS_FLAG_NOBANNER, SMSCenter::ois_flags, OIS_OPEN_WAITTIME, ois_read_into_buffer(), OIS_WAITTIME, SMSCenter::port, SAY, SAY2, SMSCenter::socket, and tcpip_connect_to_server().
Referenced by ois_submit_msg().
int ois_pending_smsmessage | ( | SMSCenter * | smsc | ) |
Definition at line 318 of file smsc_ois.c.
References SMSCenter::ois_ack_debt, ois_check_incoming(), ois_check_input(), ois_debug_level, OIS_FLAG_DEBUG, SMSCenter::ois_flags, OIS_NOWAIT, SMSCenter::ois_socket, ois_swap_buffering(), SAY, SMSCenter::socket, and warning().
Referenced by smscenter_pending_smsmessage().
|
static |
Definition at line 609 of file smsc_ois.c.
References SMSCenter::buflen, debug(), SMSCenter::ois_alive, ois_disconnect(), OIS_FLAG_CLOSED, SMSCenter::ois_flags, read_available(), SAY, smscenter_read_into_buffer(), and SMSCenter::socket.
Referenced by ois_check_input(), and ois_open_sender().
Definition at line 396 of file smsc_ois.c.
References msg, ois_listentry::msg, ois_listentry::next, ois_debug_level, OIS_FLAG_DEBUG, OIS_FLAG_ERROR, SMSCenter::ois_flags, SMSCenter::ois_received_mo, and SAY.
Referenced by ois_delete_queue(), and smscenter_receive_msg().
int ois_reopen | ( | SMSCenter * | smsc | ) |
Definition at line 287 of file smsc_ois.c.
References error(), ois_close(), ois_debug_level, OIS_FLAG_DEBUG, SMSCenter::ois_flags, ois_open_listener(), SAY, SMSC_TYPE_OIS, and SMSCenter::type.
Referenced by smsc_reopen().
Definition at line 346 of file smsc_ois.c.
References error(), msg, SMSCenter::ois_ack_debt, SMSCenter::ois_alive, ois_debug_level, ois_disconnect(), OIS_FLAG_DEBUG, SMSCenter::ois_flags, ois_open_sender(), ois_submit_sm_invoke(), ois_swap_buffering(), SAY, SMSCenter::socket, and warning().
Referenced by smscenter_submit_msg().
Definition at line 808 of file smsc_ois.c.
References BUFLEN, EOL, error(), IOTRACE, msg, ois_counter, ois_encode_submit_sm_invoke(), ois_increment_counter(), SAY, SMSCenter::socket, and write_to_socket().
Referenced by ois_submit_msg().
|
static |
Definition at line 1024 of file smsc_ois.c.
References error(), ois_decode_submit_sm_result(), and SAY.
Referenced by ois_check_input().
|
static |
Definition at line 1668 of file smsc_ois.c.
References SMSCenter::buffer, SMSCenter::buflen, SMSCenter::bufsize, SMSCenter::ois_alive, SMSCenter::ois_alive2, SMSCenter::ois_buffer, SMSCenter::ois_buflen, SMSCenter::ois_bufsize, SMSCenter::ois_socket, SAY, and SMSCenter::socket.
Referenced by ois_close(), ois_disconnect_all(), ois_pending_smsmessage(), and ois_submit_msg().
|
static |
Definition at line 166 of file smsc_ois.c.
Referenced by ois_append_sme_reference_number(), ois_increment_counter(), and ois_submit_sm_invoke().
int ois_debug_level = 0 |
Definition at line 136 of file smsc_ois.c.
Referenced by ois_close(), ois_delete_queue(), ois_open(), ois_pending_smsmessage(), ois_receive_msg(), ois_reopen(), and ois_submit_msg().