Ignore:
Timestamp:
Aug 17, 2009 3:33:45 PM (15 years ago)
Author:
bennylp
Message:

Misc (ticket #915): added reload command in pjsua to shutdown and reinitialize the library

File:
1 edited

Legend:

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

    r2867 r2892  
    147147static void ring_stop(pjsua_call_id call_id); 
    148148 
     149pj_bool_t app_restart; 
    149150 
    150151/***************************************************************************** 
     
    28242825    puts("|  S  Send arbitrary REQUEST   | Cp  Codec priorities     |  f  Save config   |"); 
    28252826    puts("+------------------------------+--------------------------+-------------------+"); 
    2826     puts("|  q  QUIT       sleep MS     echo [0|1|txt]        n: detect NAT type        |"); 
     2827    puts("|  q  QUIT   L  ReLoad   sleep MS   echo [0|1|txt]     n: detect NAT type     |"); 
    28272828    puts("+=============================================================================+"); 
    28282829 
     
    41044105 
    41054106 
     4107        case 'L':   /* Restart */ 
     4108            app_restart = PJ_TRUE; 
     4109            /* Continues below */ 
     4110 
    41064111        case 'q': 
    41074112            goto on_exit; 
    4108  
    41094113 
    41104114        case 'R': 
     
    42384242    unsigned i; 
    42394243    pj_status_t status; 
     4244 
     4245    app_restart = PJ_FALSE; 
    42404246 
    42414247    /* Create pjsua */ 
Note: See TracChangeset for help on using the changeset viewer.