Changeset 1670
- Timestamp:
- Jan 8, 2008 10:50:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r1657 r1670 36 36 " Program options:\n" 37 37 " --count=N, -c Set number of calls to create (default:1) \n" 38 " --gap=N -g Set call gapping to N msec (default:0)\n" 38 39 " --duration=SEC, -d Set maximum call duration (default:unlimited) \n" 39 40 " --auto-quit, -q Quit when calls have been completed (default:no)\n" 41 " --call-report -R Display report on call termination (default:yes)\n" 40 42 "\n" 41 43 " Address and ports options:\n" … … 160 162 { 161 163 unsigned max_calls; 164 unsigned call_gap; 165 pj_bool_t call_report; 162 166 unsigned uac_calls; 163 167 unsigned duration; … … 759 763 (int)inv->cause_text.slen, 760 764 inv->cause_text.ptr)); 761 PJ_LOG(3,(THIS_FILE, "Call #%d statistics:", call->index)); 762 print_call(call->index); 765 766 if (app.call_report) { 767 PJ_LOG(3,(THIS_FILE, "Call #%d statistics:", call->index)); 768 print_call(call->index); 769 } 763 770 764 771 … … 847 854 struct pj_getopt_option long_options[] = { 848 855 { "count", 1, 0, 'c' }, 856 { "gap", 1, 0, 'g' }, 857 { "call-report", 0, 0, 'R' }, 849 858 { "duration", 1, 0, 'd' }, 850 859 { "auto-quit", 0, 0, 'q' }, … … 899 908 /* Parse options */ 900 909 pj_optind = 0; 901 while((c=pj_getopt_long(argc,argv, "c:d:p:r:i:l: q",910 while((c=pj_getopt_long(argc,argv, "c:d:p:r:i:l:g:qR", 902 911 long_options, &option_index))!=-1) 903 912 { … … 909 918 return 1; 910 919 } 920 break; 921 case 'g': 922 app.call_gap = atoi(pj_optarg); 923 break; 924 case 'R': 925 app.call_report = PJ_TRUE; 911 926 break; 912 927 case 'd': … … 1831 1846 continue; 1832 1847 hangup_call(i); 1848 pj_thread_sleep(app.call_gap); 1833 1849 } 1834 1850 … … 2113 2129 break; 2114 2130 } 2131 pj_thread_sleep(app.call_gap); 2115 2132 } 2116 2133
Note: See TracChangeset
for help on using the changeset viewer.