- Timestamp:
- Jun 27, 2008 8:51:55 AM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/test-pjsua
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/mod_call.py
r2067 r2071 12 12 def check_media(ua1, ua2): 13 13 ua1.send("#") 14 ua1.expect("#") 14 15 ua1.send("1122") 15 16 ua2.expect(const.RX_DTMF + "1") … … 71 72 # Hold call by caller 72 73 caller.send("H") 73 #caller.sync_stdout() 74 caller.expect("INVITE sip:") 75 callee.expect("INVITE sip:") 74 76 caller.expect(const.MEDIA_HOLD) 75 77 callee.expect(const.MEDIA_HOLD) … … 82 84 time.sleep(0.5) 83 85 caller.send("v") 84 #caller.sync_stdout() 86 caller.expect("INVITE sip:") 87 callee.expect("INVITE sip:") 88 caller.expect(const.MEDIA_ACTIVE, title="waiting for media active after call hold") 89 callee.expect(const.MEDIA_ACTIVE, title="waiting for media active after call hold") 90 91 # Synchronize stdout 92 caller.sync_stdout() 93 callee.sync_stdout() 94 95 # Test that media is okay 96 check_media(caller, callee) 97 check_media(callee, caller) 98 99 # Synchronize stdout 100 caller.sync_stdout() 101 callee.sync_stdout() 102 103 # Hold call by callee 104 callee.send("H") 105 callee.expect("INVITE sip:") 106 caller.expect("INVITE sip:") 107 caller.expect(const.MEDIA_HOLD) 108 callee.expect(const.MEDIA_HOLD) 109 110 # Synchronize stdout 111 caller.sync_stdout() 112 callee.sync_stdout() 113 114 # Release hold 115 time.sleep(0.1) 116 callee.send("v") 117 callee.expect("INVITE sip:") 118 caller.expect("INVITE sip:") 85 119 callee.expect(const.MEDIA_ACTIVE, title="waiting for media active after call hold") 86 120 caller.expect(const.MEDIA_ACTIVE, title="waiting for media active after call hold") … … 91 125 92 126 # Test that media is okay 93 check_media(caller, callee) 94 check_media(callee, caller) 95 96 # Synchronize stdout 97 caller.sync_stdout() 98 callee.sync_stdout() 99 100 # Hold call by callee 101 callee.send("H") 102 #callee.sync_stdout() 103 caller.expect(const.MEDIA_HOLD) 104 callee.expect(const.MEDIA_HOLD) 105 106 # Synchronize stdout 107 caller.sync_stdout() 108 callee.sync_stdout() 109 110 # Release hold 111 time.sleep(0.5) 112 callee.send("v") 113 #callee.sync_stdout() 114 caller.expect(const.MEDIA_ACTIVE, title="waiting for media active after call hold") 115 callee.expect(const.MEDIA_ACTIVE, title="waiting for media active after call hold") 116 117 # Synchronize stdout 118 caller.sync_stdout() 119 callee.sync_stdout() 120 121 # Test that media is okay 127 # Wait for some time for ICE negotiation 128 time.sleep(0.6) 122 129 check_media(caller, callee) 123 130 check_media(callee, caller) … … 144 151 # UPDATE (by callee) 145 152 callee.send("U") 146 #callee.sync_stdout() 153 callee.expect("UPDATE sip:") 154 caller.expect("UPDATE sip:") 147 155 caller.expect(const.MEDIA_ACTIVE, title="waiting for media active with UPDATE") 148 156 callee.expect(const.MEDIA_ACTIVE, title="waiting for media active with UPDATE") … … 165 173 # In caller we only enable PCMU, in callee we only enable PCMA 166 174 caller.send("Cp") 175 caller.expect("Enter codec") 167 176 caller.send("* 0") 168 177 caller.send("Cp") 178 caller.expect("Enter codec") 169 179 caller.send("pcmu 120") 170 180 171 181 callee.send("Cp") 182 callee.expect("Enter codec") 172 183 callee.send("* 0") 173 184 callee.send("Cp") 185 callee.expect("Enter codec") 174 186 callee.send("pcma 120") 175 187 … … 188 200 # Test when UPDATE fails (by caller) 189 201 caller.send("U") 202 caller.expect("UPDATE sip:") 203 callee.expect("UPDATE sip:") 190 204 callee.expect("SIP/2.0 488") 191 205 caller.expect("SIP/2.0 488") -
pjproject/trunk/pjsip-apps/src/test-pjsua/runall.py
r2068 r2071 17 17 "scripts-call/301_ice_public_a.py", # Unreliable, proxy returns 408 sometimes 18 18 "scripts-call/301_ice_public_b.py", # Doesn't work because OpenSER modifies SDP 19 "scripts-pres/200_publish.py", # Ok from cmdline, error from runall.py 19 20 "scripts-media-playrec/100_resample_lf_8_11.py", # related to clock-rate 11 kHz problem 20 21 "scripts-media-playrec/100_resample_lf_8_22.py", # related to clock-rate 22 kHz problem
Note: See TracChangeset
for help on using the changeset viewer.