Commit 6918c2d0 authored by Pekka Pessi's avatar Pekka Pessi

Added NUTAG_RETRY_COUNT() and NUTAG_MAX_SUBSCRIPTIONS().

darcs-hash:20051007205048-65a35-60ce81e135a55618c7fc92c5907a84f7ceb8a816.gz
parent 1606d92f
......@@ -941,8 +941,8 @@ void ua_set_params(nua_t *nua, nua_handle_t *nh, nua_event_t e,
return;
n = tl_gets(tags,
/* NUTAG_RETRY_COUNT_REF(retry_count), */
/* NUTAG_MAX_SUBSCRIPTIONS_REF(max_subscriptions), */
NUTAG_RETRY_COUNT_REF(retry_count),
NUTAG_MAX_SUBSCRIPTIONS_REF(max_subscriptions),
NUTAG_ENABLEINVITE_REF(invite_enable),
NUTAG_AUTOALERT_REF(auto_alert),
......@@ -1209,8 +1209,8 @@ ua_get_params(nua_t *nua, nua_handle_t *nh, nua_event_t e, tagi_t const *tags)
(tmphome, tags,
TAG_IF(has_from, SIPTAG_FROM(from)),
/* TIF(NUTAG_RETRY_COUNT, retry_count), */
/* TIF(NUTAG_MAX_SUBSCRIPTIONS, max_subscriptions), */
TIF(NUTAG_RETRY_COUNT, retry_count),
TIF(NUTAG_MAX_SUBSCRIPTIONS, max_subscriptions),
TIF(NUTAG_ENABLEINVITE, invite_enable),
TIF(NUTAG_AUTOALERT, auto_alert),
......
......@@ -59,9 +59,12 @@ tag_typedef_t nutag_media_enable = BOOLTAG_TYPEDEF(media_enable);
tag_typedef_t nutag_soa_session = PTRTAG_TYPEDEF(soa_session);
tag_typedef_t nutag_soa_name = STRTAG_TYPEDEF(soa_name);
tag_typedef_t nutag_media_subsystem = PTRTAG_TYPEDEF(media_session);
tag_typedef_t nutag_media_subsystem = PTRTAG_TYPEDEF(media_subsystem);
tag_typedef_t nutag_media_session = PTRTAG_TYPEDEF(media_session);
tag_typedef_t nutag_retry_count = UINTTAG_TYPEDEF(retry_count);
tag_typedef_t nutag_max_subscriptions = UINTTAG_TYPEDEF(max_subscriptions);
tag_typedef_t nutag_callstate = INTTAG_TYPEDEF(callstate);
tag_typedef_t nutag_offer_recv = BOOLTAG_TYPEDEF(offer_recv);
tag_typedef_t nutag_answer_recv = BOOLTAG_TYPEDEF(answer_recv);
......
......@@ -101,6 +101,54 @@ extern tag_typedef_t nutag_address;
#define NUTAG_ADDRESS_REF(x) nutag_address_ref, tag_str_vr(&(x))
extern tag_typedef_t nutag_address_ref;
/**Set request retry count.
*
* Retry count determines how many times stack will automatically retry
* after an recoverable error response, like 302, 401 or 407.
*
* @par Used with
* nua_set_params() \n
* nua_get_params()
*
* @par Parameter type
* unsigned
*
* @par Values
* @c 0 Never retry automatically \n
*
* Corresponding tag taking reference parameter is NUTAG_RETRY_COUNT_REF()
*/
#define NUTAG_RETRY_COUNT(x) nutag_retry_count, tag_uint_v(x)
extern tag_typedef_t nutag_retry_count;
#define NUTAG_RETRY_COUNT_REF(x) nutag_retry_count_ref, tag_uint_vr(&(x))
extern tag_typedef_t nutag_retry_count_ref;
/**Set maximum number of simultaneous subscribers per single event server.
*
* Determines how many subscribers can simultaneously subscribe to a single
* event.
*
* @par Used with
* nua_set_params() \n
* nua_get_params()
*
* @par Parameter type
* unsigned
*
* @par Values
* @c 0 Do not allow any subscriptions \n
*
* Corresponding tag taking reference parameter is NUTAG_MAX_SUBSCRIPTIONS_REF()
*/
#define NUTAG_MAX_SUBSCRIPTIONS(x) nutag_max_subscriptions, tag_uint_v(x)
extern tag_typedef_t nutag_max_subscriptions;
#define NUTAG_MAX_SUBSCRIPTIONS_REF(x) \
nutag_max_subscriptions_ref, tag_uint_vr(&(x))
extern tag_typedef_t nutag_max_subscriptions_ref;
/* Intentionally undocumented */
#define NUTAG_UICC(x) nutag_uicc, tag_str_v(x)
extern tag_typedef_t nutag_uicc;
......@@ -299,7 +347,7 @@ extern tag_typedef_t nutag_min_se;
extern tag_typedef_t nutag_min_se_ref;
enum nua_session_refresher {
nua_no_refresher, nua_local_refresher, nua_remote_refresher
nua_no_refresher, nua_local_refresher, nua_remote_refresher, nua_any_refresher
};
/** Specify preferred refresher.
......@@ -311,12 +359,14 @@ enum nua_session_refresher {
* nua_get_params()
*
* @par Parameter type
* enum { nua_no_refresher, nua_local_refresher, nua_remote_refresher }
* enum { #nua_no_refresher, #nua_local_refresher, #nua_remote_refresher,
* #nua_any_refresher }
*
* @par Values
* @c nua_no_refresher \n
* @c nua_no_refresher (session timers are disabled) \n
* @c nua_local_refresher \n
* @c nua_remote_refresher
* @c nua_remote_refresher \n
* @c nua_any_refresher (default) \n
*
* Corresponding tag taking reference parameter is NUTAG_SESSION_REFRESHER_REF()
*/
......
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