Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | # $Id$ |
| 2 | # Useful constants |
| 3 | |
| 4 | |
| 5 | ########################## |
| 6 | # MENU OUTPUT |
| 7 | # |
| 8 | |
| 9 | |
| 10 | ########################## |
| 11 | # EVENTS |
| 12 | # |
| 13 | |
| 14 | # Text to expect when there is incoming call |
| 15 | EVENT_INCOMING_CALL = "Press .* answer" |
| 16 | |
| 17 | |
| 18 | ########################## |
| 19 | # CALL STATES |
| 20 | # |
| 21 | |
| 22 | # Call state is CALLING |
| 23 | STATE_CALLING = "state.*CALLING" |
| 24 | # Call state is EARLY |
| 25 | STATE_EARLY = "state.*EARLY" |
| 26 | # Call state is CONFIRMED |
| 27 | STATE_CONFIRMED = "state.*CONFIRMED" |
| 28 | # Call state is DISCONNECTED |
| 29 | STATE_DISCONNECTED = "Call .* DISCONNECTED" |
| 30 | |
| 31 | # Media call is put on-hold |
| 32 | MEDIA_HOLD = "Call [0-9]+ media [0-9]+ .*, status is .* hold" |
| 33 | # Media call is active |
| 34 | MEDIA_ACTIVE = "Call [0-9]+ media [0-9]+ .*, status is Active" |
| 35 | #MEDIA_ACTIVE = "Media for call [0-9]+ is active" |
| 36 | # RX_DTMF |
| 37 | RX_DTMF = "Incoming DTMF on call [0-9]+: " |
| 38 | |
| 39 | ########################## |
| 40 | # MEDIA |
| 41 | # |
| 42 | |
| 43 | # Connecting/disconnecting ports |
| 44 | MEDIA_CONN_PORT_SUCCESS = "Port \d+ \(.+\) transmitting to port" |
| 45 | MEDIA_DISCONN_PORT_SUCCESS = "Port \d+ \(.+\) stop transmitting to port" |
| 46 | |
| 47 | # Filename to play / record |
| 48 | MEDIA_PLAY_FILE = "--play-file\s+(\S+)" |
| 49 | MEDIA_REC_FILE = "--rec-file\s+(\S+)" |
| 50 | |
| 51 | ########################## |
| 52 | # MISC |
| 53 | # |
| 54 | |
| 55 | # The command prompt |
| 56 | PROMPT = ">>>" |
| 57 | # When pjsua has been destroyed |
| 58 | DESTROYED = "PJSUA destroyed" |
| 59 | # Assertion failure |
| 60 | ASSERT = "Assertion failed" |
| 61 | # Stdout refresh text |
| 62 | STDOUT_REFRESH = "XXSTDOUT_REFRESHXX" |
| 63 | |
| 64 | |