Commit d24ab6df authored by Pekka Pessi's avatar Pekka Pessi

NUTAG_KEEPALIVE() now uses milliseconds.

Changes in sofia-sip/nua_tag.h, nua_params.c, nua_register.c, test_nua.c.

darcs-hash:20060504093105-65a35-9e126a37d5eb8ac8f5a37d576f4a5a23000ff49c.gz
parent 63a2849b
......@@ -107,7 +107,7 @@ int nua_stack_set_defaults(nua_handle_t *nh,
NHP_SET(nhp, outbound, su_strdup(home, "natify"));
NHP_SET(nhp, keepalive, 120);
NHP_SET(nhp, keepalive, 120000);
if (!nhp->nhp_allow ||
!nhp->nhp_supported ||
......
This diff is collapsed.
......@@ -921,7 +921,7 @@ 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;
/** Keepalive interval in seconds.
/** Keepalive interval in milliseconds.
*
* @par Used with
* nua_register() \n
......@@ -935,7 +935,7 @@ extern tag_typedef_t nutag_auth_ref;
*
* @par Values
* - 0 - disable keepalives
* - 90 - default value (90 seconds)
* - 120000 - default value (120000 milliseconds, 120 seconds)
*
* Corresponding tag taking reference parameter is
* NUTAG_KEEPALIVE_REF()
......@@ -959,7 +959,10 @@ extern tag_typedef_t nutag_keepalive_ref;
* unsigned int
*
* @par Values
* Transport-level keepalive interval for streams.
*
* 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()
......
......@@ -1645,7 +1645,7 @@ int test_register(struct context *ctx)
TEST_1(a_reg->nh = nua_handle(a->nua, a_reg, TAG_END()));
REGISTER(a, a_reg, a_reg->nh, SIPTAG_TO(a->to), NUTAG_KEEPALIVE(1),
REGISTER(a, a_reg, a_reg->nh, SIPTAG_TO(a->to), NUTAG_KEEPALIVE(1000),
TAG_END());
run_a_until(ctx, -1, save_until_final_response);
......
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