41 .name = {
"Global headers", 13},
42 .priority = PJSIP_MOD_PRIORITY_APPLICATION,
91 pjsip_generic_string_hdr *hdr;
93 hdr = pjsip_msg_find_hdr_by_name(tdata->msg, pj_cstr(&name, iter->
name),
NULL);
121 if (!strcasecmp(iter->
name, to_remove)) {
#define AST_RWLIST_HEAD_DESTROY(head)
Destroys an rwlist head structure.
Asterisk main include file. File version handling, generic pbx functions.
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
#define ast_calloc_with_stringfields(n, type, size)
Allocate a structure with embedded stringfields in a single allocation.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
#define AST_RWLIST_HEAD_INIT(head)
Initializes an rwlist head structure.
#define AST_LIST_TRAVERSE_SAFE_END
Closes a safe loop traversal block.
int ast_sip_add_header(pjsip_tx_data *tdata, const char *name, const char *value)
Add a header to an outbound SIP message.
#define ast_strlen_zero(foo)
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
#define AST_STRING_FIELD(name)
Declare a string field.
#define AST_LIST_REMOVE_CURRENT(field)
Removes the current entry from a list during a traversal.
#define SCOPED_LOCK(varname, lock, lockfunc, unlockfunc)
Scoped Locks.
A set of macros to manage forward-linked lists.
int ast_sip_register_service(pjsip_module *module)
Register a SIP service in Asterisk.
#define AST_LIST_INSERT_TAIL(head, elm, field)
Appends a list entry to the tail of a list.
#define AST_LIST_TRAVERSE(head, var, field)
Loops over (traverses) the entries in a list.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
#define AST_RWLIST_REMOVE_HEAD
static int replace(struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t len)
void ast_sip_unregister_service(pjsip_module *module)
#define AST_LIST_TRAVERSE_SAFE_BEGIN(head, var, field)
Loops safely over (traverses) the entries in a list.
#define ast_string_field_free_memory(x)
free all memory - to be called before destroying the object
#define AST_RWLIST_HEAD(name, type)
Defines a structure to be used to hold a read/write list of specified type.
#define ast_string_field_set(x, field, data)
Set a field to a simple string value.