Changeset 2084
- Timestamp:
- Jun 27, 2008 11:53:00 PM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/test-pjsua
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/inc_cfg.py
r2078 r2084 29 29 # Does this have PUBLISH? 30 30 have_publish = False 31 # Enable stdout buffer? 32 enable_buffer = False 31 33 def __init__( self, 32 34 name, # Instance name … … 38 40 have_publish=False, # Have publish? 39 41 echo_enabled=DEFAULT_ECHO, 40 trace_enabled=DEFAULT_TRACE): 42 trace_enabled=DEFAULT_TRACE, 43 enable_buffer = False): 41 44 # Instance name 42 45 self.name = name … … 63 66 self.echo_enabled = echo_enabled 64 67 self.trace_enabled = trace_enabled 68 self.enable_buffer = enable_buffer 65 69 66 70 … … 84 88 func=None, 85 89 skip=False, 86 post_func=None): 90 post_func=None, 91 need_stdout_buffer=False): 87 92 self.title = title 88 93 self.inst_params = inst_params -
pjproject/trunk/pjsip-apps/src/test-pjsua/inc_sip.py
r2080 r2084 225 225 def __init__(self, name, pjsua_args, sdp, resp_code, 226 226 resp_inc=[], resp_exc=[], use_tcp=False, 227 extra_headers="", complete_msg=""): 227 extra_headers="", complete_msg="", 228 enable_buffer = False): 228 229 self.complete_msg = complete_msg 229 230 self.sdp = sdp … … 234 235 self.extra_headers = extra_headers 235 236 self.inst_param = cfg.InstanceParam("pjsua", pjsua_args) 236 237 self.inst_param.enable_buffer = enable_buffer 238 -
pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
r2078 r2084 109 109 self.echo = inst_param.echo_enabled 110 110 self.trace_enabled = inst_param.trace_enabled 111 fullcmd = G_EXE + " " + inst_param.arg + " --stdout-no-buf --stdout-refresh=5 --stdout-refresh-text=" + const.STDOUT_REFRESH 111 fullcmd = G_EXE + " " + inst_param.arg + " --stdout-refresh=5 --stdout-refresh-text=" + const.STDOUT_REFRESH 112 if not inst_param.enable_buffer: 113 fullcmd = fullcmd + " --stdout-no-buf" 112 114 self.trace("Popen " + fullcmd) 113 115 self.proc = subprocess.Popen(fullcmd, shell=G_INUNIX, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=False) -
pjproject/trunk/pjsip-apps/src/test-pjsua/scripts-call/300_ice_1_1.py
r2025 r2084 7 7 "Callee=use ICE, caller=use ICE", 8 8 [ 9 InstanceParam("callee", "--null-audio --use-ice --max-calls=1" ),10 InstanceParam("caller", "--null-audio --use-ice --max-calls=1" )9 InstanceParam("callee", "--null-audio --use-ice --max-calls=1", enable_buffer=True), 10 InstanceParam("caller", "--null-audio --use-ice --max-calls=1", enable_buffer=True) 11 11 ] 12 12 ) -
pjproject/trunk/pjsip-apps/src/test-pjsua/scripts-sendto/200_ice_success_2.py
r2034 r2084 1 # $Id :$1 # $Id$ 2 2 import inc_sip as sip 3 3 import inc_sdp as sdp … … 32 32 sendto_cfg = sip.SendtoCfg( "caller sends only one component", 33 33 pjsua_args=args, sdp=sdp, resp_code=200, 34 resp_inc=include, resp_exc=exclude) 34 resp_inc=include, resp_exc=exclude, 35 enable_buffer = True) 35 36
Note: See TracChangeset
for help on using the changeset viewer.