Commit 836b6b65 authored by Pekka Pessi's avatar Pekka Pessi

nua: removed nua_dialog_usage_set_expires()

darcs-hash:20070411174533-65a35-072d0a66e7ad3565a976c451697c79f1e501b876.gz
parent e08de77a
......@@ -443,24 +443,6 @@ void nua_dialog_deinit(nua_owner_t *own,
ds->ds_terminating = 0;
}
/**@internal
* Set expiration time.
*/
void nua_dialog_usage_set_expires(nua_dialog_usage_t *du,
unsigned delta)
{
if (delta) {
sip_time_t now = sip_now(), expires = now + delta;
if (expires < now)
expires = SIP_TIME_MAX;
du->du_expires = expires;
nua_dialog_usage_set_refresh(du, delta);
}
else
du->du_expires = 0, du->du_refresh = 0;
}
/**@internal
* Set refresh value suitably.
*
......
......@@ -398,7 +398,6 @@ struct nua_dialog_usage {
* Non-zero if the usage is established, SIP_TIME_MAX if there no
* expiration time.
*/
sip_time_t du_expires;
sip_time_t du_refresh; /**< When to refresh */
......@@ -441,8 +440,6 @@ void nua_dialog_deinit(nua_owner_t *own,
int nua_dialog_shutdown(nua_owner_t *owner, nua_dialog_state_t *ds);
void nua_dialog_usage_set_expires(nua_dialog_usage_t *du, unsigned delta);
void nua_dialog_usage_set_refresh(nua_dialog_usage_t *du, unsigned delta);
void nua_dialog_usage_refresh_range(nua_dialog_usage_t *du,
......
......@@ -881,7 +881,7 @@ static int nua_register_client_response(nua_client_request_t *cr,
if (mindelta == SIP_TIME_MAX)
mindelta = 3600;
nua_dialog_usage_set_expires(du, mindelta);
nua_dialog_usage_set_refresh(du, mindelta);
/* RFC 3608 Section 6.1 Procedures at the UA
......@@ -935,7 +935,7 @@ static int nua_register_client_response(nua_client_request_t *cr,
nua_registration_set_ready(nr, 1);
}
else if (du) {
nua_dialog_usage_set_expires(du, 0);
nua_dialog_usage_set_refresh(du, 0);
su_free(nh->nh_home, nr->nr_route);
nr->nr_route = NULL;
......
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