2008/8/26 Jerry Richards <[EMAIL PROTECTED]>: > It appears my sofia-sip NUA (based on v1.12.7) is not refreshing a session > IAW RFC 4028. Here is the scenario: > > Sec Event > ----- ----------- > 102: NUA sends INVITE with "Supported: timer", "Session-Expires: 3600" > 111: UAS sends 200 OK with "Supported: timer" only > 111: UAS sends re-INVITE with "Supported: timer" only > 111: NUA sends 200 OK with "Supported: timer", "Session-Expires > 3600;refresher=uac" > 2480: NUA sends BYE with "Reason: SIP;cause=408;text="Session timeout" > > Why doesn't the NUA refresh the session?
Because it is UAS in the 2nd INVITE transaction. (NUA sends 200 OK.) >Also, why does the NUA end the > session after 2480 seconds, instead of 3600 seconds? RFC 4028: Similarly, if the side not performing refreshes does not receive a session refresh request before the session expiration, it SHOULD send a BYE to terminate the session, slightly before the session expiration. The minimum of 32 seconds and one third of the session interval is RECOMMENDED. Firewalls and NAT ALGs may be very unforgiving about allowing SIP traffic to pass after the expiration time of the session. This is why the BYE should be sent before the expiration. > Do I need to refresh the session in my NUA application or does sofia-sip > automatically take care of refreshing? It should. After 1.12.7 the "timer" usage has been made a little bit more robust: Mon Apr 7 20:01:00 EEST 2008 [EMAIL PROTECTED] * nua_session.c: if timer is Require'd default to local refresher if Session-Expires has no refresher parameter { hunk ./libsofia-sip-ua/nua/nua_session.c 4192 + } + else if (t->remote.require) { + /* Require: timer but no refresher parameter in Session-Expires header */ + t->remote.refresher = nua_local_refresher; } -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel