Changeset 2069
- Timestamp:
- Jun 26, 2008 10:20:11 PM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2067 r2069 2493 2493 puts("| S Send arbitrary REQUEST | Cp Codec priorities | f Save config |"); 2494 2494 puts("+------------------------------+--------------------------+-------------------+"); 2495 puts("| q QUIT sleep MS echo [0|1 ]n: detect NAT type |");2495 puts("| q QUIT sleep MS echo [0|1|txt] n: detect NAT type |"); 2496 2496 puts("+=============================================================================+"); 2497 2497 … … 3545 3545 } 3546 3546 3547 cmd_echo = pj_strtoul(&tmp);3547 cmd_echo = *tmp.ptr != '0' || tmp.slen!=1; 3548 3548 } 3549 3549 break; -
pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
r2067 r2069 55 55 ra = re.compile(const.ASSERT, re.I) 56 56 rr = re.compile(const.STDOUT_REFRESH) 57 t0 = time.time() 57 58 def __init__(self, inst_param): 58 59 self.inst_param = inst_param … … 99 100 def sync_stdout(self): 100 101 self.trace("sync_stdout") 101 self.send("echo 1") 102 self.expect("echo 1") 102 cmd = "echo 1" + str(random.randint(1000,9999)) 103 self.send(cmd) 104 self.expect(cmd) 103 105 104 106 def wait(self): … … 107 109 def trace(self, s): 108 110 if self.trace_enabled: 109 print self.name + ": " + "====== " + s + " ======" 111 now = time.time() 112 fmt = self.name + ": " + "================== " + s + " ==================" + " [at t=%(time)03d]" 113 print fmt % {'time':int(now - self.t0)} 110 114 111 115 #########################
Note: See TracChangeset
for help on using the changeset viewer.