Commit 7e8db812 authored by Pekka Pessi's avatar Pekka Pessi

nua_session.c: default to initiate session refreshes

Use local refresher unless remote end explicitly indicates that it takes
care of refreshing the session. Bug reported and initial patch by Timo
Bruhn.

darcs-hash:20090105123112-db55f-33d7a93a2d36660bcef2602e9f52f08c7fd0d14f.gz
parent 45a398f7
......@@ -4428,10 +4428,9 @@ void session_timer_negotiate(struct session_timer *t)
t->refresher = nua_local_refresher;
else if (t->remote.refresher == nua_remote_refresher)
t->refresher = nua_remote_refresher;
else if (t->local.refresher == nua_local_refresher)
t->refresher = nua_local_refresher;
else
t->refresher = nua_remote_refresher;
/* Default to initiate refreshes */
t->refresher = nua_local_refresher;
t->interval = t->remote.expires;
if (t->interval == 0)
......
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