Ignore:
Timestamp:
Oct 13, 2009 2:01:59 PM (15 years ago)
Author:
bennylp
Message:

Ticket #364: Upon unregistration, (un)REGISTER should be sent only after (un)PUBLISH has completed successfully

  • wait for unpublication to complete or some delay expires, before sending unregistration
  • added unpublish_max_wait_time_msec field in account config to control how long to wait
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r2940 r2942  
    993993 
    994994    } else { 
    995         if (param->expiration == -1) { 
     995        if (param->expiration < 1) { 
    996996            /* Could happen if server "forgot" to include Expires header 
    997997             * in the response. We will not renew, so destroy the pubc. 
     
    12021202        acc->online_status = PJ_FALSE; 
    12031203        send_publish(acc_id, PJ_FALSE); 
     1204        /* By ticket #364, don't destroy the session yet (let the callback 
     1205           destroy it) 
    12041206        if (acc->publish_sess) { 
    12051207            pjsip_publishc_destroy(acc->publish_sess); 
    12061208            acc->publish_sess = NULL; 
    12071209        } 
     1210        */ 
    12081211        acc_cfg->publish_enabled = PJ_FALSE; 
    12091212    } 
Note: See TracChangeset for help on using the changeset viewer.