Ignore:
Timestamp:
Jun 12, 2008 6:10:22 PM (16 years ago)
Author:
bennylp
Message:

More ticket #543: added SRTP negotiation tests

Location:
pjproject/trunk/pjsip-apps/src/test-pjsua
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/test-pjsua

    • Property svn:ignore set to
      *.pyc
  • pjproject/trunk/pjsip-apps/src/test-pjsua/mod_call.py

    r2009 r2012  
    5151        caller.expect(const.STATE_CONFIRMED) 
    5252 
     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 
    5368        # Hold call 
    54         time.sleep(2) 
    5569        caller.send("H") 
    5670        caller.expect(const.MEDIA_HOLD) 
     
    6377        callee.expect(const.MEDIA_ACTIVE) 
    6478 
    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) 
    66111        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) 
    67120        callee.send("U") 
    68121        callee.expect(const.MEDIA_ACTIVE) 
    69122        caller.expect(const.MEDIA_ACTIVE) 
    70123         
    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) 
    72131        time.sleep(2) 
    73132        caller.send("#") 
  • pjproject/trunk/pjsip-apps/src/test-pjsua/scripts-call

    • Property svn:ignore set to
      *.pyc
  • pjproject/trunk/pjsip-apps/src/test-pjsua/scripts-run

    • Property svn:ignore set to
      *.pyc
Note: See TracChangeset for help on using the changeset viewer.