Changeset 454


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

Added --report-file options in siprtp

Location:
pjproject/trunk/pjsip-apps/src/samples
Files:
2 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 
  • pjproject/trunk/pjsip-apps/src/samples/siprtp_report.c

    r443 r454  
    5959    pj_gettimeofday(&now); 
    6060 
     61    if (app.report_filename) 
     62        puts(app.report_filename); 
     63 
    6164    /* Print duration */ 
    6265    if (inv->state >= PJSIP_INV_STATE_CONFIRMED && call->connect_time.sec) { 
Note: See TracChangeset for help on using the changeset viewer.