Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <ctype.h>
#include "gwlib/gwlib.h"
#include "msg.h"
#include "sms.h"
#include "dlr.h"
#include "bb.h"
#include "shared.h"
#include "heartbeat.h"
Go to the source code of this file.
Functions | |
static void | write_pid_file (void) |
static void | identify_to_bearerbox (void) |
static void | read_messages_from_bearerbox (void *arg) |
static int | send_message (Msg *msg) |
static void | help (void) |
static void | init_batch (Octstr *cfilename, Octstr *rfilename) |
static int | gw_ismsisdnchar (int c) |
static unsigned long | run_batch (void) |
int | main (int argc, char **argv) |
Variables | |
static char * | pid_file |
static Octstr * | smsbox_id = NULL |
static Octstr * | content = NULL |
static List * | lines = NULL |
static Octstr * | bb_host |
static long | bb_port |
static int | bb_ssl |
static Counter * | counter |
static Octstr * | service = NULL |
static Octstr * | account = NULL |
static Octstr * | from = NULL |
static int | dlr_mask = 0 |
static Octstr * | dlr_url = NULL |
static Octstr * | smsc_id = NULL |
static double | delay = 0 |
static int | no_smsbox_id = 0 |
static Octstr * | meta_data = NULL |
static int | coding = DC_7BIT |
static Octstr * | charset = NULL |
static Octstr * | payload = NULL |
static int | msg_log = 0 |
|
static |
Definition at line 348 of file mtbatch.c.
Referenced by run_batch().
|
static |
|
static |
Definition at line 127 of file mtbatch.c.
References cmd_identify, msg, msg_create, octstr_duplicate, smsbox_id, and write_to_bearerbox().
Referenced by main().
Definition at line 271 of file mtbatch.c.
References charset, charset_convert(), coding, counter, counter_create(), DC_7BIT, DC_8BIT, DC_UCS2, error(), GW_INFO, gwlist_len(), info(), lines, octstr_dump, octstr_duplicate, octstr_get_cstr, octstr_imm(), octstr_read_file(), octstr_split(), octstr_strip_crlfs(), panic, and payload.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 434 of file mtbatch.c.
References account, bb_host, bb_port, bb_ssl, charset, coding, connect_to_bearerbox(), counter, counter_destroy(), counter_value(), delay, DLR_IS_ENABLED, dlr_mask, dlr_url, error(), from, getopt(), gwlib_init(), gwlib_shutdown(), gwlist_destroy(), gwthread_create, gwthread_join_all(), gwthread_sleep(), help(), identify_to_bearerbox(), init_batch(), lines, log_set_output_level(), msg_log, no_smsbox_id, octstr_create, octstr_destroy(), octstr_destroy_item(), optarg, optind, panic, payload, read_messages_from_bearerbox(), report_versions(), run_batch(), service, shutting_down, smsbox_id, smsc_id, and write_pid_file().
|
static |
Definition at line 143 of file mtbatch.c.
References ack_buffered, ack_failed, ack_failed_tmp, ack_success, cmd_restart, cmd_shutdown, counter, counter_increase(), debug(), info(), msg, msg_destroy(), msg_dump(), msg_log, read_from_bearerbox(), shutting_down, start, and warning().
Referenced by main().
|
static |
Definition at line 353 of file mtbatch.c.
References account, coding, debug(), dlr_mask, dlr_url, error(), from, gw_ismsisdnchar(), gwlist_consume(), gwlist_destroy(), gwlist_len(), info(), lines, MAX_SMS_OCTETS, msg, msg_create, msg_destroy(), msg_destroy_item(), msg_duplicate(), mt_push, no_smsbox_id, octstr_check_range(), octstr_create, octstr_destroy(), octstr_duplicate, octstr_get_cstr, octstr_len(), payload, send_message(), service, sms_split(), smsbox_id, and smsc_id.
Referenced by main().
|
static |
Definition at line 213 of file mtbatch.c.
References debug(), delay, deliver_to_bearerbox(), gw_assert(), gwthread_sleep(), msg, msg_dump(), and msg_log.
Referenced by run_batch().
|
static |
|
static |
Definition at line 94 of file mtbatch.c.
Referenced by check_allowed_translation(), fill_message(), find_default_translation(), generic_receive_sms(), get_x_kannel_from_headers(), get_x_kannel_from_xml(), kannel_receive_sms(), main(), run_batch(), smsbox_req_handle(), smsbox_req_sendota(), smsbox_req_sendsms(), smsbox_sendsms_post(), url_result_thread(), and xidris_receive_sms().
|
static |
Definition at line 103 of file mtbatch.c.
Referenced by init_batch(), and main().
|
static |
Definition at line 102 of file mtbatch.c.
Referenced by brunet_receive_sms(), fill_message(), get_x_kannel_from_headers(), get_x_kannel_from_xml(), init_batch(), kannel_receive_sms(), main(), run_batch(), sms_charset_processing(), smsbox_req_handle(), smsbox_req_sendsms(), smsbox_sendsms_post(), url_result_thread(), and xidris_receive_sms().
Definition at line 87 of file mtbatch.c.
Referenced by parse_ota_syncsettings(), post_content_create(), soap_fetch_xml_data(), soap_map_xml_data(), and ws_pragma_meta_body().
|
static |
Definition at line 92 of file mtbatch.c.
Referenced by init_batch(), main(), and read_messages_from_bearerbox().
|
static |
Definition at line 99 of file mtbatch.c.
Referenced by emi2_do_send(), httpsmsc_sender(), main(), main_connection_loop(), send_message(), and send_messages().
|
static |
Definition at line 96 of file mtbatch.c.
Referenced by main(), and run_batch().
|
static |
Definition at line 97 of file mtbatch.c.
Referenced by main(), and run_batch().
|
static |
Definition at line 95 of file mtbatch.c.
Referenced by brunet_receive_sms(), cgw_handle_op(), char_iso_to_sms(), char_sms_to_iso(), charset_to_utf8(), clickatell_receive_sms(), client(), delete_items_from_list(), fill_message(), generic_receive_sms(), get_x_kannel_from_headers(), get_x_kannel_from_xml(), http_append_headers(), internal_char_hex_to_gsm(), internal_char_hex_to_IA5(), internal_char_IA5_to_hex(), kannel_receive_sms(), line_scan_hex_GSM7(), line_scan_IA5_hex(), main(), octstr_binary_to_base64(), octstr_copy_real(), octstr_write_data(), ota_pack_message(), ota_tokenize_bookmarks(), ota_tokenize_settings(), parse_binary_to_emi(), parse_cimd_to_iso88591(), parse_emi_to_iso88591(), parse_iso88591_to_cimd(), parse_iso88591_to_emi(), run_batch(), server(), set_addr_tuple(), smsbox_req_handle(), smsbox_req_sendota(), smsbox_req_sendsms(), smsbox_sendota_post(), smsbox_sendsms_post(), url_result_thread(), X28_msg_pop(), and xidris_receive_sms().
|
static |
Definition at line 88 of file mtbatch.c.
Referenced by cfg_read(), expand_file(), init_batch(), main(), numhash_create(), octstr_binary_to_base64(), and run_batch().
Definition at line 101 of file mtbatch.c.
Referenced by fill_message(), generic_receive_sms(), smsbox_req_sendsms(), smsbox_sendsms_post(), and url_result_thread().
|
static |
Definition at line 105 of file mtbatch.c.
Referenced by main(), read_messages_from_bearerbox(), and send_message().
|
static |
Definition at line 100 of file mtbatch.c.
Referenced by main(), and run_batch().
|
static |
Definition at line 104 of file mtbatch.c.
Referenced by init_batch(), main(), and run_batch().
|
static |
Definition at line 85 of file mtbatch.c.
Referenced by write_pid_file().
|
static |
Definition at line 93 of file mtbatch.c.
Referenced by main(), and run_batch().
|
static |
Definition at line 86 of file mtbatch.c.
Referenced by identify_to_bearerbox(), main(), and run_batch().
|
static |
Definition at line 98 of file mtbatch.c.
Referenced by boxc_route_msg_to_smsc(), check_multipart(), create_session(), handle_pdu(), init_smsc_routes(), main(), make_unit_push_request(), run_batch(), set_smsc_id(), smpp_pdu_init(), smpp_tlv_add_constant(), smpp_tlv_get_by_name(), smpp_tlv_get_by_tag(), smsc_smpp_create(), and wap_push_ppg_pushuser_smsc_id_get().