Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Macros | |
#define | METADATA_DLR_GROUP "dlr" |
#define | METADATA_DLR_GROUP_DONETIME "donetime" |
#define | METADATA_DLR_GROUP_SUBMITTIME "submittime" |
#define | METADATA_DLR_GROUP_ERRORCODE "errorcode" |
#define | METADATA_ORIG_MSG_GROUP "orig_msg" |
#define | METADATA_ORIG_MSG_GROUP_DLR_MASK "dlr_mask" |
#define | METADATA_SMPP_GROUP "smpp" |
Functions | |
Dict * | meta_data_get_values (const Octstr *data, const char *group) |
int | meta_data_set_values (Octstr *data, const Dict *dict, const char *group, int replace) |
int | meta_data_set_value (Octstr *data, const char *group, const Octstr *key, const Octstr *value, int replace) |
Octstr * | meta_data_get_value (Octstr *data, const char *group, const Octstr *key) |
int | meta_data_remove_value (Octstr *data, const char *group, const Octstr *key) |
Octstr * | meta_data_merge (const Octstr *data, const Octstr *new_data, int replace) |
#define METADATA_DLR_GROUP "dlr" |
Definition at line 68 of file meta_data.h.
Referenced by generic_receive_sms(), and kannel_receive_sms().
#define METADATA_DLR_GROUP_DONETIME "donetime" |
Definition at line 69 of file meta_data.h.
#define METADATA_DLR_GROUP_ERRORCODE "errorcode" |
Definition at line 71 of file meta_data.h.
Referenced by generic_receive_sms(), and kannel_receive_sms().
#define METADATA_DLR_GROUP_SUBMITTIME "submittime" |
Definition at line 70 of file meta_data.h.
#define METADATA_ORIG_MSG_GROUP "orig_msg" |
Definition at line 73 of file meta_data.h.
Referenced by create_dlr_from_msg(), and dlr_find().
#define METADATA_ORIG_MSG_GROUP_DLR_MASK "dlr_mask" |
Definition at line 74 of file meta_data.h.
Referenced by create_dlr_from_msg(), and dlr_find().
#define METADATA_SMPP_GROUP "smpp" |
Definition at line 76 of file meta_data.h.
Referenced by msg_to_pdu().
Get value for a given group and key.
Definition at line 368 of file meta_data.c.
References dict_remove(), meta_data::group, meta_data_destroy(), meta_data_unpack(), meta_data::next, octstr_str_case_compare(), and meta_data::values.
Referenced by msg_to_pdu(), and urltrans_fill_escape_codes().
Get Dictionary with all values for this group.
Definition at line 248 of file meta_data.c.
References meta_data::group, meta_data_destroy(), meta_data_unpack(), meta_data::next, octstr_str_case_compare(), and meta_data::values.
Referenced by msg_to_pdu().
Merge two meta data strings into one
Definition at line 422 of file meta_data.c.
References dict_create(), dict_get(), dict_keys(), dict_put(), dict_put_once(), error(), meta_data::group, gwlist_consume(), gwlist_destroy(), meta_data_create(), meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_compare(), octstr_create, octstr_destroy(), octstr_destroy_item(), octstr_duplicate, octstr_get_cstr, octstr_len(), and meta_data::values.
Remove value for a given group and key.
Definition at line 392 of file meta_data.c.
References dict_put(), meta_data::group, meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_str_case_compare(), and meta_data::values.
int meta_data_set_value | ( | Octstr * | data, |
const char * | group, | ||
const Octstr * | key, | ||
const Octstr * | value, | ||
int | replace | ||
) |
Set or replace value for a given group and key.
Definition at line 324 of file meta_data.c.
References dict_create(), dict_get(), dict_put(), meta_data::group, meta_data_create(), meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_create, octstr_destroy_item(), octstr_duplicate, octstr_str_case_compare(), and meta_data::values.
Referenced by create_dlr_from_msg(), dlr_find(), generic_receive_sms(), handle_dlr(), and kannel_receive_sms().
Replace Dictionary for the given group.
Definition at line 273 of file meta_data.c.
References dict_destroy(), dict_get(), dict_keys(), dict_put_once(), meta_data::group, gwlist_destroy(), gwlist_extract_first(), meta_data_create(), meta_data_destroy(), meta_data_pack(), meta_data_unpack(), meta_data::next, octstr_create, octstr_destroy(), octstr_destroy_item(), octstr_duplicate, octstr_str_case_compare(), and meta_data::values.
Referenced by data_sm_to_msg(), handle_pdu(), and pdu_to_msg().