Ignore:
Timestamp:
Mar 6, 2009 4:24:43 PM (15 years ago)
Author:
nanang
Message:
  • Fixed compile errors/warnings for Symbian targets.
  • Updated module dependencies of symbian auddev implementations.
  • Minor updates, e.g: missing update on symbian_ua UID changing, updated default log level for logfile.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjsip-apps/src/symbian_ua/ua.cpp

    r2483 r2491  
    2424 
    2525#define THIS_FILE       "symbian_ua.cpp" 
    26 #define LOG_LEVEL       3 
     26#define CON_LOG_LEVEL   3 // console log level 
     27#define FILE_LOG_LEVEL  4 // logfile log level 
    2728 
    2829// 
     
    282283     
    283284    /* Set log level */ 
    284     pj_log_set_level(LOG_LEVEL); 
     285    pj_log_set_level(CON_LOG_LEVEL); 
    285286 
    286287    /* Create pjsua first! */ 
     
    330331     
    331332    pjsua_logging_config_default(&log_cfg); 
    332     log_cfg.level = LOG_LEVEL; 
    333     log_cfg.console_level = LOG_LEVEL; 
     333    log_cfg.level = FILE_LOG_LEVEL; 
     334    log_cfg.console_level = CON_LOG_LEVEL; 
    334335    log_cfg.cb = &log_writer; 
    335336    log_cfg.log_filename = pj_str("C:\\data\\symbian_ua.log"); 
     
    486487static void PrintMainMenu()  
    487488{ 
    488     PJ_LOG(3, (THIS_FILE, "\n\n" 
     489    const char *menu = 
     490            "\n\n" 
    489491            "Main Menu:\n" 
    490492            "  d    Enable/disable codecs\n" 
     
    500502            "  o    Set account online\n" 
    501503            "  O    Set account offline\n" 
    502             "  w    Quit\n")); 
     504            "  w    Quit\n"; 
     505     
     506    PJ_LOG(3, (THIS_FILE, menu)); 
    503507} 
    504508 
    505509static void PrintCodecMenu()  
    506510{ 
    507     PJ_LOG(3, (THIS_FILE, "\n\n" 
     511    const char *menu =  
     512            "\n\n" 
    508513            "Codec Menu:\n" 
    509514            "  a    Enable all codecs\n" 
     
    520525            "  p    Enable only GSM\n" 
    521526            "  t    Enable only PCMU\n" 
    522             "  w    Enable only PCMA\n")); 
     527            "  w    Enable only PCMA\n"; 
     528     
     529    PJ_LOG(3, (THIS_FILE, menu)); 
    523530} 
    524531 
Note: See TracChangeset for help on using the changeset viewer.