Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include "gwlib/gwlib.h"
#include "smscconn.h"
#include "smscconn_p.h"
#include "bb_smscconn_cb.h"
#include "msg.h"
#include "sms.h"
#include "dlr.h"
#include "urltrans.h"
#include "meta_data.h"
#include "../smsc_http_p.h"
Go to the source code of this file.
Data Structures | |
struct | fieldmap |
struct | generic_values |
Functions | |
static void | fieldmap_destroy (struct fieldmap *fieldmap) |
static struct fieldmap * | generic_get_field_map (CfgGroup *grp) |
static void | generic_receive_sms (SMSCConn *conn, HTTPClient *client, List *headers, Octstr *body, List *cgivars) |
static void | convert_charset (Msg *msg, Octstr *charset, Octstr **content_type) |
static int | generic_send_sms (SMSCConn *conn, Msg *sms) |
static void | generic_parse_reply (SMSCConn *conn, Msg *msg, int status, List *headers, Octstr *body) |
static int | generic_init (SMSCConn *conn, CfgGroup *cfg) |
static void | generic_destroy (SMSCConn *conn) |
Variables | |
struct smsc_http_fn_callbacks | smsc_http_generic_callback |
Definition at line 466 of file generic.c.
References charset, charset_convert(), content_type, DC_7BIT, DC_8BIT, DC_UCS2, error(), msg, octstr_format(), and octstr_get_cstr.
Referenced by generic_send_sms().
|
static |
Definition at line 152 of file generic.c.
References fieldmap::account, fieldmap::binfo, fieldmap::coding, fieldmap::deferred, fieldmap::dlr_err, fieldmap::dlr_mask, fieldmap::dlr_mid, fieldmap::dlr_url, fieldmap::flash, fieldmap::foreign_id, fieldmap::from, fieldmap::mclass, fieldmap::message_sent, fieldmap::meta_data, fieldmap::mwi, octstr_destroy(), fieldmap::password, fieldmap::service, fieldmap::text, fieldmap::to, fieldmap::udh, fieldmap::username, and fieldmap::validity.
Referenced by generic_destroy().
|
static |
Definition at line 666 of file generic.c.
References conndata::data, smscconn::data, debug(), fieldmap_destroy(), generic_values::generic_foreign_id_regex, generic_values::map, generic_values::permfail_regex, generic_values::success_regex, and generic_values::tempfail_regex.
Definition at line 185 of file generic.c.
References fieldmap::account, fieldmap::binfo, cfg_get, cfg_get_integer(), fieldmap::coding, fieldmap::deferred, fieldmap::dlr_err, fieldmap::dlr_mask, fieldmap::dlr_mid, fieldmap::dlr_url, fieldmap::flash, fieldmap::foreign_id, fieldmap::from, gw_assert(), HTTP_ACCEPTED, fieldmap::mclass, fieldmap::message_sent, fieldmap::meta_data, fieldmap::mwi, octstr_create, octstr_imm(), fieldmap::password, fieldmap::service, fieldmap::status_error, fieldmap::status_sent, fieldmap::text, fieldmap::to, fieldmap::udh, fieldmap::username, and fieldmap::validity.
Referenced by generic_init().
Definition at line 613 of file generic.c.
References cfg, cfg_get, conndata::data, smscconn::data, debug(), error(), generic_values::generic_foreign_id_regex, generic_get_field_map(), smscconn::id, generic_values::map, octstr_destroy(), octstr_get_cstr, octstr_imm(), octstr_search_char(), panic, generic_values::permfail_regex, generic_values::success_regex, generic_values::tempfail_regex, and warning().
|
static |
Definition at line 547 of file generic.c.
References bb_smscconn_send_failed(), bb_smscconn_sent(), conndata::data, smscconn::data, debug(), dlr_add(), DLR_IS_ENABLED_DEVICE, error(), generic_values::generic_foreign_id_regex, smscconn::id, msg, octstr_copy, octstr_create, octstr_destroy(), octstr_dump, octstr_duplicate, octstr_get_cstr, generic_values::permfail_regex, SMSCCONN_FAILED_MALFORMED, SMSCCONN_FAILED_REJECTED, SMSCCONN_FAILED_TEMPORARILY, generic_values::success_regex, generic_values::tempfail_regex, UUID_STR_LEN, uuid_unparse(), and warning().
|
static |
Definition at line 270 of file generic.c.
References account, fieldmap::account, conndata::alt_charset, bb_smscconn_receive(), fieldmap::binfo, charset, client(), fieldmap::coding, conndata::data, smscconn::data, debug(), fieldmap::deferred, fieldmap::dlr_err, dlr_find(), fieldmap::dlr_mask, fieldmap::dlr_mid, DLR_UNDEFINED, error(), fieldmap::flash, from, fieldmap::from, gwlist_create, http_cgi_variable(), http_destroy_headers(), http_header_add(), http_header_get_content_type(), http_send_reply(), smscconn::id, generic_values::map, MAX_SMS_OCTETS, fieldmap::mclass, fieldmap::message_sent, meta_data, fieldmap::meta_data, meta_data_set_value(), METADATA_DLR_GROUP, METADATA_DLR_GROUP_ERRORCODE, msg, msg_create, msg_destroy(), msg_duplicate(), fieldmap::mwi, octstr_case_compare(), octstr_compare(), octstr_create, octstr_destroy(), octstr_duplicate, octstr_get_char(), octstr_get_cstr, octstr_imm(), octstr_len(), parse_cgivars(), conndata::password, fieldmap::password, report_mo, sms_charset_processing(), SMS_PARAM_UNDEFINED, fieldmap::status_error, fieldmap::status_sent, fieldmap::text, text, fieldmap::to, type, fieldmap::udh, urltrans_fill_escape_codes(), conndata::use_post, conndata::username, fieldmap::username, fieldmap::validity, and warning().
Definition at line 497 of file generic.c.
References conndata::alt_charset, content_type, convert_charset(), smscconn::data, debug(), gwlist_create, HTTPURLParse::host, http_destroy_headers(), http_header_add(), HTTP_METHOD_GET, HTTP_METHOD_POST, conndata::http_ref, http_start_request(), http_urlparse_destroy(), smscconn::id, octstr_destroy(), octstr_format(), octstr_get_cstr, parse_url(), HTTPURLParse::path, HTTPURLParse::port, HTTPURLParse::query, HTTPURLParse::scheme, conndata::send_url, url, urltrans_fill_escape_codes(), and conndata::use_post.
struct smsc_http_fn_callbacks smsc_http_generic_callback |