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

📄 nua_tag.h

📁 Internet Phone, Chat, Conferencing
💻 H
📖 第 1 页 / 共 3 页
字号:
#define NUTAG_ENABLEINVITE(x)   nutag_enableInvite, tag_bool_v(x)extern tag_typedef_t nutag_enableInvite;#define NUTAG_ENABLEINVITE_REF(x) nutag_enableInvite_ref, tag_bool_vr(&(x))extern tag_typedef_t nutag_enableInvite_ref;/** Enable incoming MESSAGE * * @par Used with *    nua_set_params() \n *    nua_get_params() * * @par Parameter type *    int * * @par Values *    @c 0   Incoming MESSAGE not enabled. NUA answers 403 Forbidden \n *    @c !=0 Incoming MESSAGE enabled * * Corresponding tag taking reference parameter is NUTAG_ENABLEMESSAGE_REF() */#define NUTAG_ENABLEMESSAGE(x)  nutag_enableMessage, tag_bool_v(x)extern tag_typedef_t nutag_enableMessage;#define NUTAG_ENABLEMESSAGE_REF(x) nutag_enableMessage_ref, tag_bool_vr(&(x))extern tag_typedef_t nutag_enableMessage_ref;/** Enable incoming MESSAGE with To tag. * * Set this parameter if you want to chat with Windows Messenger. * * @par Used with *    nua_set_params() \n *    nua_get_params() * * @par Parameter type *    int * * @par Values *    @c 0   False \n *    @c !=0 True * * Corresponding tag taking reference parameter is NUTAG_ENABLEMESSENGER_REF() */#define NUTAG_ENABLEMESSENGER(x)  nutag_enableMessenger, tag_bool_v(x)extern tag_typedef_t nutag_enableMessenger;#define NUTAG_ENABLEMESSENGER_REF(x) \  nutag_enableMessenger_ref, tag_bool_vr(&(x))extern tag_typedef_t nutag_enableMessenger_ref;/* Start NRC Boston *//** Enable S/MIME * * @par Used with *    nua_create() \n *    nua_set_params() \n *    nua_get_params() * * @par Parameter type *    boolean * * @par Values *    @c 0   S/MIME is Disabled \n *    @c !=0 S/MIME is Enabled * * Corresponding tag taking reference parameter is NUTAG_SMIME_ENABLE_REF() */#define NUTAG_SMIME_ENABLE(x)  nutag_smime_enable, tag_bool_v(x)extern tag_typedef_t nutag_smime_enable;#define NUTAG_SMIME_ENABLE_REF(x) nutag_smime_enable_ref, tag_bool_vr(&(x))extern 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)extern tag_typedef_t nutag_smime_opt;#define NUTAG_SMIME_OPT_REF(x) nutag_smime_opt_ref, tag_int_vr(&(x))extern 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)extern tag_typedef_t nutag_smime_protection_mode;#define NUTAG_SMIME_PROTECTION_MODE_REF(x) \           nutag_smime_protection_mode_ref, tag_uint_vr(&(x))extern 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)extern tag_typedef_t nutag_smime_message_digest;#define NUTAG_SMIME_MESSAGE_DIGEST_REF(x) \            nutag_smime_message_digest_ref, tag_str_vr((&x))extern 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)extern tag_typedef_t nutag_smime_signature;#define NUTAG_SMIME_SIGNATURE_REF(x) \            nutag_smime_signature_ref, tag_str_vr((&x))extern 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)extern tag_typedef_t nutag_smime_key_encryption;#define NUTAG_SMIME_KEY_ENCRYPTION_REF(x) \          nutag_smime_key_encryption_ref, tag_str_vr((&x))extern 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)extern tag_typedef_t nutag_smime_message_encryption;#define NUTAG_SMIME_MESSAGE_ENCRYPTION_REF(x) \           nutag_smime_message_encryption_ref, tag_str_vr((&x))extern 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)extern tag_typedef_t nutag_certificate_dir;#define NUTAG_CERTIFICATE_DIR_REF(x) \          nutag_certificate_dir_ref, tag_str_vr((&x))extern 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)extern tag_typedef_t nutag_certificate_phrase;#define NUTAG_CERTIFICATE_PHRASE_REF(x) \          nutag_certificate_phrase_ref, tag_str_vr((&x))extern 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)extern tag_typedef_t nutag_sips_url;#define NUTAG_SIPS_URL_REF(x)   nutag_sips_url_ref, urltag_url_vr(&(x))extern 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)extern tag_typedef_t nutag_registrar;#define NUTAG_REGISTRAR_REF(x)  nutag_registrar_ref, urltag_url_vr(&(x))extern tag_typedef_t nutag_registrar_ref;/** Pointer to SIP parser structure * * @par Used with *    nua_create() * * @par Parameter type *    msg_mclass_t * * * @par Values * * Corresponding tag taking reference parameter is NUTAG_SIP_PARSER_REF() */#define NUTAG_SIP_PARSER(x)     nutag_sip_parser, tag_ptr_v(x)extern tag_typedef_t nutag_sip_parser;#define NUTAG_SIP_PARSER_REF(x) \          nutag_sip_parser_ref, tag_ptr_vr(&(x), (x))extern tag_typedef_t nutag_sip_parser_ref;/** 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)extern tag_typedef_t nutag_auth;#define NUTAG_AUTH_REF(x)	    nutag_auth_ref, tag_str_vr(&(x))extern tag_typedef_t nutag_auth_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)extern tag_typedef_t nutag_authtime;#define NUTAG_AUTHTIME_REF(x)	nutag_authtime_ref, tag_uint_vr(&(x))extern 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)extern tag_typedef_t nutag_event;#define NUTAG_EVENT_REF(x)      nutag_event_ref, tag_ptr_vr(&(x),(x))extern 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 * 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)extern tag_typedef_t nutag_status;#define NUTAG_STATUS_REF(x)     nutag_status_ref, tag_uint_vr(&(x))extern tag_typedef_t nutag_status_ref;/** Response phrase * * @par Used with *    Currently not processed by NUA * * @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)extern tag_typedef_t nutag_phrase;#define NUTAG_PHRASE_REF(x)     nutag_phrase_ref, tag_str_vr(&(x))extern tag_typedef_t nutag_phrase_ref;/** NUA Handle * * @par Used with *    Currently not processed by NUA * * @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)extern tag_typedef_t nutag_handle;#define NUTAG_HANDLE_REF(x)     nutag_handle_ref, nutag_handle_vr(&(x))extern tag_typedef_t nutag_handle_ref;/** Registration handle (used with requests and nua_respond())

⌨️ 快捷键说明

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