Ignore:
Timestamp:
Oct 14, 2009 1:58:04 AM (12 years ago)
Author:
bennylp
Message:

Ticket #970: More gracefull PJSUA-LIB shutdown sequence. Enhancements:

  • wait for unregistration to complete (or a preconfigured delay expires)
  • new account config field to set the maximum delay to wait for unregistration
  • rejects incoming requests (INVITE, SUBSCRIBE, and OPTIONS) when shutdown is in progress
File:
1 edited

Legend:

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

    r2938 r2943  
    645645    if (dlg || tsx) 
    646646        return PJ_FALSE; 
     647 
     648    /* Don't want to accept the call if shutdown is in progress */ 
     649    if (pjsua_var.thread_quit_flag) { 
     650        pjsip_endpt_respond_stateless(pjsua_var.endpt, rdata,  
     651                                      PJSIP_SC_TEMPORARILY_UNAVAILABLE, NULL, 
     652                                      NULL, NULL); 
     653        return PJ_TRUE; 
     654    } 
    647655 
    648656    PJSUA_LOCK(); 
Note: See TracChangeset for help on using the changeset viewer.