[asterisk-users] SIP_HEADER() read-only

Vincent Regnard devel at regnard.org
Thu Aug 3 03:29:13 MST 2006



There is presently no .write member in the structure declaration for 
this function in channels/app_sip.c:

static struct ast_custom_function sip_header_function = {
         .name = "SIP_HEADER",
         .synopsis = "Gets or sets the specified SIP header",
         .syntax = "SIP_HEADER(<name>)",
         .read = func_header_read,
};

So I imagine the answer to my question is yes SIP_HEADER is a read-only 
function. There is no implementation equivalent to SipAddHeader() for 
SIP_HEADER().






More information about the asterisk-users mailing list