Commit 3889ed13 authored by Pekka Pessi's avatar Pekka Pessi

nua_tag.h, nua_tag.c: added NUTAG_SUPPORTED().

darcs-hash:20060925180619-65a35-3268e79f1993b97bdb19f1c120e47c53547ed224.gz
parent 87dabc6e
......@@ -135,6 +135,7 @@ tag_typedef_t nutag_refer_event = SIPHDRTAG_NAMED_TYPEDEF(refer_event, event);
tag_typedef_t nutag_refer_pause = BOOLTAG_TYPEDEF(refer_pause);
tag_typedef_t nutag_user_agent = STRTAG_TYPEDEF(user_agent);
tag_typedef_t nutag_allow = STRTAG_TYPEDEF(allow);
tag_typedef_t nutag_supported = STRTAG_TYPEDEF(supported);
tag_typedef_t nutag_path_enable = BOOLTAG_TYPEDEF(path_enable);
tag_typedef_t nutag_service_route_enable =
BOOLTAG_TYPEDEF(service_route_enable);
......@@ -143,4 +144,3 @@ tag_typedef_t nutag_detect_network_updates = UINTTAG_TYPEDEF(detect_network_upda
tag_typedef_t _nutag_add_contact = BOOLTAG_TYPEDEF(add_contact);
tag_typedef_t _nutag_copy = BOOLTAG_TYPEDEF(copy);
......@@ -1465,6 +1465,38 @@ 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.
*/
#define NUTAG_SUPPORTED(x) nutag_supported, tag_str_v(x)
SOFIAPUBVAR tag_typedef_t nutag_supported;
#define NUTAG_SUPPORTED_REF(x) nutag_supported_ref, tag_str_vr(&(x))
SOFIAPUBVAR tag_typedef_t nutag_supported_ref;
/** Call state
*
* @par Used with
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment