📄 nua_tag.h
字号:
*/#define NUTAG_SMIME_ENABLE(x) nutag_smime_enable, tag_bool_v(x)SOFIAPUBVAR tag_typedef_t nutag_smime_enable;#define NUTAG_SMIME_ENABLE_REF(x) nutag_smime_enable_ref, tag_bool_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_smime_enable_ref;/** S/MIME Options * * This tag specifies the type of S/MIME security services requested * by the user. * * @par Used with * nua_set_params() \n * nua_get_params() \n * nua_message() * * @par Parameter type * int * * @par Values * @c -1 (SM_ID_NULL) No security service needed \n * @c 0 (SM_ID_CLEAR_SIGN) Clear signing \n * @c 1 (SM_ID_SIGN) S/MIME signing \n * @c 2 (SM_ID_ENCRYPT) S/MIME encryption * * Corresponding tag taking reference parameter is NUTAG_SMIME_OPT_REF() */#define NUTAG_SMIME_OPT(x) nutag_smime_opt, tag_int_v(x)SOFIAPUBVAR tag_typedef_t nutag_smime_opt;#define NUTAG_SMIME_OPT_REF(x) nutag_smime_opt_ref, tag_int_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_smime_opt_ref;/* End NRC Boston *//** S/MIME protection mode * * This tag specifies the protection mode of the SIP message by * S/MIME as requested by the user * * @par Used with * nua_set_params() \n * nua_get_params() * * @par Parameter type * unsigned int * * @par Values * @c -1 (SM_MODE_NULL) Unspecified \n * @c 0 (SM_MODE_PAYLOAD_ONLY) SIP payload only \n * @c 1 (SM_MODE_TUNNEL) SIP tunneling mode \n * @c 2 (SM_MODE_SIPFRAG) SIPfrag protection * * Corresponding tag taking reference parameter is NUTAG_SMIME_PROTECTION_MODE_REF() */#define NUTAG_SMIME_PROTECTION_MODE(x) nutag_smime_protection_mode, tag_uint_v(x)SOFIAPUBVAR tag_typedef_t nutag_smime_protection_mode;#define NUTAG_SMIME_PROTECTION_MODE_REF(x) \ nutag_smime_protection_mode_ref, tag_uint_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_smime_protection_mode_ref;/** S/MIME digest algorithm * * This tag specifies the message digest algorithm to be used in S/MIME. * * @par Used with * To be implemented * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_SMIME_MESSAGE_DIGEST_REF() */#define NUTAG_SMIME_MESSAGE_DIGEST(x) nutag_smime_message_digest, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_smime_message_digest;#define NUTAG_SMIME_MESSAGE_DIGEST_REF(x) \ nutag_smime_message_digest_ref, tag_str_vr((&x))SOFIAPUBVAR tag_typedef_t nutag_smime_message_digest_ref;/** S/MIME signature algorithm * * This tag specifies the signature algorithm to be used in S/MIME. * * @par Used with * To be implemented. * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_SMIME_SIGNATURE_REF() */#define NUTAG_SMIME_SIGNATURE(x) nutag_smime_signature, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_smime_signature;#define NUTAG_SMIME_SIGNATURE_REF(x) \ nutag_smime_signature_ref, tag_str_vr((&x))SOFIAPUBVAR tag_typedef_t nutag_smime_signature_ref;/** S/MIME key encryption algorithm * * This tag specifies the key encryption algorithm to be used by S/MIME. * * @par Used with * To be implemented * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_SMIME_KEY_ENCRYPTION_REF() */#define NUTAG_SMIME_KEY_ENCRYPTION(x) nutag_smime_key_encryption, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_smime_key_encryption;#define NUTAG_SMIME_KEY_ENCRYPTION_REF(x) \ nutag_smime_key_encryption_ref, tag_str_vr((&x))SOFIAPUBVAR tag_typedef_t nutag_smime_key_encryption_ref;/** S/MIME message encryption algorithm * * This tag specifies the message encryption algorithm to be used in S/MIME. * * @par Used with * To be implemented. * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_SMIME_MESSAGE_ENCRYPTION_REF() */#define NUTAG_SMIME_MESSAGE_ENCRYPTION(x) nutag_smime_message_encryption, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_smime_message_encryption;#define NUTAG_SMIME_MESSAGE_ENCRYPTION_REF(x) \ nutag_smime_message_encryption_ref, tag_str_vr((&x))SOFIAPUBVAR tag_typedef_t nutag_smime_message_encryption_ref;/** x.500 certificate directory * * @par Used with * nua_create() * * @par Parameter type * char const * * * @par Values * NULL terminated pathname of directory containing agent.pem and cafile.pem files. * * Corresponding tag taking reference parameter is NUTAG_CERTIFICATE_DIR_REF() */#define NUTAG_CERTIFICATE_DIR(x) nutag_certificate_dir, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_certificate_dir;#define NUTAG_CERTIFICATE_DIR_REF(x) \ nutag_certificate_dir_ref, tag_str_vr((&x))SOFIAPUBVAR tag_typedef_t nutag_certificate_dir_ref;/** Certificate phrase * * @par Used with * Currently not processed by NUA * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_CERTIFICATE_PHRASE_REF() */#define NUTAG_CERTIFICATE_PHRASE(x) nutag_certificate_phrase, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_certificate_phrase;#define NUTAG_CERTIFICATE_PHRASE_REF(x) \ nutag_certificate_phrase_ref, tag_str_vr((&x))SOFIAPUBVAR tag_typedef_t nutag_certificate_phrase_ref;/** Local SIPS url * * The application can specify an alternative local address for * NUA user agent engine. Usually the alternative address is a * secure SIP URI (SIPS) used with TLS transport. * * @par Used with * nua_create() * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_SIPS_URL_REF() */#define NUTAG_SIPS_URL(x) nutag_sips_url, urltag_url_v(x)SOFIAPUBVAR tag_typedef_t nutag_sips_url;#define NUTAG_SIPS_URL_REF(x) nutag_sips_url_ref, urltag_url_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_sips_url_ref;/** Outbound proxy URL * * Same tag as NTATAG_DEFAULT_PROXY * @par Used with * nua_set_params() \n * nua_get_params() \n * nua_create() * * @par Parameter type * url_string_t const * (either char const * or url_t *) * * @par Values * * Corresponding tag taking reference parameter is NUTAG_PROXY_REF() */#define NUTAG_PROXY(x) NTATAG_DEFAULT_PROXY(x)#define NUTAG_PROXY_REF(x) NTATAG_DEFAULT_PROXY_REF(x)#define nutag_proxy ntatag_default_proxy/** Registrar URL * * @par Used with * nua_register() \n * nua_set_params() \n * nua_get_params() * * @par Parameter type * url_string_t const * (either char const * or url_t *) * * @par Values * * Corresponding tag taking reference parameter is NUTAG_REGISTRAR_REF() */#define NUTAG_REGISTRAR(x) nutag_registrar, urltag_url_v(x)SOFIAPUBVAR tag_typedef_t nutag_registrar;#define NUTAG_REGISTRAR_REF(x) nutag_registrar_ref, urltag_url_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_registrar_ref;/** Outbound option string. * * The outbound option string can specify how the NAT traversal is handled. * The option tokens are as follows: * - "gruuize": try to generate a GRUU * - "outbound": use SIP outbound extension (off by default) * - "validate": validate registration behind a NAT by sending OPTIONS to self * - "natify": try to traverse NAT * - "use-rport": use rport to traverse NAT * - "options-keepalive": send periodic OPTIONS requests as keepalive messages * * An option token with "no-" or "not-" prefix turns the option off. For * example, if you want to try to traverse NATs but not to use OPTIONS * keepalive, use NUTAG_OUTBOUND("natify no-options-keepalive"). * * @note * Options string is used so that no new tags need to be added when the * outbound functionality changes. * * @par Used with * nua_register() \n * nua_set_params() \n * nua_get_params() * nua_set_hparams() \n * nua_get_hparams() * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_OUTBOUND_REF() */#define NUTAG_OUTBOUND(x) nutag_outbound, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_outbound;#define NUTAG_OUTBOUND_REF(x) nutag_outbound_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_outbound_ref;#if notyet/** Outbound proxy set 1. * * @par Used with * nua_register() \n * nua_set_params() \n * nua_get_params() * nua_set_hparams() \n * nua_get_hparams() * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_OUTBOUND_SET1_REF() */#define NUTAG_OUTBOUND_SET1(x) nutag_outbound_set1, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_outbound_set1;#define NUTAG_OUTBOUND_SET1_REF(x) nutag_outbound_set1_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_outbound_set1_ref;/** Outbound proxy set 2. * * @par Used with * nua_register() \n * nua_set_params() \n * nua_get_params() * nua_set_hparams() \n * nua_get_hparams() * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_OUTBOUND_SET2_REF() */#define NUTAG_OUTBOUND_SET2(x) nutag_outbound_set2, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_outbound_set2;#define NUTAG_OUTBOUND_SET2_REF(x) nutag_outbound_set2_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_outbound_set2_ref;/** Outbound proxy set 3. * * @par Used with * nua_register() \n * nua_set_params() \n * nua_get_params() * nua_set_hparams() \n * nua_get_hparams() * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_OUTBOUND_SET3_REF() */#define NUTAG_OUTBOUND_SET3(x) nutag_outbound_set3, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_outbound_set3;#define NUTAG_OUTBOUND_SET3_REF(x) nutag_outbound_set3_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_outbound_set3_ref;/** Outbound proxy set 4. * * @par Used with * nua_register() \n * nua_set_params() \n * nua_get_params() * nua_set_hparams() \n * nua_get_hparams() * * @par Parameter type * char const * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_OUTBOUND_SET4_REF() */#define NUTAG_OUTBOUND_SET4(x) nutag_outbound_set4, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_outbound_set4;#define NUTAG_OUTBOUND_SET4_REF(x) nutag_outbound_set4_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_outbound_set4_ref;#endif /* ...notyet *//** Pointer to SIP parser structure * * @par Used with * nua_create() * * @par Parameter type * msg_mclass_t * * * @par Values * Pointer to an extended SIP parser. * * @sa msg_mclass_clone(), msg_mclass_insert_header() * * Corresponding tag taking reference parameter is NUTAG_SIP_PARSER_REF(). */#define NUTAG_SIP_PARSER(x) NTATAG_MCLASS(x)#define NUTAG_SIP_PARSER_REF(x) NTATAG_MCLASS_REF(x)/** Authentication data ("scheme" "realm" "user" "password") * * @par Used with * nua_authenticate() * * @par Parameter type * char const * * * @par Values * NULL terminated string of format: \n * basic digest scheme:"realm":user:password \n * @b NOTE the double quotes around realm! * For example: \n * \code Digest:"nokia proxy":xyz:secret \endcode * * Corresponding tag taking reference parameter is NUTAG_AUTH_REF() */#define NUTAG_AUTH(x) nutag_auth, tag_str_v(x)SOFIAPUBVAR tag_typedef_t nutag_auth;#define NUTAG_AUTH_REF(x) nutag_auth_ref, tag_str_vr(&(x))SOFIAPUBVAR tag_typedef_t nutag_auth_ref;/** Keepalive interval in milliseconds. * * @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. * * @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;/** Events * * @par Used with * Currently not processed by NUA * * @par Parameter type * void * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_EVENT_REF() */#define NUTAG_EVENT(x) nutag_event, tag_ptr_v(x)SOFIAPUBVAR tag_typedef_t nutag_event;#define NUTAG_EVENT_REF(x) nutag_event_ref, tag_ptr_vr(&(x),(x))SOFIAPUBVAR tag_typedef_t nutag_event_ref;/** Response status code * * @par Used with * Currently not processed by NUA * * @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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -