#include "../../parser/msg_parser.h"#include "../../str.h"#include <termios.h>#include "../tm/tm_load.h"


Go to the source code of this file.
Data Structures | |
| struct | incame_sms |
| struct | modem |
| struct | network |
| struct | sms_msg |
Defines | |
| #define | CDS_REPORT 2 |
| #define | DATE_LEN TIME_LEN |
| #define | MAX_CHAR_BUF 128 |
| #define | MAX_CONFIG_PARAM 1024 |
| #define | MAX_MODEMS 5 |
| #define | MAX_NETWORKS 5 |
| #define | MAX_QUEUED_MESSAGES 100 |
| #define | MAX_SMS_LENGTH 160 |
| #define | MAX_SMS_PARTS 4 |
| #define | NO_REPORT 0 |
| #define | SMS_EDGE_PART "( / )" |
| #define | SMS_EDGE_PART_LEN (sizeof(SMS_EDGE_PART)-1) |
| #define | SMS_FOOTER "\r\n\r\n[Kamailio.ORG]" |
| #define | SMS_FOOTER_LEN (sizeof(SMS_FOOTER)-1) |
| #define | SMS_HDR_AF_ADDR " (if you reply DO NOT remove it)\r\n\r\n" |
| #define | SMS_HDR_AF_ADDR_LEN (sizeof(SMS_HDR_AF_ADDR)-1) |
| #define | SMS_HDR_BF_ADDR "From " |
| #define | SMS_HDR_BF_ADDR_LEN (sizeof(SMS_HDR_BF_ADDR)-1) |
| #define | SMS_REPORT 1 |
| #define | SMS_TRUNCATED "(truncated)" |
| #define | SMS_TRUNCATED_LEN (sizeof(SMS_TRUNCATED)-1) |
| #define | TIME_LEN 8 |
Functions | |
| void | modem_process (struct modem *) |
| int | push_on_network (struct sip_msg *, int) |
Variables | |
| str | domain |
| int | max_sms_parts |
| struct modem | modems [MAX_MODEMS] |
| int | net_pipes_in [MAX_NETWORKS] |
| struct network | networks [MAX_NETWORKS] |
| int | nr_of_modems |
| int | nr_of_networks |
| int * | queued_msgs |
| int | sms_report_type |
| struct tm_binds | tmb |
| int | use_contact |
| #define CDS_REPORT 2 |
| #define DATE_LEN TIME_LEN |
Definition at line 54 of file sms_funcs.h.
Referenced by modem_process(), send_sms_as_sip(), and split_type_2().
| #define MAX_CHAR_BUF 128 |
Definition at line 36 of file sms_funcs.h.
| #define MAX_CONFIG_PARAM 1024 |
Definition at line 37 of file sms_funcs.h.
| #define MAX_MODEMS 5 |
Definition at line 33 of file sms_funcs.h.
| #define MAX_NETWORKS 5 |
Definition at line 34 of file sms_funcs.h.
| #define MAX_QUEUED_MESSAGES 100 |
| #define MAX_SMS_LENGTH 160 |
| #define MAX_SMS_PARTS 4 |
Definition at line 39 of file sms_funcs.h.
| #define NO_REPORT 0 |
Definition at line 56 of file sms_funcs.h.
Referenced by global_init(), make_pdu(), modem_process(), putsms(), send_as_sms(), and sms_exit().
| #define SMS_EDGE_PART "( / )" |
| #define SMS_EDGE_PART_LEN (sizeof(SMS_EDGE_PART)-1) |
| #define SMS_FOOTER "\r\n\r\n[Kamailio.ORG]" |
| #define SMS_FOOTER_LEN (sizeof(SMS_FOOTER)-1) |
Definition at line 47 of file sms_funcs.h.
Referenced by push_on_network(), send_as_sms(), and split_text().
| #define SMS_HDR_AF_ADDR " (if you reply DO NOT remove it)\r\n\r\n" |
| #define SMS_HDR_AF_ADDR_LEN (sizeof(SMS_HDR_AF_ADDR)-1) |
Definition at line 45 of file sms_funcs.h.
Referenced by push_on_network(), send_as_sms(), and send_sms_as_sip().
| #define SMS_HDR_BF_ADDR "From " |
| #define SMS_HDR_BF_ADDR_LEN (sizeof(SMS_HDR_BF_ADDR)-1) |
Definition at line 43 of file sms_funcs.h.
Referenced by push_on_network(), send_as_sms(), and send_sms_as_sip().
| #define SMS_REPORT 1 |
Definition at line 57 of file sms_funcs.h.
| #define SMS_TRUNCATED "(truncated)" |
| #define SMS_TRUNCATED_LEN (sizeof(SMS_TRUNCATED)-1) |
| #define TIME_LEN 8 |
Definition at line 53 of file sms_funcs.h.
Referenced by modem_process(), send_sms_as_sip(), and split_type_2().
| void modem_process | ( | struct modem * | ) |
Definition at line 672 of file sms_funcs.c.
References incame_sms::ascii, check_cds_report(), check_memory(), check_sms_report(), check_timeout_in_report_queue(), counter, incame_sms::date, DATE_LEN, modem::device, getsms(), initmodem(), incame_sms::is_statusreport, _str::len, len, LM_DBG, LM_ERR, LM_WARN, modem::looping_interval, MAX_MEM, network::max_sms_per_call, incame_sms::name, network::name, modem::name, modem::net_list, networks, NO_REPORT, nr_of_networks, openmodem(), network::pipe_out, _str::s, send_as_sms(), send_sms_as_sip(), incame_sms::sender, set_gettime_function(), setmodemparams(), sms_report_type, sms_msg::text, incame_sms::time, TIME_LEN, sms_msg::to, USED_MEM, and incame_sms::userdatalength.
Referenced by sms_process().
| int push_on_network | ( | struct sip_msg * | , | |
| int | ||||
| ) |
Definition at line 105 of file sms_funcs.c.
References append_str, sip_msg::content_length, to_body::error, sip_msg::first_line, sms_msg::from, sip_msg::from, get_body(), get_content_length, get_to, HDR_TO_F, _str::len, len, LM_DBG, LM_ERR, MAX_QUEUED_MESSAGES, net_pipes_in, sip_msg::new_uri, parse_content_type_hdr(), parse_from_header(), parse_headers(), parse_uri(), hdr_field::parsed, queued_msgs, msg_start::request, _str::s, shm_free, shm_malloc(), SMS_FOOTER, SMS_FOOTER_LEN, SMS_HDR_AF_ADDR, SMS_HDR_AF_ADDR_LEN, SMS_HDR_BF_ADDR, SMS_HDR_BF_ADDR_LEN, SUBTYPE_CPIM, SUBTYPE_PLAIN, sms_msg::text, sms_msg::to, sip_msg::to, TYPE_MESSAGE, TYPE_TEXT, msg_start::u, to_body::uri, and sip_uri::user.
Referenced by w_sms_send_msg(), and w_sms_send_msg_to_net().
Definition at line 75 of file sms.c.
Referenced by add_from_db(), authorize(), check_user_blacklist(), cpl_invoke_script(), cr_load_user_carrier(), diameter_is_user_in(), do_script_action(), do_script_download(), do_send_message_server(), dp_apply_policy(), dp_can_connect(), get_domain(), get_rule_node(), get_user_group(), load_config(), msg_presentity_clean(), pdt_check_pd_node(), pdt_free_node(), pdt_get_domain(), pdt_print_mi_node(), pdt_print_node(), pres_htable_restore(), pv_authorize(), query_xcap_update(), refresh_watcher(), and send_sip_msg_request().
| int max_sms_parts |
| int net_pipes_in[MAX_NETWORKS] |
Definition at line 56 of file sms_funcs.c.
Referenced by fixup_sms_send_msg_to_net(), global_init(), modem_process(), and parse_config_lines().
| int nr_of_modems |
| int nr_of_networks |
Definition at line 58 of file sms_funcs.c.
Referenced by fixup_sms_send_msg_to_net(), global_init(), modem_process(), and parse_config_lines().
| int* queued_msgs |
Definition at line 76 of file sms.c.
Referenced by global_init(), push_on_network(), and sms_exit().
| int sms_report_type |
Definition at line 38 of file libsms_modem.c.
Referenced by global_init(), initmodem(), make_pdu(), modem_process(), put_command(), putsms(), send_as_sms(), and sms_exit().
| int use_contact |
1.5.6