Ignore:
Timestamp:
May 18, 2006 6:34:21 PM (18 years ago)
Author:
bennylp
Message:

Added --report-file options in siprtp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/siprtp.c

    r452 r454  
    4848"   --app-log-level=N       Set app screen log verbosity (default=3)\n" 
    4949"   --log-file=FILE         Write log to file FILE\n" 
     50"   --report-file=FILE      Write report to file FILE\n" 
    5051"\n" 
    5152/* Don't support this anymore, because codec is properly examined in 
     
    156157    int                  log_level; 
    157158    char                *log_filename; 
     159    char                *report_filename; 
    158160 
    159161    struct codec         audio_codec; 
     
    821823    enum { OPT_START, 
    822824           OPT_APP_LOG_LEVEL, OPT_LOG_FILE,  
    823            OPT_A_PT, OPT_A_NAME, OPT_A_CLOCK, OPT_A_BITRATE, OPT_A_PTIME }; 
     825           OPT_A_PT, OPT_A_NAME, OPT_A_CLOCK, OPT_A_BITRATE, OPT_A_PTIME, 
     826           OPT_REPORT_FILE }; 
    824827 
    825828    struct pj_getopt_option long_options[] = { 
     
    834837        { "app-log-level",  1, 0, OPT_APP_LOG_LEVEL }, 
    835838        { "log-file",       1, 0, OPT_LOG_FILE }, 
     839 
     840        { "report-file",    1, 0, OPT_REPORT_FILE }, 
    836841 
    837842        /* Don't support this anymore, see comments in USAGE above. 
     
    927932        case OPT_A_PTIME: 
    928933            app.audio_codec.ptime = atoi(pj_optarg); 
     934            break; 
     935        case OPT_REPORT_FILE: 
     936            app.report_filename = pj_optarg; 
    929937            break; 
    930938 
Note: See TracChangeset for help on using the changeset viewer.