2008/2/13, rajeev k <[EMAIL PROTECTED]>: > I am using 1.12.7. The stack has a problem when removing a > subscription(expire value 0), that it will respond terminated notify > (Subscription-State: terminated) with '481 Call does not exists'. Has anyone > faced this?
The function nua_subscribe_client_response() in nua_subnotref.c has code for handling the case with fetch (the initial SUBSCRIBE has expire value 0). I guess you could remove the condition from the if (!eu->eu_notified) branch like this and see if that causes problems: diff -c /home/ppessi/B/sofia-sip-1.12.8/_darcs/pristine/libsofia-sip-ua/nua/nua_subnotref.c /home/ppessi/B/sofia-sip-1.12.8/libsofia-sip-ua/nua/nua_subnotref.c *** /home/ppessi/B/sofia-sip-1.12.8/_darcs/pristine/libsofia-sip-ua/nua/nua_subnotref.c 2008-02-13 15:28:43.000000000 +0200 --- /home/ppessi/B/sofia-sip-1.12.8/libsofia-sip-ua/nua/nua_subnotref.c 2008-02-13 15:28:43.000000000 +0200 *************** *** 376,387 **** if (delta > 0) { nua_dialog_usage_set_refresh(du, delta); } ! else if (!eu->eu_notified) { ! /* This is a fetch: subscription was really terminated ! but we wait 32 seconds for NOTIFY. */ delta = 64 * NTA_SIP_T1 / 1000; ! if (win_messenger_enable) delta = 4 * 60; /* Wait 4 minutes for NOTIFY from Messenger */ eu->eu_final_wait = 1; --- 376,386 ---- if (delta > 0) { nua_dialog_usage_set_refresh(du, delta); } ! else { ! /* Wait 32 seconds for NOTIFY. */ delta = 64 * NTA_SIP_T1 / 1000; ! if (!eu->eu_notified && win_messenger_enable) delta = 4 * 60; /* Wait 4 minutes for NOTIFY from Messenger */ eu->eu_final_wait = 1; *************** *** 391,399 **** nua_dialog_usage_set_refresh_range(du, delta, delta); } - else { - eu->eu_substate = nua_substate_terminated; - } substate = eu->eu_substate; --- 390,395 ---- > Is this bug fixed in version 1.12.8? Nope, sorry. There was some bugs fixed on the notifier side, however. -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel