- Timestamp:
- Jun 26, 2008 8:23:47 PM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2061 r2067 465 465 OPT_CAPTURE_LAT, OPT_PLAYBACK_LAT, OPT_NO_TONES, 466 466 OPT_STDOUT_REFRESH, OPT_STDOUT_REFRESH_TEXT, 467 #ifdef _IONBF 468 OPT_STDOUT_NO_BUF, 469 #endif 467 470 OPT_AUTO_UPDATE_NAT,OPT_USE_COMPACT_FORM,OPT_DIS_CODEC 468 471 }; … … 555 558 { "stdout-refresh", 1, 0, OPT_STDOUT_REFRESH}, 556 559 { "stdout-refresh-text", 1, 0, OPT_STDOUT_REFRESH_TEXT}, 560 #ifdef _IONBF 561 { "stdout-no-buf", 0, 0, OPT_STDOUT_NO_BUF }, 562 #endif 557 563 { "snd-auto-close", 1, 0, OPT_SND_AUTO_CLOSE}, 558 564 { "no-tones", 0, 0, OPT_NO_TONES}, … … 1146 1152 stdout_refresh_text = pj_optarg; 1147 1153 break; 1154 1155 #ifdef _IONBF 1156 case OPT_STDOUT_NO_BUF: 1157 setvbuf(stdout, NULL, _IONBF, 0); 1158 break; 1159 #endif 1148 1160 1149 1161 case OPT_CAPTURE_LAT: -
pjproject/trunk/pjsip-apps/src/test-pjsua/mod_call.py
r2062 r2067 37 37 38 38 # Callee waits for call and answers with 180/Ringing 39 time.sleep( 1)39 time.sleep(0.2) 40 40 callee.expect(const.EVENT_INCOMING_CALL) 41 41 callee.send("a") … … 53 53 54 54 # Wait until call is connected in both endpoints 55 time.sleep( 1)55 time.sleep(0.2) 56 56 caller.expect(const.STATE_CONFIRMED) 57 57 callee.expect(const.STATE_CONFIRMED) … … 60 60 caller.sync_stdout() 61 61 callee.sync_stdout() 62 time.sleep( 1)63 caller.sync_stdout() 64 callee.sync_stdout() 65 66 # Test that media is okay 67 time.sleep( 2)62 time.sleep(0.1) 63 caller.sync_stdout() 64 callee.sync_stdout() 65 66 # Test that media is okay 67 time.sleep(0.3) 68 68 check_media(caller, callee) 69 69 check_media(callee, caller) … … 80 80 81 81 # Release hold 82 time.sleep( 2)82 time.sleep(0.5) 83 83 caller.send("v") 84 84 #caller.sync_stdout() … … 109 109 110 110 # Release hold 111 time.sleep( 2)111 time.sleep(0.5) 112 112 callee.send("v") 113 113 #callee.sync_stdout() … … 138 138 139 139 # Test that media is okay 140 time.sleep( 2)140 time.sleep(0.1) 141 141 check_media(caller, callee) 142 142 check_media(callee, caller) … … 153 153 154 154 # Test that media is okay 155 time.sleep( 2)155 time.sleep(0.1) 156 156 check_media(caller, callee) 157 157 check_media(callee, caller) … … 182 182 183 183 # Test that media is still okay 184 time.sleep( 2)184 time.sleep(0.1) 185 185 check_media(caller, callee) 186 186 check_media(callee, caller) … … 194 194 195 195 # Test that media is still okay 196 time.sleep( 2)196 time.sleep(0.1) 197 197 check_media(callee, caller) 198 198 check_media(caller, callee) 199 199 200 200 # Hangup call 201 time.sleep( 1)201 time.sleep(0.1) 202 202 caller.send("h") 203 caller.sync_stdout()204 203 205 204 # Wait until calls are cleared in both endpoints -
pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
r2062 r2067 60 60 self.echo = inst_param.echo_enabled 61 61 self.trace_enabled = inst_param.trace_enabled 62 fullcmd = G_EXE + " " + inst_param.arg + " --stdout- refresh=5 --stdout-refresh-text=" + const.STDOUT_REFRESH62 fullcmd = G_EXE + " " + inst_param.arg + " --stdout-no-buf --stdout-refresh=5 --stdout-refresh-text=" + const.STDOUT_REFRESH 63 63 self.trace("Popen " + fullcmd) 64 64 self.proc = subprocess.Popen(fullcmd, shell=G_INUNIX, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=False)
Note: See TracChangeset
for help on using the changeset viewer.