Ignore:
Timestamp:
May 28, 2013 12:03:36 PM (11 years ago)
Author:
riza
Message:

Re #1643: Restore configuration reset with added modification on app destroy. It was deleted from code to enable cli retain config values when restarted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r4489 r4525  
    19131913    pj_status_t status = PJ_SUCCESS; 
    19141914    unsigned i; 
     1915    pj_bool_t use_cli = PJ_FALSE; 
     1916    int cli_fe = 0; 
     1917    pj_uint16_t cli_telnet_port = 0; 
    19151918 
    19161919#ifdef STEREO_DEMO 
     
    19701973 
    19711974    status = pjsua_destroy(); 
     1975 
     1976    if (app_config.use_cli) { 
     1977        use_cli = app_config.use_cli; 
     1978        cli_fe = app_config.cli_cfg.cli_fe; 
     1979        cli_telnet_port = app_config.cli_cfg.telnet_cfg.port;    
     1980    } 
     1981 
     1982    /* Reset config */ 
     1983    pj_bzero(&app_config, sizeof(app_config)); 
     1984 
     1985    if (use_cli) {     
     1986        app_config.use_cli = use_cli; 
     1987        app_config.cli_cfg.cli_fe = cli_fe; 
     1988        app_config.cli_cfg.telnet_cfg.port = cli_telnet_port; 
     1989    } 
    19721990 
    19731991    return status; 
Note: See TracChangeset for help on using the changeset viewer.