Its syntax is defined in [H14.43, S10.45] as follows:
User-Agent = "User-Agent" HCOLON server-val *(LWS server-val) server-val = product / comment product = token [SLASH product-version] product-version = token
The parsed User-Agent header is stored in sip_user_agent_t structure.
|
|
Initializer for structure sip_user_agent_t. A static sip_user_agent_t structure for User-Agent header must be initialized with the SIP_USER_AGENT_INIT() macro. For instance, |
|
|
Tag list item for pointer to a User-Agent header structure sip_user_agent_t. The SIPTAG_USER_AGENT() macro is used to include a tag item with a pointer to a sip_user_agent_t structure in a tag list.
|
|
|
Tag list item for string with User-Agent header value. The SIPTAG_USER_AGENT_STR() macro is used to include a tag item with a string containing value of a sip_user_agent_t header in a tag list.
The corresponding tag taking reference parameter is SIPTAG_USER_AGENT_STR_REF(). |
|
|
The structure sip_user_agent_t contains representation of a SIP User-Agent header. The sip_user_agent_t is defined as follows: typedef struct msg_generic_s { msg_common_t g_common[1]; // Common fragment info msg_generic_t *g_next; // Link to next header char const *g_string; // User-Agent components } sip_user_agent_t; |
|
|
Test if header object is instance of sip_user_agent_t. Check if the header class is an instance of User-Agent header object and return true (nonzero), otherwise return false (zero).
|
|
||||||||||||
|
Copy a list of User-Agent header header structures sip_user_agent_t.
The function sip_user_agent_copy() copies a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||
|
Duplicate a list of User-Agent header header structures sip_user_agent_t.
Duplicate a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||||||
|
Make a User-Agent header from formatting result. Make a new sip_user_agent_t object using formatting result as its value. The function first prints the arguments according to the format fmt specified. Then it allocates a new header structure, and parses the formatting result to the structure sip_user_agent_t.
|
|
|
Initialize a structure sip_user_agent_t. An sip_user_agent_t structure for User-Agent header can be initialized with the sip_user_agent_init() function/macro. For instance, |
|
||||||||||||
|
Make a User-Agent header structure sip_user_agent_t. The function sip_user_agent_make() makes a new sip_user_agent_t header structure. It allocates a new header structure, and decodes the string s as the value of the structure.
|
|
|
Header class for User-Agent header. The header class sip_user_agent_class defines how a SIP User-Agent header is parsed and printed. It also contains methods used by SIP parser and other functions to manipulate the sip_user_agent_t header structure. |