Its syntax is defined in RFC 3261 as follows:
Priority = "Priority" HCOLON priority-value priority-value = "emergency" / "urgent" / "normal" / "non-urgent" / other-priority other-priority = token
The parsed Priority header is stored in sip_priority_t structure.
|
|
Initializer for structure sip_priority_t. A static sip_priority_t structure for Priority header must be initialized with the SIP_PRIORITY_INIT() macro. For instance, |
|
|
Tag list item for pointer to a Priority header structure sip_priority_t. The SIPTAG_PRIORITY() macro is used to include a tag item with a pointer to a sip_priority_t structure in a tag list.
|
|
|
Tag list item for string with Priority header value. The SIPTAG_PRIORITY_STR() macro is used to include a tag item with a string containing value of a sip_priority_t header in a tag list.
The corresponding tag taking reference parameter is SIPTAG_PRIORITY_STR_REF(). |
|
|
The structure sip_priority_t contains representation of a SIP Priority header. The sip_priority_t is defined as follows: typedef struct msg_generic_s { msg_common_t g_common[1]; // Common fragment info msg_generic_t *g_next; // Dummy link to next header char const *g_string; // Priority token } sip_priority_t; |
|
|
Test if header object is instance of sip_priority_t. Check if the header class is an instance of Priority header object and return true (nonzero), otherwise return false (zero).
|
|
||||||||||||
|
Copy a list of Priority header header structures sip_priority_t.
The function sip_priority_copy() copies a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||
|
Duplicate a list of Priority header header structures sip_priority_t.
Duplicate a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||||||
|
Make a Priority header from formatting result. Make a new sip_priority_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_priority_t.
|
|
|
Initialize a structure sip_priority_t. An sip_priority_t structure for Priority header can be initialized with the sip_priority_init() function/macro. For instance, |
|
||||||||||||
|
Make a Priority header structure sip_priority_t. The function sip_priority_make() makes a new sip_priority_t header structure. It allocates a new header structure, and decodes the string s as the value of the structure.
|
|
|
Header class for Priority header. The header class sip_priority_class defines how a SIP Priority header is parsed and printed. It also contains methods used by SIP parser and other functions to manipulate the sip_priority_t header structure. |