expectation_parser.rb

Path: sipper/util/expectation_parser.rb
Last Update: Wed Sep 10 14:36:09 -0400 2008
  1. Wilcard for responses only 2xx, 1xx, 18x etc for responses
  2. Alteration "< INVITE|SUBSCRIBE" optional request
  3. Repetition "> INVITE {2,2}" have exactly 2. "< 18x {2,3}" have 2 or 3. "> 18x {,3}" at most 3"
  "> INVITE  {0,}" variable. "< BYE {1,} at least 1.
  1. For wildcard responses the first character in the message MUST be a number like 1xx is valid as is 41x but xxx or x00 is not valid. Character ‘x’ is used a wildcard.
  2. The neutral expectation, the one recorded by the controller is recorded with the direction element "!" and the string should not contain any spaces.

An element is satisfied if the minimum requirement is met for that. BNF Grammar is "DIRECTION MSGEXPRESSION|MSGEXPREESION REPETITION"

Required files

sip_logger   strscan   util/sipper_util   ruby_ext/string   ruby_ext/object   facets/core/string/first_char  

[Validate]