Ignore:
Timestamp:
Oct 14, 2009 1:58:04 AM (10 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/include/pjsua-lib/pjsua.h

    r2942 r2943  
    17261726 
    17271727/** 
     1728 * Default maximum time to wait for account unregistration transactions to 
     1729 * complete during library shutdown sequence. 
     1730 * 
     1731 * Default: 4000 (4 seconds) 
     1732 */ 
     1733#ifndef PJSUA_UNREG_TIMEOUT 
     1734#   define PJSUA_UNREG_TIMEOUT      4000 
     1735#endif 
     1736 
     1737 
     1738/** 
    17281739 * Default PUBLISH expiration 
    17291740 */ 
     
    19191930     */ 
    19201931    unsigned        reg_timeout; 
     1932 
     1933    /** 
     1934     * Specify the maximum time to wait for unregistration requests to 
     1935     * complete during library shutdown sequence. 
     1936     * 
     1937     * Default: PJSUA_UNREG_TIMEOUT 
     1938     */ 
     1939    unsigned        unreg_timeout; 
    19211940 
    19221941    /**  
Note: See TracChangeset for help on using the changeset viewer.