Changeset 2012 for pjproject/trunk/pjsip-apps/src/test-pjsua/mod_call.py
- Timestamp:
- Jun 12, 2008 6:10:22 PM (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
-
Property
svn:ignore
set to
*.pyc
-
Property
svn:ignore
set to
-
pjproject/trunk/pjsip-apps/src/test-pjsua/mod_call.py
r2009 r2012 51 51 caller.expect(const.STATE_CONFIRMED) 52 52 53 # Synchronize stdout 54 caller.send("echo 1") 55 caller.expect("echo 1") 56 callee.send("echo 1") 57 callee.expect("echo 1") 58 59 # Test that media is okay (with RFC 2833 DTMF) 60 time.sleep(2) 61 caller.send("#") 62 caller.send("1122") 63 callee.expect(const.RX_DTMF + "1") 64 callee.expect(const.RX_DTMF + "1") 65 callee.expect(const.RX_DTMF + "2") 66 callee.expect(const.RX_DTMF + "2") 67 53 68 # Hold call 54 time.sleep(2)55 69 caller.send("H") 56 70 caller.expect(const.MEDIA_HOLD) … … 63 77 callee.expect(const.MEDIA_ACTIVE) 64 78 65 # UPDATE 79 # Synchronize stdout 80 caller.send("echo 1") 81 caller.expect("echo 1") 82 callee.send("echo 1") 83 callee.expect("echo 1") 84 85 # Test that media is okay (with RFC 2833 DTMF) 86 caller.send("#") 87 caller.send("1122") 88 callee.expect(const.RX_DTMF + "1") 89 callee.expect(const.RX_DTMF + "1") 90 callee.expect(const.RX_DTMF + "2") 91 callee.expect(const.RX_DTMF + "2") 92 93 # Synchronize stdout 94 caller.send("echo 1") 95 caller.expect("echo 1") 96 callee.send("echo 1") 97 callee.expect("echo 1") 98 99 # UPDATE (by caller) 100 caller.send("U") 101 caller.expect(const.MEDIA_ACTIVE) 102 callee.expect(const.MEDIA_ACTIVE) 103 104 # Synchronize stdout 105 caller.send("echo 1") 106 caller.expect("echo 1") 107 callee.send("echo 1") 108 callee.expect("echo 1") 109 110 # Test that media is okay (with RFC 2833 DTMF) 66 111 time.sleep(2) 112 caller.send("#") 113 caller.send("1122") 114 callee.expect(const.RX_DTMF + "1") 115 callee.expect(const.RX_DTMF + "1") 116 callee.expect(const.RX_DTMF + "2") 117 callee.expect(const.RX_DTMF + "2") 118 119 # UPDATE (by callee) 67 120 callee.send("U") 68 121 callee.expect(const.MEDIA_ACTIVE) 69 122 caller.expect(const.MEDIA_ACTIVE) 70 123 71 # Send DTMF 124 # Synchronize stdout 125 caller.send("echo 1") 126 caller.expect("echo 1") 127 callee.send("echo 1") 128 callee.expect("echo 1") 129 130 # Test that media is okay (with RFC 2833 DTMF) 72 131 time.sleep(2) 73 132 caller.send("#")
Note: See TracChangeset
for help on using the changeset viewer.