Commit 287ca1ad authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua_subnotref.c: do not terminate subscriptions immediately after receiving 200 OK to un-SUBSCRIBE

darcs-hash:20080213142324-88462-8503e72c180f5ab74a084e44d193588763878a25.gz
parent 9bc16ba1
...@@ -376,23 +376,23 @@ static int nua_subscribe_client_response(nua_client_request_t *cr, ...@@ -376,23 +376,23 @@ static int nua_subscribe_client_response(nua_client_request_t *cr,
if (delta > 0) { if (delta > 0) {
nua_dialog_usage_set_refresh(du, delta); nua_dialog_usage_set_refresh(du, delta);
} }
else if (!eu->eu_notified) { else {
/* This is a fetch: subscription was really terminated if (eu->eu_substate == nua_substate_terminated) {
but we wait 32 seconds for NOTIFY. */ if (!eu->eu_notified)
delta = 64 * NTA_SIP_T1 / 1000; eu->eu_substate = nua_substate_embryonic;
}
if (win_messenger_enable)
delta = 4 * 60; /* Wait 4 minutes for NOTIFY from Messenger */
eu->eu_final_wait = 1; if (eu->eu_substate != nua_substate_terminated) {
/* Wait 32 seconds for NOTIFY. */
delta = 64 * NTA_SIP_T1 / 1000;
if (eu->eu_substate == nua_substate_terminated) eu->eu_final_wait = 1;
eu->eu_substate = nua_substate_embryonic;
nua_dialog_usage_set_refresh_range(du, delta, delta); if (!eu->eu_notified && win_messenger_enable)
} delta = 4 * 60; /* Wait 4 minutes for NOTIFY from Messenger */
else {
eu->eu_substate = nua_substate_terminated; nua_dialog_usage_set_refresh_range(du, delta, delta);
}
} }
substate = eu->eu_substate; substate = eu->eu_substate;
......
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