📄 sip.h
字号:
sip_proxy_authentication_info_t *sip_proxy_authentication_info; /**< Proxy-Authentication-Info */ sip_proxy_authorization_t *sip_proxy_authorization; /**< Proxy-Authorization */ sip_authorization_t *sip_authorization; /**< Authorization */ sip_www_authenticate_t *sip_www_authenticate; /**< WWW-Authenticate */ sip_authentication_info_t *sip_authentication_info; /**< Authentication-Info */ sip_error_info_t *sip_error_info; /**< Error-Info */ sip_warning_t *sip_warning; /**< Warning */ /* RFC 3515 */ sip_refer_to_t *sip_refer_to; /**< Refer-To (r) */ sip_referred_by_t *sip_referred_by; /**< Referred-By (b) */ sip_replaces_t *sip_replaces; /**< Replaces */ /* draft-ietf-sip-session-timer */ sip_session_expires_t *sip_session_expires; /**< Session-Expires (x) */ sip_min_se_t *sip_min_se; /**< Min-SE */ sip_path_t *sip_path; /**< Path */ sip_service_route_t *sip_service_route; /**< Service-Route */ sip_reason_t *sip_reason; /**< Reason */ sip_security_client_t *sip_security_client; /**< Security-Client */ sip_security_server_t *sip_security_server; /**< Security-Server */ sip_security_verify_t *sip_security_verify; /**< Security-Verify */ sip_privacy_t *sip_privacy; /**< Privacy */ sip_etag_t *sip_etag; /**< SIP-ETag */ sip_if_match_t *sip_if_match; /**< SIP-If-Match */ /* Entity headers */ sip_mime_version_t *sip_mime_version; /**< MIME-Version */ sip_content_type_t *sip_content_type; /**< Content-Type (c) */ sip_content_encoding_t *sip_content_encoding; /**< Content-Encoding (e) */ sip_content_language_t *sip_content_language; /**< Content-Language */ sip_content_disposition_t *sip_content_disposition; /**< Content-Disposition */ sip_content_length_t *sip_content_length;/**< Content-Length (l) */ /* === Headers end here */ sip_unknown_t *sip_unknown; /**< Unknown headers */ sip_separator_t *sip_separator; /**< Separator between headers and payload */ sip_payload_t *sip_payload; /**< Message payload */ msg_multipart_t *sip_multipart; /**< Multipart MIME payload */};/** @ingroup sip_request * @brief Structure for SIP request line. */struct sip_request_s{ sip_common_t rq_common[1]; /**< Common fragment info */ sip_error_t *rq_next; /**< Link to next (dummy) */ sip_method_t rq_method; /**< Method enum */ char const *rq_method_name; /**< Method name */ url_t rq_url[1]; /**< RequestURI */ char const *rq_version; /**< Protocol version */};/**@ingroup sip_status * @brief Structure for SIP status line. */struct sip_status_s{ sip_common_t st_common[1]; /**< Common fragment info */ sip_error_t *st_next; /**< Link to next (dummy) */ char const *st_version; /**< Protocol version */ int st_status; /**< Status code */ char const *st_phrase; /**< Status phrase */};/**@ingroup sip_from * @brief Structure for @b From and @b To headers. */struct sip_addr_s{ sip_common_t a_common[1]; /**< Common fragment info */ sip_error_t *a_next; char const *a_display; /**< Display name */ url_t a_url[1]; /**< URL */ msg_param_t const *a_params; /**< Parameter table */ char const *a_comment; /**< Comment */ char const *a_tag; /**< Tag parameter */};#define a_user a_url->url_user#define a_host a_url->url_host/**@ingroup sip_accept * @brief Structure for @b Accept header. */struct sip_accept_s{ sip_common_t ac_common[1]; /**< Common fragment info */ sip_accept_t *ac_next; /**< Pointer to next Accept header */ char const *ac_type; /**< Pointer to type/subtype */ char const *ac_subtype; /**< Points after first slash in type */ msg_param_t const *ac_params; /**< List of parameters */ char const *ac_q; /**< Value of q parameter */};/**@ingroup sip_authentication_info * @brief Structure for @b Authentication-Info header. */struct sip_authentication_info_s{ sip_common_t ai_common[1]; /**< Common fragment info */ sip_error_t *ai_next; /**< Dummy link to next */ msg_param_t const *ai_params; /**< List authentication info */};/**@ingroup sip_call_id * @brief Structure for @b Call-ID (and In-Reply-To) headers. */struct sip_call_id_s { sip_common_t i_common[1]; /**< Common fragment info */ sip_call_id_t *i_next; /**< Link to next (In-Reply-To) */ char const *i_id; /**< ID value */ uint32_t i_hash; /**< Hash value (always nonzero) */};/**@ingroup sip_call_info * @brief Structure for @b Call-Info header. */struct sip_call_info_s{ sip_common_t ci_common[1]; /**< Common fragment info */ sip_call_info_t *ci_next; /**< Link to next Call-Info */ 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 */};/**@ingroup sip_cseq * @brief Structure for @b CSeq header. */struct sip_cseq_s{ sip_common_t cs_common[1]; /**< Common fragment info */ sip_error_t *cs_next; /**< Link to next (dummy) */ uint32_t cs_seq; /**< Sequence number */ sip_method_t cs_method; /**< Method enum */ char const *cs_method_name; /**< Method name */};/**@ingroup sip_contact * @brief Structure for @b Contact header. */struct sip_contact_s{ sip_common_t m_common[1]; /**< Common fragment info */ sip_contact_t *m_next; /**< Link to next Contact header */ char const *m_display; /**< Display name */ url_t m_url[1]; /**< SIP URL */ msg_param_t const *m_params; /**< List of contact-params */ char const *m_comment; /**< Comment */ char const *m_q; /**< Priority */ char const *m_expires; /**< Expiration time */};/**@ingroup sip_content_length * @brief Structure for @b Content-Length header. */struct sip_content_length_s{ sip_common_t l_common[1]; /**< Common fragment info */ sip_error_t *l_next; /**< Link to next (dummy) */ uint32_t l_length; /**< Digits */};#if DOCUMENTATION_ONLY/**@ingroup sip_content_type * * @brief Structure for @b Content-Type header. */struct sip_content_type_s{ sip_common_t c_common[1]; /**< Common fragment info */ sip_error_t *c_next; /**< Dummy link to next */ char const *c_type; /**< Pointer to type/subtype */ char const *c_subtype; /**< Points after first slash in type */ msg_param_t const *c_params; /**< List of parameters */};#endif/**@ingroup sip_date * @brief Structure for @b Date header. */struct sip_date_s{ sip_common_t d_common[1]; /**< Common fragment info */ sip_date_t *d_next; /**< Link to next (dummy) */ sip_time_t d_time; /**< Seconds since Jan 1, 1900 */};/**@ingroup sip_error_info * @brief Structure for @b Error-Info header. */struct sip_error_info_s{ sip_common_t ei_common[1]; /**< Common fragment info */ sip_call_info_t *ei_next; /**< Link to next Error-Info */ url_t ei_url[1]; /**< URI to error description */ msg_param_t const *ei_params; /**< List of parameters */};/**@ingroup sip_event * @brief Structure for @b Event header. */struct sip_event_s { sip_common_t o_common[1]; /**< Common fragment info */ sip_error_t *o_next; /**< Link to next (dummy) */ char const * o_type; /**< Event type */ msg_param_t const *o_params; /**< List of parameters */ char const *o_id; /**< Event ID */};/**@ingroup sip_expires * @brief Structure for @b Expires header. */struct sip_expires_s{ sip_common_t ex_common[1]; /**< Common fragment info */ sip_error_t *ex_next; /**< Link to next (dummy) */ sip_time_t ex_date; /**< Seconds since Jan 1, 1900 */# define ex_time ex_date sip_time_t ex_delta; /**< Delta seconds */};/**@ingroup sip_max_forwards * @brief Structure for @b Max-Forwards header. */struct sip_max_forwards_s{ sip_common_t mf_common[1]; /**< Common fragment info */ sip_error_t *mf_next; /**< Link to next (dummy) */ unsigned long mf_count; /**< Forwarding count */};/**@ingroup sip_min_expires * @brief Structure for @b Min-Expires header. */struct sip_min_expires_s{ sip_common_t me_common[1]; /**< Common fragment info */ sip_error_t *me_next; /**< Link to next (dummy) */ unsigned long me_delta; /**< Seconds */};/**@ingroup sip_rack * @brief Structure for @b Rack header. */struct sip_rack_s{ sip_common_t ra_common; sip_error_t *ra_next; uint32_t ra_response; uint32_t ra_cseq; sip_method_t ra_method; char const *ra_method_name;};/**@ingroup sip_refer_to * @brief Structure for @b Refer-To header. */struct sip_refer_to_s{ sip_common_t r_common[1]; /**< Common fragment info */ sip_error_t *r_next; /**< Link to next (dummy) */ char const *r_display; url_t r_url[1]; /**< URI to reference */ msg_param_t const *r_params; /**< List of parameters */};/**@ingroup sip_referred_by * @brief Structure for @b Referred-By header. */struct sip_referred_by_s{ sip_common_t b_common[1]; /**< Common fragment info */ sip_error_t *b_next; /**< Link to next (dummy) */ char const *b_display; url_t b_url[1]; /**< Referrer-URI */ msg_param_t const *b_params; /**< List of parameters */ char const *b_cid; /**< The cid parameter */};/**@ingroup sip_replaces * @brief Structure for @b Replaces header.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -