Rearrange the commands in mod_pres.py to make it work
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2070 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip-apps/src/test-pjsua/mod_pres.py b/pjsip-apps/src/test-pjsua/mod_pres.py
index 6b6fb2b..7b00d8e 100644
--- a/pjsip-apps/src/test-pjsua/mod_pres.py
+++ b/pjsip-apps/src/test-pjsua/mod_pres.py
@@ -107,11 +107,11 @@
# U1 send IM
im_text = "Hello World from U1"
u1.send("i")
- u1.send("1")
- u1.send(im_text)
+ u1.send(uri2)
u2.expect(" is typing")
- u2.expect("MESSAGE from.*"+im_text)
+ u1.send(im_text)
u1.expect(im_text+".*delivered successfully")
+ u2.expect("MESSAGE from.*"+im_text)
# Synchronize stdout
u1.sync_stdout()