📄 nua_tag.h
字号:
/** Lifetime of authentication data in seconds. * * @par Used with * Currently not processed by NUA * * @par Parameter type * unsigned int * * @par Values * @c 0 Use authentication data only for this handle \n * @c !=0 Lifetime in seconds * * Corresponding tag taking reference parameter is NUTAG_AUTHTIME_REF() */#define NUTAG_AUTHTIME(x) nutag_authtime, tag_uint_v(x)SOFIAPUBVAR tag_typedef_t nutag_authtime;#define NUTAG_AUTHTIME_REF(x) nutag_authtime_ref, tag_uint_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_authtime_ref;/**Display name for @Contact. * * Specify display name for the Contact header URI generated for * registration request and dialog-creating requests/responses. * * Note that display name is not included the request-URI when proxy * forwards the request towards user-agent. * * @par Used with * nua_register(), nua_set_hparams(), nua_set_params(). * * @par Parameter type * string (char *) * * @par Values * Valid display name. * * @sa NUTAG_M_USERNAME(), NUTAG_M_PARAMS(), NUTAG_M_FEATURES(), * NUTAG_CALLEE_CAPS(). * * Corresponding tag taking reference parameter is NUTAG_M_DISPLAY_REF(). * * @since New in @VERSION_1_12_2. */#define NUTAG_M_DISPLAY(x) nutag_m_display, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_m_display;#define NUTAG_M_DISPLAY_REF(x) nutag_m_display_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_m_display_ref;/**Username prefix for @Contact. * * Specify username part for the Contact header URI generated for * registration request and dialog-creating requests/responses. * * Using username, application can make multiple registrations using * multiple identities, or it can distinguish between different logical * destinations. * * @par Used with * nua_register(), nua_set_hparams(), nua_set_params(). * * @par Parameter type * string (char *) * * @par Values * Valid SIP username. * * @sa NUTAG_M_DISPLAY(), NUTAG_M_PARAMS(), NUTAG_M_FEATURES(), * NUTAG_CALLEE_CAPS(). * * Corresponding tag taking reference parameter is NUTAG_M_USERNAME_REF(). * * @since New in @VERSION_1_12_2. */#define NUTAG_M_USERNAME(x) nutag_m_username, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_m_username;#define NUTAG_M_USERNAME_REF(x) nutag_m_username_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_m_username_ref;/**URL parameters for @Contact. * * Specify URL parameters for the Contact header URI generated for * registration request and dialog-creating requests/responses. * * Please note that some proxies may remove even the non-transport * parameters from the request-URI when they forward the request towards * user-agent. * * @par Used with * nua_register(), nua_set_hparams(), nua_set_params(). * * @par Parameter type * string (char *) * * @par Values * Semicolon-separated URL parameters. * * @sa NUTAG_M_DISPLAY(), NUTAG_M_USERNAME(), NUTAG_M_FEATURES(), * NUTAG_CALLEE_CAPS(). * * Corresponding tag taking reference parameter is NUTAG_M_PARAMS_REF(). * * @since New in @VERSION_1_12_2. */#define NUTAG_M_PARAMS(x) nutag_m_params, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_m_params;#define NUTAG_M_PARAMS_REF(x) nutag_m_params_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_m_params_ref;/**Header parameters for registration @Contact. * * Specify header parameters for the @Contact header generated for * registration request and dialog-creating requests/responses. Such header * parameters include "q", indicating preference for the @Contact URI, and * "expires", indicating the desired expiration time for the registration. * * Additional header parameters are typically media feature tags, specified in * @RFC3840. If NUTAG_CALLEE_CAPS(1) is specified, additional @Contact header * parameters are generated based on SDP capabilities and SIP @Allow header. * * When using the "outbound" extension option, the stack will also add * "+sip.instance" and "reg-id" header parameters to the @Contact. * * @par Used with * nua_register(), nua_set_hparams(), nua_set_params() * * @par Parameter type * string (char *) * * @par Values * Semicolon-separated SIP header parameters. * * @sa NUTAG_M_DISPLAY(), NUTAG_M_USERNAME(), NUTAG_M_PARAMS(), * NUTAG_CALLEE_CAPS(), NUTAG_IDENTITY(). * * Corresponding tag taking reference parameter is NUTAG_M_FEATURES_REF(). * * @since New in @VERSION_1_12_2. */#define NUTAG_M_FEATURES(x) nutag_m_features, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_m_features;#define NUTAG_M_FEATURES_REF(x) nutag_m_features_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_m_features_ref;/**NUA event. * * @deprecated * * @par Parameter type * enum nua_event_e * * @par Values * * Corresponding tag taking reference parameter is NUTAG_EVENT_REF() */#define NUTAG_EVENT(x) nutag_event, tag_int_v(x)SOFIAPUBVAR tag_typedef_t nutag_event;#define NUTAG_EVENT_REF(x) nutag_event_ref, tag_int_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_event_ref;/** Response status code * * @deprecated * * @par Parameter type * unsigned int * * @par Values * 100 - preliminary response, request is being processed by next hop \n * 1XX - preliminary response, request is being processed by UAS \n * 2XX - successful final response \n * 3XX - redirection error response \n * 4XX - client error response \n * 5XX - server error response \n * 6XX - global error response \n * * Corresponding tag taking reference parameter is NUTAG_STATUS_REF() */#define NUTAG_STATUS(x) nutag_status, tag_uint_v(x)SOFIAPUBVAR tag_typedef_t nutag_status;#define NUTAG_STATUS_REF(x) nutag_status_ref, tag_uint_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_status_ref;/** Response phrase * * @deprecated * * @par Parameter type * char const * * * @par Values. * * Corresponding tag taking reference parameter is NUTAG_PHRASE_REF() */#define NUTAG_PHRASE(x) nutag_phrase, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_phrase;#define NUTAG_PHRASE_REF(x) nutag_phrase_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_phrase_ref;/** NUA Handle * * @deprecated * * @par Parameter type * nua_handle_t * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_HANDLE_REF() */#define NUTAG_HANDLE(x) nutag_handle, nutag_handle_v(x)SOFIAPUBVAR tag_typedef_t nutag_handle;#define NUTAG_HANDLE_REF(x) nutag_handle_ref, nutag_handle_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_handle_ref;/** Registration handle (used with requests and nua_respond()) (NOT YET IMPLEMENTED) * * When a new request is made or new call is responded, a new identity can * be selected with NUTAG_IDENTITY(). The identity comprises of @b From * header, initial route set, local contact header and media tags associated * with it, soa handle and so on. User can make multiple registrations using * multiple identities. * * @par Used with * nua_invite() * * @par Parameter type * nua_handle_t * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_IDENTITY_REF()*/#define NUTAG_IDENTITY(x) nutag_identity, nutag_handle_v(x)SOFIAPUBVAR tag_typedef_t nutag_identity;#define NUTAG_IDENTITY_REF(x) nutag_identity_ref, nutag_handle_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_identity_ref;/**Intance identifier. * * @par Used with * nua_create(), nua_set_params(), nua_get_params(), * nua_register() * * @par Parameter type * char const * * * @par Value * urn:uuid string, a globally unique identifier for this user-agent * instance. * * Corresponding tag taking reference parameter is NUTAG_INSTANCE_REF() */#define NUTAG_INSTANCE(x) nutag_instance, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_instance;#define NUTAG_INSTANCE_REF(x) nutag_instance_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_instance_ref;/** Refer reply handle (used with refer) * * When making a call in response to a REFER request [RFC3515] with * nua_invite(), the application can ask NUA to automatically generate * notifications about the call progress to the referrer. In order to * do that the application should pass to the stack the handle, which * it used to receive the REFER request. It should also pass the event * header object along with the handle using NUTAG_REFER_EVENT(). * * @par Used with * nua_invite() * * @par Parameter type * nua_handle_t * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_NOTIFY_REFER_REF()*/#define NUTAG_NOTIFY_REFER(x) nutag_notify_refer, nutag_handle_v(x)SOFIAPUBVAR tag_typedef_t nutag_notify_refer;#define NUTAG_NOTIFY_REFER_REF(x) nutag_notify_refer_ref, nutag_handle_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_notify_refer_ref;/** Event used with automatic refer notifications. * * When creating a call in response to a REFER request [RFC3515] * the application can ask NUA to automatically generate notifications * about the call progress to the referrer. The #nua_i_refer event will * contain a suitable SIP event header for the notifications in the * NUTAG_REFER_EVENT() tag. The application should store the SIP event * header and when it makes the referred call, it should pass it back * to the stack again using the NUTAG_REFER_EVENT() tag. * * @par Used with * * @par Parameter type * sip_event_t * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_REFER_EVENT_REF() */#define NUTAG_REFER_EVENT(x) nutag_refer_event, siptag_event_v(x)SOFIAPUBVAR tag_typedef_t nutag_refer_event;#define NUTAG_REFER_EVENT_REF(x) nutag_refer_event_ref, siptag_event_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_refer_event_ref;/** Invite pauses referrer's handle. * * When creating a call in response to a REFER [RFC3515] request, * the application can ask that the original call will be muted * when the new call is connected by specifying NUTAG_REFER_PAUSE() * along with NUTAG_NOTIFY_REFER() as a parameter to nua_invite() call. * * @par Used with * nua_invite() * * @par Parameter type * int * * @par Values * @c 0 False \n * @c !=0 True * * Corresponding tag taking reference parameter is NUTAG_REFER_PAUSE_REF() * * @deprecated Not implemented. */#define NUTAG_REFER_PAUSE(x) nutag_refer_pause, tag_bool_v(x)SOFIAPUBVAR tag_typedef_t nutag_refer_pause;#define NUTAG_REFER_PAUSE_REF(x) nutag_refer_pause_ref, tag_bool_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_refer_pause_ref;/**User-Agent string. * * Indicate the User-Agent header used by the stack. The value set with this * tag is concatenated with the value indicating the stack name and version, * e.g., "sofia-sip/1.12.1" unless the stack name "sofia-sip" followed by * slash is already included in the string. The concatenated value is * returned in SIPTAG_USER_AGENT_STR() and NUTAG_USER_AGENT() when * nua_get_params() is called. * * If you want to set the complete string, use SIPTAG_USER_AGENT_STR() or * SIPTAG_USER_AGENT(). * * @par Used with * nua_set_params(), nua_set_hparams() \n * nua_get_params(), nua_get_hparams(), #nua_r_get_params \n * any handle-specific nua call * * @par Parameter type * char const * * * @par Values * See @RFC3261 \n * If NULL, stack uses default string which of format "sofia-sip/1.12". * * Corresponding tag taking reference parameter is NUTAG_USER_AGENT_REF() */#define NUTAG_USER_AGENT(x) nutag_user_agent, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_user_agent;#define NUTAG_USER_AGENT_REF(x) nutag_user_agent_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_user_agent_ref;/** Allow a method (or methods). * * This tag is used to add a new method to the already existing set of * allowed methods. If you want to ignore the existing set of allowed * methods, use SIPTAG_ALLOW_STR() or SIPTAG_ALLOW(). * * The set of allowed methods is added to the @Allow header in the response * or request messages. For incoming request, an error response <i>405 * Method Not Allowed</i> is automatically returned if the incoming method * is not included in the set. * * @par Used with * nua_set_params() \n * nua_set_hparams() \n * any handle-specific nua call * * @par Parameter type * char const * * * @par Values * Valid method name, or comma-separated list of them. * * Corresponding tag taking reference parameter is NUTAG_ALLOW_REF() */#define NUTAG_ALLOW(x) nutag_allow, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_allow;#define NUTAG_ALLOW_REF(x) nutag_allow_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_allow_ref;/** Support a feature. * * This tag is used to add a new feature to the existing set of supported * SIP features. If you want to ignore the existing set of supported * features, use SIPTAG_SUPPORTED_STR() or SIPTAG_SUPPORTED(). * * The set of supported features is added to the @Supported header in the * response or request messages. For incoming requests, an error response * <i>420 Bad Extension </i> is automatically returned if the request * requires features that are not included in the supported feature set. * * @par Used with * nua_set_params() \n * nua_set_hparams() \n * any handle-specific nua call * * @par Parameter type * char const * * * @par Values * Feature name, or comma-separated list of them. * * Corresponding tag taking reference parameter is NUTAG_SUPPORTED_REF() * * @since New in @VERSION_1_12_2.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -