⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nua_tag.h

📁 Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification.
💻 H
📖 第 1 页 / 共 5 页
字号:
#define NUTAG_AUTH_REF(x)	    nutag_auth_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_auth_ref;/** Authentication caching policy * * @par Used with *    nua_set_params(), nua_set_hparams() \n *    nua_get_params(), nua_get_hparams() \n *    @NUA_HPARAM_CALLS  * * @par Parameter type *    enum nua_auth_cache * * @par Values *    - nua_auth_cache_dialog (0) - include credentials within dialog *    - nua_auth_cache_challenged (1) - include credentials only when  *                                      challenged *     * Corresponding tag taking reference parameter is NUTAG_AUTH_CACHE_REF(). * * @NEW_1_12_6 */#define NUTAG_AUTH_CACHE(x)   nutag_auth_cache, tag_int_v(x)SOFIAPUBVAR tag_typedef_t nutag_auth_cache;#define NUTAG_AUTH_CACHE_REF(x) nutag_auth_cache_ref, tag_int_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_auth_cache_ref;/** Authentication caching policy. @NEW_1_12_6 */enum nua_auth_cache {  /** Include credentials within dialog (default) */  nua_auth_cache_dialog = 0,  /** Include credentials only when challenged */  nua_auth_cache_challenged = 1,  _nua_auth_cache_invalid};/** Keepalive interval in milliseconds. * * This setting applies to OPTIONS/STUN keepalives. See documentation  * for nua_register() for more detailed information. * * @par Used with *    nua_register()   \n *    nua_set_params() \n *    nua_get_params() *    nua_set_hparams() \n *    nua_get_hparams() * * @par Parameter type *    unsigned int * * @par Values  *   - 0 - disable keepalives *   - 120000 - default value (120000 milliseconds, 120 seconds) * * Corresponding tag taking reference parameter is * NUTAG_KEEPALIVE_REF() */#define NUTAG_KEEPALIVE(x) nutag_keepalive, tag_uint_v(x)SOFIAPUBVAR tag_typedef_t nutag_keepalive;#define NUTAG_KEEPALIVE_REF(x) nutag_keepalive_ref, tag_uint_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_keepalive_ref;/** Transport-level keepalive interval for streams. * * See documentation for nua_register() for more detailed information. * * @par Used with *    nua_register()   \n *    nua_set_params() \n *    nua_get_params() *    nua_set_hparams() \n *    nua_get_hparams() * * @par Parameter type *    unsigned int * * @par Values  * * Transport-level keepalive interval for streams in milliseconds. If this * parameter specified, it takes presedence over value given in * NUTAG_KEEPALIVE(). * * Corresponding tag taking reference parameter is * NUTAG_KEEPALIVE_STREAM_REF() * * @todo Actually pass NUTAG_KEEPALIVE_STREAM() to transport layer. */#define NUTAG_KEEPALIVE_STREAM(x) nutag_keepalive_stream, tag_uint_v(x)SOFIAPUBVAR tag_typedef_t nutag_keepalive_stream;#define NUTAG_KEEPALIVE_STREAM_REF(x) \nutag_keepalive_stream_ref, tag_uint_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_keepalive_stream_ref;/** 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(). *    nua_invite(), nua_respond(), nua_subscribe(), nua_notify() * * @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(). *    nua_invite(), nua_respond(), nua_subscribe(), nua_notify() * * @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(),  *    nua_invite(), nua_respond(), nua_subscribe(), nua_notify() * * @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()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -