inc_const.py 1.3 KB

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