summaryrefslogtreecommitdiff
path: root/tests/pjsua/inc_const.py
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-12-22 18:54:58 +0000
committerBenny Prijono <bennylp@teluu.com>2008-12-22 18:54:58 +0000
commit0723dbc601c74330f792db67ad75f6d580c30d8b (patch)
treea10e1cc45bdeb80210168f2e26421ae0d7e7295d /tests/pjsua/inc_const.py
parent341dea971f9d548cc922f5f3446d80130a1d57d9 (diff)
Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2392 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/pjsua/inc_const.py')
-rw-r--r--tests/pjsua/inc_const.py61
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/pjsua/inc_const.py b/tests/pjsua/inc_const.py
new file mode 100644
index 00000000..1f6d84de
--- /dev/null
+++ b/tests/pjsua/inc_const.py
@@ -0,0 +1,61 @@
+# $Id$
+# Useful constants
+
+
+##########################
+# MENU OUTPUT
+#
+
+
+##########################
+# EVENTS
+#
+
+# Text to expect when there is incoming call
+EVENT_INCOMING_CALL = "Press .* answer"
+
+
+##########################
+# CALL STATES
+#
+
+# Call state is CALLING
+STATE_CALLING = "state.*CALLING"
+# Call state is CONFIRMED
+STATE_CONFIRMED = "state.*CONFIRMED"
+# Call state is DISCONNECTED
+STATE_DISCONNECTED = "Call .* DISCONNECTED"
+
+# Media call is put on-hold
+MEDIA_HOLD = "Media for call [0-9]+ is suspended.*hold"
+# Media call is active
+MEDIA_ACTIVE = "Media for call [0-9]+ is active"
+# RX_DTMF
+RX_DTMF = "Incoming DTMF on call [0-9]+: "
+
+##########################
+# MEDIA
+#
+
+# Connecting/disconnecting ports
+MEDIA_CONN_PORT_SUCCESS = "Port \d+ \(.+\) transmitting to port"
+MEDIA_DISCONN_PORT_SUCCESS = "Port \d+ \(.+\) stop transmitting to port"
+
+# Filename to play / record
+MEDIA_PLAY_FILE = "--play-file\s+(\S+)"
+MEDIA_REC_FILE = "--rec-file\s+(\S+)"
+
+##########################
+# MISC
+#
+
+# The command prompt
+PROMPT = ">>>"
+# When pjsua has been destroyed
+DESTROYED = "PJSUA destroyed"
+# Assertion failure
+ASSERT = "Assertion failed"
+# Stdout refresh text
+STDOUT_REFRESH = "XXSTDOUT_REFRESHXX"
+
+