Its syntax is defined in RFC 3261 as follows:
Call-Info = "Call-Info" HCOLON info *(COMMA info)
info = LAQUOT absoluteURI RAQUOT *( SEMI info-param)
info-param = ( "purpose" EQUAL ( "icon" / "info"
/ "card" / token ) ) / generic-param
The parsed Call-Info header is stored in sip_call_info_t structure.
|
|
Initializer for structure sip_call_info_t. A static sip_call_info_t structure for Call-Info header must be initialized with the SIP_CALL_INFO_INIT() macro. For instance, |
|
|
Tag list item for pointer to a Call-Info header structure sip_call_info_t. The SIPTAG_CALL_INFO() macro is used to include a tag item with a pointer to a sip_call_info_t structure in a tag list.
|
|
|
Tag list item for string with Call-Info header value. The SIPTAG_CALL_INFO_STR() macro is used to include a tag item with a string containing value of a sip_call_info_t header in a tag list.
The corresponding tag taking reference parameter is SIPTAG_CALL_INFO_STR_REF(). |
|
|
The structure sip_call_info_t contains representation of an Call-Info header. The sip_call_info_t is defined as follows: struct sip_call_info_s { sip_common_t ci_common[1]; // Common fragment info sip_call_info_t *ci_next; // Link to next @CallInfo url_t ci_url[1]; // URI to call info msg_param_t const *ci_params; // List of parameters char const *ci_purpose; // Value of @b purpose parameter }; |
|
||||||||||||
|
Copy a list of Call-Info header header structures sip_call_info_t.
The function sip_call_info_copy() copies a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||
|
Duplicate a list of Call-Info header header structures sip_call_info_t.
Duplicate a header structure hdr. If the header structure hdr contains a reference (
|
|
||||||||||||||||
|
Make a Call-Info header from formatting result. Make a new sip_call_info_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_call_info_t.
|
|
|
Initialize a structure sip_call_info_t. An sip_call_info_t structure for Call-Info header can be initialized with the sip_call_info_init() function/macro. For instance, |
|
||||||||||||
|
Make a Call-Info header structure sip_call_info_t. The function sip_call_info_make() makes a new sip_call_info_t header structure. It allocates a new header structure, and decodes the string s as the value of the structure.
|
|
|
Test if header object is instance of sip_call_info_t. Check if the header class is an instance of Call-Info header object and return true (nonzero), otherwise return false (zero).
|
|
|
Header class for Call-Info header. The header class sip_call_info_class defines how a SIP Call-Info header is parsed and printed. It also contains methods used by SIP parser and other functions to manipulate the sip_call_info_t header structure. |