Ignore:
Timestamp:
Mar 8, 2006 12:37:22 PM (18 years ago)
Author:
bennylp
Message:

Added options to disable microphone device, usefull for streaming server (some systems only have sound player)

File:
1 edited

Legend:

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

    r305 r312  
    8787    puts  ("  --uwb               Enable ultra-wideband codecs and set clock-rate to 32KHz"); 
    8888    puts  ("  --null-audio        Use NULL audio device"); 
     89    puts  ("  --no-mic            Disable microphone device"); 
    8990    puts  ("  --play-file=file    Play WAV file in conference bridge"); 
    9091    puts  ("  --auto-play         Automatically play the file (to incoming calls only)"); 
     
    218219    int option_index; 
    219220    enum { OPT_CONFIG_FILE, OPT_LOG_FILE, OPT_LOG_LEVEL, OPT_APP_LOG_LEVEL,  
    220            OPT_HELP, OPT_VERSION, OPT_NULL_AUDIO, 
     221           OPT_HELP, OPT_VERSION, OPT_NULL_AUDIO, OPT_NO_MIC, 
    221222           OPT_LOCAL_PORT, OPT_PROXY, OPT_OUTBOUND_PROXY, OPT_REGISTRAR, 
    222223           OPT_REG_TIMEOUT, OPT_ID, OPT_CONTACT,  
     
    241242        { "uwb",        0, 0, OPT_UWB}, 
    242243        { "null-audio", 0, 0, OPT_NULL_AUDIO}, 
     244        { "no-mic",     0, 0, OPT_NO_MIC}, 
    243245        { "local-port", 1, 0, OPT_LOCAL_PORT}, 
    244246        { "proxy",      1, 0, OPT_PROXY}, 
     
    344346            break; 
    345347 
     348        case OPT_NO_MIC: 
     349            pjsua.no_mic = 1; 
     350            break; 
     351 
    346352        case OPT_WB: 
    347353            pjsua.clock_rate = 16000; 
Note: See TracChangeset for help on using the changeset viewer.