From a6fd138d9b059be57a294cbdf55bd8000ac04401 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 26 Aug 2020 18:40:17 +0200 Subject: [PATCH] TT#71804 Route B-leg of the call through kamailio proxy Change-Id: Ife832038e243349f50462851e6a3e55e092af591 --- .../incoming_foreign_dom/0005_test.yml.tt2 | 66 +++-- .../incoming_foreign_dom/0008_test.yml.tt2 | 67 ++--- .../incoming_foreign_dom/0009_test.yml.tt2 | 47 ++-- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../incoming_foreign_dom/0012_test.yml.tt2 | 37 +++ .../incoming_foreign_dom/0013_test.yml.tt2 | 55 ++++ .../incoming_foreign_dom/0014_test.yml.tt2 | 51 ++++ .../incoming_foreign_dom/0015_test.yml.tt2 | 38 +++ .../incoming_foreign_dom/0016_test.yml.tt2 | 28 +++ scenarios/incoming_hih/0007_test.yml.tt2 | 56 +++++ scenarios/incoming_hih/0014_test.yml.tt2 | 57 ++--- scenarios/incoming_hih/0015_test.yml.tt2 | 30 ++- .../{0013_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../0019_test.yml.tt2} | 16 +- scenarios/incoming_hih/0022_test.yml.tt2 | 28 +++ .../{0016_test.yml.tt2 => 0023_test.yml.tt2} | 0 scenarios/incoming_peer/0005_test.yml.tt2 | 51 +++- scenarios/incoming_peer/0008_test.yml.tt2 | 51 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 scenarios/incoming_peer/0013_test.yml.tt2 | 56 +++++ .../{0009_test.yml.tt2 => 0016_test.yml.tt2} | 0 scenarios/invite/0006_test.yml.tt2 | 50 ++++ scenarios/invite/0010_test.yml.tt2 | 51 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 .../0015_test.yml.tt2} | 0 .../{0011_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../invite_allowedcli_match/0007_test.yml.tt2 | 54 ++-- .../invite_allowedcli_match/0010_test.yml.tt2 | 49 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 .../invite_allowedcli_match/0015_test.yml.tt2 | 55 ++++ .../{0011_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../0007_test.yml.tt2 | 54 ++-- .../0010_test.yml.tt2 | 49 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 .../0015_test.yml.tt2 | 55 ++++ .../{0011_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../0007_test.yml.tt2 | 70 +++--- .../0010_test.yml.tt2 | 65 ++--- .../0011_test.yml.tt2 | 49 ++-- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 .../0015_test.yml.tt2 | 55 ++++ scenarios/invite_anonymous/0007_test.yml.tt2 | 66 +++-- scenarios/invite_anonymous/0010_test.yml.tt2 | 68 ++--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 scenarios/invite_anonymous/0015_test.yml.tt2 | 56 +++++ .../{0011_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../0007_test.yml.tt2 | 66 +++-- .../0010_test.yml.tt2 | 67 ++--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 .../0015_test.yml.tt2 | 55 ++++ .../{0011_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../invite_callforward/0013_test.yml.tt2 | 50 ++++ .../invite_callforward/0021_test.yml.tt2 | 32 ++- .../{0019_test.yml.tt2 => 0024_test.yml.tt2} | 0 .../invite_callforward/0025_test.yml.tt2 | 235 ++---------------- .../0028_test.yml.tt2} | 6 +- .../invite_callforward/0029_test.yml.tt2 | 209 +--------------- .../{0023_test.yml.tt2 => 0030_test.yml.tt2} | 0 .../invite_callforward/0032_test.yml.tt2 | 230 ++++++++++++++++- .../invite_callforward/0034_test.yml.tt2 | 76 +++--- .../invite_callforward/0039_test.yml.tt2 | 207 ++++++++++++++- .../{0031_test.yml.tt2 => 0044_test.yml.tt2} | 0 .../0045_test.yml.tt2} | 0 .../{0033_test.yml.tt2 => 0048_test.yml.tt2} | 0 .../0049_test.yml.tt2} | 17 +- .../{0037_test.yml.tt2 => 0053_test.yml.tt2} | 0 .../{0038_test.yml.tt2 => 0054_test.yml.tt2} | 0 .../invite_callforward/0057_test.yml.tt2 | 28 +++ .../{0040_test.yml.tt2 => 0058_test.yml.tt2} | 0 .../invite_concurrent_max/0009_test.yml.tt2 | 50 ++++ .../invite_concurrent_max/0017_test.yml.tt2 | 44 ++-- .../{0014_test.yml.tt2 => 0019_test.yml.tt2} | 0 .../0021_test.yml.tt2} | 0 .../0024_test.yml.tt2} | 0 .../0004_test.yml.tt2 | 50 ++++ .../0008_test.yml.tt2 | 47 +--- .../0010_test.yml.tt2 | 23 +- .../0013_test.yml.tt2 | 30 ++- .../0018_test.yml.tt2 | 26 ++ .../{0012_test.yml.tt2 => 0021_test.yml.tt2} | 0 .../{0014_test.yml.tt2 => 0023_test.yml.tt2} | 0 .../{0016_test.yml.tt2 => 0025_test.yml.tt2} | 0 .../{0017_test.yml.tt2 => 0028_test.yml.tt2} | 0 .../0005_test.yml.tt2 | 50 +++- .../0008_test.yml.tt2 | 47 +--- .../0010_test.yml.tt2 | 23 +- .../0013_test.yml.tt2 | 51 ++++ .../0018_test.yml.tt2 | 26 ++ .../{0012_test.yml.tt2 => 0021_test.yml.tt2} | 0 .../{0014_test.yml.tt2 => 0023_test.yml.tt2} | 0 .../{0016_test.yml.tt2 => 0025_test.yml.tt2} | 0 .../{0017_test.yml.tt2 => 0028_test.yml.tt2} | 0 .../0009_test.yml.tt2 | 50 +++- .../0010_test.yml.tt2 | 44 ---- .../0012_test.yml.tt2 | 42 +--- .../0014_test.yml.tt2 | 146 +++-------- .../0017_test.yml.tt2} | 12 +- .../0019_test.yml.tt2 | 132 ++++++++++ .../{0015_test.yml.tt2 => 0021_test.yml.tt2} | 0 .../0024_test.yml.tt2} | 0 .../invite_foreign_dom/0005_test.yml.tt2 | 50 +++- .../invite_foreign_dom/0008_test.yml.tt2 | 51 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../invite_foreign_dom/0013_test.yml.tt2 | 55 ++++ .../{0009_test.yml.tt2 => 0016_test.yml.tt2} | 0 scenarios/invite_hdr/0007_test.yml.tt2 | 50 +++- scenarios/invite_hdr/0010_test.yml.tt2 | 51 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 scenarios/invite_hdr/0015_test.yml.tt2 | 55 ++++ .../{0011_test.yml.tt2 => 0018_test.yml.tt2} | 0 scenarios/invite_hm/0007_test.yml.tt2 | 50 +++- scenarios/invite_hm/0010_test.yml.tt2 | 51 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 scenarios/invite_hm/0015_test.yml.tt2 | 55 ++++ .../0018_test.yml.tt2} | 0 .../invite_hm_callforward/0009_test.yml.tt2 | 50 ++++ .../invite_hm_callforward/0017_test.yml.tt2 | 32 ++- .../{0015_test.yml.tt2 => 0020_test.yml.tt2} | 0 .../0021_test.yml.tt2} | 0 .../invite_hm_callforward/0024_test.yml.tt2 | 28 +++ .../0025_test.yml.tt2} | 0 scenarios/invite_hm_peerout/0005_test.yml.tt2 | 54 ++-- scenarios/invite_hm_peerout/0008_test.yml.tt2 | 52 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 scenarios/invite_hm_peerout/0011_test.yml.tt2 | 53 ++++ .../0013_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0016_test.yml.tt2} | 0 .../invite_ignore_allowip/0007_test.yml.tt2 | 50 +++- .../invite_ignore_allowip/0010_test.yml.tt2 | 51 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 .../invite_ignore_allowip/0015_test.yml.tt2 | 55 ++++ .../0018_test.yml.tt2} | 0 scenarios/invite_lateoam/0006_test.yml.tt2 | 48 ++++ scenarios/invite_lateoam/0010_test.yml.tt2 | 51 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 scenarios/invite_lateoam/0015_test.yml.tt2 | 55 ++++ .../0018_test.yml.tt2} | 0 scenarios/invite_no_refer/0007_test.yml.tt2 | 52 +++- scenarios/invite_no_refer/0010_test.yml.tt2 | 51 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../{0009_test.yml.tt2 => 0013_test.yml.tt2} | 0 scenarios/invite_no_refer/0015_test.yml.tt2 | 55 ++++ .../0018_test.yml.tt2} | 0 scenarios/invite_peerout/0004_test.yml.tt2 | 50 ++++ scenarios/invite_peerout/0008_test.yml.tt2 | 52 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../0011_test.yml.tt2} | 0 scenarios/invite_peerout/0013_test.yml.tt2 | 56 +++++ .../{0009_test.yml.tt2 => 0016_test.yml.tt2} | 0 .../invite_peerout_failover/0005_test.yml.tt2 | 204 +++------------ .../invite_peerout_failover/0009_test.yml.tt2 | 197 ++++++++++++--- .../invite_peerout_failover/0011_test.yml.tt2 | 54 ++-- .../0013_test.yml.tt2} | 0 .../{0008_test.yml.tt2 => 0016_test.yml.tt2} | 0 .../0017_test.yml.tt2} | 0 .../invite_peerout_failover/0019_test.yml.tt2 | 56 +++++ .../0022_test.yml.tt2} | 0 .../invite_peerout_max_out/0004_test.yml.tt2 | 50 ++++ .../invite_peerout_max_out/0008_test.yml.tt2 | 52 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../invite_peerout_max_out/0013_test.yml.tt2 | 56 +++++ .../0016_test.yml.tt2} | 0 .../invite_peerout_rewrite/0005_test.yml.tt2 | 54 ++-- .../invite_peerout_rewrite/0008_test.yml.tt2 | 51 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../invite_peerout_rewrite/0013_test.yml.tt2 | 55 ++++ .../invite_peerout_rewrite/0016_test.yml.tt2 | 0 .../0004_test.yml.tt2 | 50 ++++ .../0005_test.yml.tt2 | 26 -- .../0008_test.yml.tt2 | 51 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../0013_test.yml.tt2 | 55 ++++ .../{0009_test.yml.tt2 => 0016_test.yml.tt2} | 0 scenarios/invite_perm_reg/0005_test.yml.tt2 | 50 +++- scenarios/invite_perm_reg/0008_test.yml.tt2 | 51 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 scenarios/invite_perm_reg/0013_test.yml.tt2 | 55 ++++ .../0016_test.yml.tt2} | 0 scenarios/invite_q_forking/0009_test.yml.tt2 | 50 +++- scenarios/invite_q_forking/0012_test.yml.tt2 | 17 +- .../0017_test.yml.tt2} | 0 scenarios/invite_q_forking/0019_test.yml.tt2 | 33 +++ .../{0014_test.yml.tt2 => 0022_test.yml.tt2} | 0 .../invite_record_call/0006_test.yml.tt2 | 19 +- .../invite_record_call/0009_test.yml.tt2 | 50 +++- .../invite_record_call/0011_test.yml.tt2 | 33 +-- .../{0010_test.yml.tt2 => 0014_test.yml.tt2} | 0 .../0015_test.yml.tt2} | 0 .../invite_record_call/0017_test.yml.tt2 | 55 ++++ .../0020_test.yml.tt2} | 0 scenarios/invite_redirect/0006_test.yml.tt2 | 9 + scenarios/invite_redirect/0009_test.yml.tt2 | 220 +++------------- scenarios/invite_redirect/0012_test.yml.tt2 | 178 ++++++++++++- scenarios/invite_redirect/0014_test.yml.tt2 | 77 +++--- .../{0011_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../invite_redirect/0020_test.yml.tt2 | 15 +- .../{0013_test.yml.tt2 => 0021_test.yml.tt2} | 0 scenarios/invite_redirect/0023_test.yml.tt2 | 55 ++++ .../0026_test.yml.tt2} | 0 .../0006_test.yml.tt2} | 13 +- .../invite_redirect_blocked/0007_test.yml.tt2 | 88 +++---- .../invite_redirect_blocked/0011_test.yml.tt2 | 64 +++++ .../0006_test.yml.tt2} | 13 +- scenarios/invite_retrans/0007_test.yml.tt2 | 50 +++- scenarios/invite_retrans/0010_test.yml.tt2 | 51 +--- .../{0008_test.yml.tt2 => 0012_test.yml.tt2} | 0 .../invite_retrans/0013_test.yml.tt2 | 12 +- scenarios/invite_retrans/0015_test.yml.tt2 | 55 ++++ .../0018_test.yml.tt2} | 14 +- scenarios/invite_tcp_udp/0006_test.yml.tt2 | 50 ++++ .../{0010_test.yml.tt2 => 0015_test.yml.tt2} | 0 .../{0010_test.yml.tt2 => 0017_test.yml.tt2} | 0 .../{0013_test.yml.tt2 => 0023_test.yml.tt2} | 0 .../0005_test.yml.tt2 | 50 +++- .../0006_test.yml.tt2 | 50 +--- .../0008_test.yml.tt2 | 53 +--- .../0010_test.yml.tt2} | 18 +- .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../0013_test.yml.tt2 | 57 +++++ .../{0009_test.yml.tt2 => 0016_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0006_test.yml.tt2} | 0 scenarios/lock_ported/0009_test.yml.tt2 | 50 ++++ scenarios/lock_ported/0017_test.yml.tt2 | 32 ++- .../{0015_test.yml.tt2 => 0020_test.yml.tt2} | 0 scenarios/lock_ported/0021_test.yml.tt2 | 118 +++------ scenarios/lock_ported/0024_test.yml.tt2 | 28 +++ .../0025_test.yml.tt2} | 0 .../{0019_test.yml.tt2 => 0026_test.yml.tt2} | 0 scenarios/lock_ported/0028_test.yml.tt2 | 113 +++++++++ .../{0022_test.yml.tt2 => 0029_test.yml.tt2} | 0 scenarios_lnp/incoming_peer/0004_test.yml.tt2 | 50 ++++ scenarios_lnp/incoming_peer/0005_test.yml.tt2 | 38 --- scenarios_lnp/incoming_peer/0007_test.yml.tt2 | 42 ---- scenarios_lnp/incoming_peer/0008_test.yml.tt2 | 39 +-- scenarios_lnp/incoming_peer/0011_test.yml.tt2 | 65 ++--- .../incoming_peer/0012_test.yml.tt2 | 11 +- scenarios_lnp/incoming_peer/0014_test.yml.tt2 | 31 ++- .../incoming_peer/0016_test.yml.tt2 | 25 +- .../{0013_test.yml.tt2 => 0020_test.yml.tt2} | 0 scenarios_lnp/incoming_peer/0021_test.yml.tt2 | 28 +++ scenarios_lnp/invite/0005_test.yml.tt2 | 73 +++--- scenarios_lnp/invite/0008_test.yml.tt2 | 70 +++--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 scenarios_lnp/invite/0013_test.yml.tt2 | 55 ++++ .../{0009_test.yml.tt2 => 0016_test.yml.tt2} | 0 .../invite_ncos_black/0013_test.yml.tt2 | 69 ++--- .../invite_ncos_black/0016_test.yml.tt2 | 66 ++--- .../{0014_test.yml.tt2 => 0018_test.yml.tt2} | 0 .../{0015_test.yml.tt2 => 0019_test.yml.tt2} | 0 .../invite_ncos_black/0021_test.yml.tt2 | 29 ++- .../{0017_test.yml.tt2 => 0024_test.yml.tt2} | 0 .../invite_ncos_white/0005_test.yml.tt2 | 69 ++--- .../invite_ncos_white/0008_test.yml.tt2 | 66 ++--- .../invite_ncos_white/0010_test.yml.tt2 | 71 +++--- .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../invite_ncos_white/0012_test.yml.tt2 | 226 ----------------- .../invite_ncos_white/0013_test.yml.tt2 | 55 ++++ .../invite_ncos_white/0016_test.yml.tt2 | 42 +--- .../invite_ncos_white/0017_test.yml.tt2 | 55 ++-- .../invite_ncos_white/0019_test.yml.tt2 | 199 ++++++++++++++- .../invite_ncos_white/0020_test.yml.tt2 | 50 ++++ .../{0014_test.yml.tt2 => 0023_test.yml.tt2} | 0 .../{0015_test.yml.tt2 => 0026_test.yml.tt2} | 0 .../invite_ncos_white/0027_test.yml.tt2 | 10 +- .../invite_ncos_white/0029_test.yml.tt2 | 55 ++++ .../{0018_test.yml.tt2 => 0032_test.yml.tt2} | 0 .../invite_ncos_white/0033_test.yml.tt2 | 37 +++ .../{0021_test.yml.tt2 => 0035_test.yml.tt2} | 0 .../{0022_test.yml.tt2 => 0036_test.yml.tt2} | 0 .../invite_peerout/0005_test.yml.tt2 | 69 ++--- .../invite_peerout/0008_test.yml.tt2 | 67 ++--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../invite_peerout/0013_test.yml.tt2 | 56 +++++ .../0016_test.yml.tt2} | 0 .../invite_peerout_rn/0005_test.yml.tt2 | 54 ++-- .../invite_peerout_rn/0008_test.yml.tt2 | 51 +--- .../{0006_test.yml.tt2 => 0010_test.yml.tt2} | 0 .../{0007_test.yml.tt2 => 0011_test.yml.tt2} | 0 .../invite_peerout_rn}/0013_test.yml.tt2 | 29 ++- .../0016_test.yml.tt2} | 4 +- .../incoming_shared_line/0011_test.yml.tt2 | 57 +++-- .../0012_test.yml.tt2} | 25 +- .../incoming_shared_line/0015_test.yml.tt2 | 73 +++--- .../{0014_test.yml.tt2 => 0017_test.yml.tt2} | 0 .../incoming_shared_line/0022_test.yml.tt2 | 71 +++--- .../{0018_test.yml.tt2 => 0025_test.yml.tt2} | 0 .../{0016_test.yml.tt2 => 0027_test.yml.tt2} | 0 .../{0019_test.yml.tt2 => 0028_test.yml.tt2} | 0 .../{0021_test.yml.tt2 => 0031_test.yml.tt2} | 0 .../incoming_shared_line/0032_test.yml.tt2 | 60 +++++ .../{0023_test.yml.tt2 => 0035_test.yml.tt2} | 0 .../{0024_test.yml.tt2 => 0036_test.yml.tt2} | 0 scenarios_pbx/invite/0009_test.yml.tt2 | 33 --- scenarios_pbx/invite/0011_test.yml.tt2 | 39 --- scenarios_pbx/invite/0012_test.yml.tt2 | 39 +-- scenarios_pbx/invite/0013_test.yml.tt2 | 53 ++-- scenarios_pbx/invite/0015_test.yml.tt2 | 69 ++--- scenarios_pbx/invite/0016_test.yml.tt2 | 76 +++--- scenarios_pbx/invite/0017_test.yml.tt2 | 35 ++- scenarios_pbx/invite/0018_test.yml.tt2 | 35 +-- scenarios_pbx/invite/0020_test.yml.tt2 | 66 +++++ .../invite/0021_test.yml.tt2 | 17 +- .../invite/0024_test.yml.tt2 | 14 +- scenarios_pbx/invite/0025_test.yml.tt2 | 30 +++ .../invite_shared_line/0010_test.yml.tt2 | 45 ---- .../invite_shared_line/0011_test.yml.tt2 | 60 ----- .../invite_shared_line/0012_test.yml.tt2 | 51 +--- .../invite_shared_line/0013_test.yml.tt2 | 76 +++--- .../invite_shared_line/0014_test.yml.tt2 | 42 ---- .../invite_shared_line/0015_test.yml.tt2 | 90 ++----- .../invite_shared_line/0016_test.yml.tt2 | 82 +++--- .../invite_shared_line/0017_test.yml.tt2 | 46 +++- .../invite_shared_line/0018_test.yml.tt2 | 41 +-- .../invite_shared_line/0020_test.yml.tt2 | 83 +++++++ .../invite_shared_line/0021_test.yml.tt2 | 59 +++++ .../invite_shared_line/0024_test.yml.tt2 | 28 +++ .../{0009_test.yml.tt2 => 0025_test.yml.tt2} | 25 +- 336 files changed, 7101 insertions(+), 4446 deletions(-) rename scenarios/incoming_foreign_dom/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/incoming_foreign_dom/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/incoming_foreign_dom/0012_test.yml.tt2 create mode 100644 scenarios/incoming_foreign_dom/0013_test.yml.tt2 create mode 100644 scenarios/incoming_foreign_dom/0014_test.yml.tt2 create mode 100644 scenarios/incoming_foreign_dom/0015_test.yml.tt2 create mode 100644 scenarios/incoming_foreign_dom/0016_test.yml.tt2 create mode 100644 scenarios/incoming_hih/0007_test.yml.tt2 rename scenarios/incoming_hih/{0013_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios/{lock_ported/0016_test.yml.tt2 => incoming_hih/0019_test.yml.tt2} (76%) create mode 100644 scenarios/incoming_hih/0022_test.yml.tt2 rename scenarios/incoming_hih/{0016_test.yml.tt2 => 0023_test.yml.tt2} (100%) rename scenarios/incoming_peer/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/incoming_peer/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/incoming_peer/0013_test.yml.tt2 rename scenarios/incoming_peer/{0009_test.yml.tt2 => 0016_test.yml.tt2} (100%) create mode 100644 scenarios/invite/0006_test.yml.tt2 rename scenarios/invite/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) rename scenarios/{invite_concurrent_max/0016_test.yml.tt2 => invite/0015_test.yml.tt2} (100%) rename scenarios/invite/{0011_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios/invite_allowedcli_match/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_allowedcli_match/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_allowedcli_match/0015_test.yml.tt2 rename scenarios/invite_allowedcli_match/{0011_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios/invite_allowedcli_match_alias/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_allowedcli_match_alias/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_allowedcli_match_alias/0015_test.yml.tt2 rename scenarios/invite_allowedcli_match_alias/{0011_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios/invite_allowedcli_nonmatch/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_allowedcli_nonmatch/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_allowedcli_nonmatch/0015_test.yml.tt2 rename scenarios/invite_anonymous/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_anonymous/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_anonymous/0015_test.yml.tt2 rename scenarios/invite_anonymous/{0011_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios/invite_blockout_pinoverride/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_blockout_pinoverride/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_blockout_pinoverride/0015_test.yml.tt2 rename scenarios/invite_blockout_pinoverride/{0011_test.yml.tt2 => 0018_test.yml.tt2} (100%) create mode 100644 scenarios/invite_callforward/0013_test.yml.tt2 rename scenarios/invite_callforward/{0019_test.yml.tt2 => 0024_test.yml.tt2} (100%) rename scenarios/{lock_ported/0018_test.yml.tt2 => invite_callforward/0028_test.yml.tt2} (89%) rename scenarios/invite_callforward/{0023_test.yml.tt2 => 0030_test.yml.tt2} (100%) rename scenarios/invite_callforward/{0031_test.yml.tt2 => 0044_test.yml.tt2} (100%) rename scenarios/{invite/0007_test.yml.tt2 => invite_callforward/0045_test.yml.tt2} (100%) rename scenarios/invite_callforward/{0033_test.yml.tt2 => 0048_test.yml.tt2} (100%) rename scenarios/{invite_concurrent_max_out/0006_test.yml.tt2 => invite_callforward/0049_test.yml.tt2} (71%) rename scenarios/invite_callforward/{0037_test.yml.tt2 => 0053_test.yml.tt2} (100%) rename scenarios/invite_callforward/{0038_test.yml.tt2 => 0054_test.yml.tt2} (100%) create mode 100644 scenarios/invite_callforward/0057_test.yml.tt2 rename scenarios/invite_callforward/{0040_test.yml.tt2 => 0058_test.yml.tt2} (100%) create mode 100644 scenarios/invite_concurrent_max/0009_test.yml.tt2 rename scenarios/invite_concurrent_max/{0014_test.yml.tt2 => 0019_test.yml.tt2} (100%) rename scenarios/{invite_record_call/0012_test.yml.tt2 => invite_concurrent_max/0021_test.yml.tt2} (100%) rename scenarios/{invite_concurrent_max_per_account/0016_test.yml.tt2 => invite_concurrent_max/0024_test.yml.tt2} (100%) create mode 100644 scenarios/invite_concurrent_max_out/0004_test.yml.tt2 rename scenarios_lnp/incoming_peer/0010_test.yml.tt2 => scenarios/invite_concurrent_max_out/0013_test.yml.tt2 (53%) create mode 100644 scenarios/invite_concurrent_max_out/0018_test.yml.tt2 rename scenarios/invite_concurrent_max_out/{0012_test.yml.tt2 => 0021_test.yml.tt2} (100%) rename scenarios/invite_concurrent_max_out/{0014_test.yml.tt2 => 0023_test.yml.tt2} (100%) rename scenarios/invite_concurrent_max_out/{0016_test.yml.tt2 => 0025_test.yml.tt2} (100%) rename scenarios/invite_concurrent_max_out/{0017_test.yml.tt2 => 0028_test.yml.tt2} (100%) create mode 100644 scenarios/invite_concurrent_max_out_per_account/0013_test.yml.tt2 create mode 100644 scenarios/invite_concurrent_max_out_per_account/0018_test.yml.tt2 rename scenarios/invite_concurrent_max_out_per_account/{0012_test.yml.tt2 => 0021_test.yml.tt2} (100%) rename scenarios/invite_concurrent_max_out_per_account/{0014_test.yml.tt2 => 0023_test.yml.tt2} (100%) rename scenarios/invite_concurrent_max_out_per_account/{0016_test.yml.tt2 => 0025_test.yml.tt2} (100%) rename scenarios/invite_concurrent_max_out_per_account/{0017_test.yml.tt2 => 0028_test.yml.tt2} (100%) delete mode 100644 scenarios/invite_concurrent_max_per_account/0010_test.yml.tt2 rename scenarios/{invite_concurrent_max/0012_test.yml.tt2 => invite_concurrent_max_per_account/0017_test.yml.tt2} (82%) create mode 100644 scenarios/invite_concurrent_max_per_account/0019_test.yml.tt2 rename scenarios/invite_concurrent_max_per_account/{0015_test.yml.tt2 => 0021_test.yml.tt2} (100%) rename scenarios/{invite_hm/0011_test.yml.tt2 => invite_concurrent_max_per_account/0024_test.yml.tt2} (100%) rename scenarios/invite_foreign_dom/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/invite_foreign_dom/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/invite_foreign_dom/0013_test.yml.tt2 rename scenarios/invite_foreign_dom/{0009_test.yml.tt2 => 0016_test.yml.tt2} (100%) rename scenarios/invite_hdr/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_hdr/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_hdr/0015_test.yml.tt2 rename scenarios/invite_hdr/{0011_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios/invite_hm/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_hm/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_hm/0015_test.yml.tt2 rename scenarios/{invite_ignore_allowip/0011_test.yml.tt2 => invite_hm/0018_test.yml.tt2} (100%) create mode 100644 scenarios/invite_hm_callforward/0009_test.yml.tt2 rename scenarios/invite_hm_callforward/{0015_test.yml.tt2 => 0020_test.yml.tt2} (100%) rename scenarios/{invite_callforward/0020_test.yml.tt2 => invite_hm_callforward/0021_test.yml.tt2} (100%) create mode 100644 scenarios/invite_hm_callforward/0024_test.yml.tt2 rename scenarios/{invite_callforward/0022_test.yml.tt2 => invite_hm_callforward/0025_test.yml.tt2} (100%) rename scenarios/invite_hm_peerout/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) create mode 100644 scenarios/invite_hm_peerout/0011_test.yml.tt2 rename scenarios/{invite_peerout_failover/0010_test.yml.tt2 => invite_hm_peerout/0013_test.yml.tt2} (100%) rename scenarios/invite_hm_peerout/{0009_test.yml.tt2 => 0016_test.yml.tt2} (100%) rename scenarios/invite_ignore_allowip/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_ignore_allowip/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_ignore_allowip/0015_test.yml.tt2 rename scenarios/{invite_lateoam/0011_test.yml.tt2 => invite_ignore_allowip/0018_test.yml.tt2} (100%) create mode 100644 scenarios/invite_lateoam/0006_test.yml.tt2 rename scenarios/invite_lateoam/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_lateoam/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_lateoam/0015_test.yml.tt2 rename scenarios/{invite_no_refer/0011_test.yml.tt2 => invite_lateoam/0018_test.yml.tt2} (100%) rename scenarios/invite_no_refer/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios/invite_no_refer/{0009_test.yml.tt2 => 0013_test.yml.tt2} (100%) create mode 100644 scenarios/invite_no_refer/0015_test.yml.tt2 rename scenarios/{invite_perm_reg/0009_test.yml.tt2 => invite_no_refer/0018_test.yml.tt2} (100%) create mode 100644 scenarios/invite_peerout/0004_test.yml.tt2 rename scenarios/invite_peerout/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/{invite_hm_peerout/0007_test.yml.tt2 => invite_peerout/0011_test.yml.tt2} (100%) create mode 100644 scenarios/invite_peerout/0013_test.yml.tt2 rename scenarios/invite_peerout/{0009_test.yml.tt2 => 0016_test.yml.tt2} (100%) rename scenarios/{invite_peerout/0005_test.yml.tt2 => invite_peerout_failover/0013_test.yml.tt2} (100%) rename scenarios/invite_peerout_failover/{0008_test.yml.tt2 => 0016_test.yml.tt2} (100%) rename scenarios/{invite_peerout/0007_test.yml.tt2 => invite_peerout_failover/0017_test.yml.tt2} (100%) create mode 100644 scenarios/invite_peerout_failover/0019_test.yml.tt2 rename scenarios/{invite_peerout_max_out/0009_test.yml.tt2 => invite_peerout_failover/0022_test.yml.tt2} (100%) create mode 100644 scenarios/invite_peerout_max_out/0004_test.yml.tt2 rename scenarios/invite_peerout_max_out/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/invite_peerout_max_out/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/invite_peerout_max_out/0013_test.yml.tt2 rename scenarios/{invite_peerout_rewrite/0009_test.yml.tt2 => invite_peerout_max_out/0016_test.yml.tt2} (100%) rename scenarios/invite_peerout_rewrite/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/invite_peerout_rewrite/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/invite_peerout_rewrite/0013_test.yml.tt2 rename scenarios_lnp/invite_peerout/0009_test.yml.tt2 => scenarios/invite_peerout_rewrite/0016_test.yml.tt2 (100%) create mode 100644 scenarios/invite_peerout_rewrite_pv_regex/0004_test.yml.tt2 delete mode 100644 scenarios/invite_peerout_rewrite_pv_regex/0005_test.yml.tt2 rename scenarios/invite_peerout_rewrite_pv_regex/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/invite_peerout_rewrite_pv_regex/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/invite_peerout_rewrite_pv_regex/0013_test.yml.tt2 rename scenarios/invite_peerout_rewrite_pv_regex/{0009_test.yml.tt2 => 0016_test.yml.tt2} (100%) rename scenarios/invite_perm_reg/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios/invite_perm_reg/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/invite_perm_reg/0013_test.yml.tt2 rename scenarios/{invite_record_call/0013_test.yml.tt2 => invite_perm_reg/0016_test.yml.tt2} (100%) rename scenarios/{invite_concurrent_max_out/0005_test.yml.tt2 => invite_q_forking/0017_test.yml.tt2} (100%) create mode 100644 scenarios/invite_q_forking/0019_test.yml.tt2 rename scenarios/invite_q_forking/{0014_test.yml.tt2 => 0022_test.yml.tt2} (100%) rename scenarios/invite_record_call/{0010_test.yml.tt2 => 0014_test.yml.tt2} (100%) rename scenarios/{invite_retrans/0009_test.yml.tt2 => invite_record_call/0015_test.yml.tt2} (100%) create mode 100644 scenarios/invite_record_call/0017_test.yml.tt2 rename scenarios/{invite_redirect/0015_test.yml.tt2 => invite_record_call/0020_test.yml.tt2} (100%) create mode 100644 scenarios/invite_redirect/0006_test.yml.tt2 rename scenarios/invite_redirect/{0011_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios_lnp/invite_ncos_white/0006_test.yml.tt2 => scenarios/invite_redirect/0020_test.yml.tt2 (79%) rename scenarios/invite_redirect/{0013_test.yml.tt2 => 0021_test.yml.tt2} (100%) create mode 100644 scenarios/invite_redirect/0023_test.yml.tt2 rename scenarios/{invite_retrans/0011_test.yml.tt2 => invite_redirect/0026_test.yml.tt2} (100%) rename scenarios/{invite_q_forking/0011_test.yml.tt2 => invite_redirect_blocked/0006_test.yml.tt2} (69%) create mode 100644 scenarios/invite_redirect_blocked/0011_test.yml.tt2 rename scenarios/{invite_lateoam/0007_test.yml.tt2 => invite_retrans/0006_test.yml.tt2} (69%) rename scenarios/invite_retrans/{0008_test.yml.tt2 => 0012_test.yml.tt2} (100%) rename scenarios_pbx/invite/0014_test.yml.tt2 => scenarios/invite_retrans/0013_test.yml.tt2 (79%) create mode 100644 scenarios/invite_retrans/0015_test.yml.tt2 rename scenarios/{invite_peerout_max_out/0005_test.yml.tt2 => invite_retrans/0018_test.yml.tt2} (69%) create mode 100644 scenarios/invite_tcp_udp/0006_test.yml.tt2 rename scenarios/invite_tcp_udp/{0010_test.yml.tt2 => 0015_test.yml.tt2} (100%) rename scenarios/invite_tcp_udp_reinvite/{0010_test.yml.tt2 => 0017_test.yml.tt2} (100%) rename scenarios/invite_tcp_udp_reinvite/{0013_test.yml.tt2 => 0023_test.yml.tt2} (100%) rename scenarios/{invite_concurrent_max_out_per_account/0006_test.yml.tt2 => invite_trusted_anonymous/0010_test.yml.tt2} (72%) rename scenarios/invite_trusted_anonymous/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios/invite_trusted_anonymous/0013_test.yml.tt2 rename scenarios/invite_trusted_anonymous/{0009_test.yml.tt2 => 0016_test.yml.tt2} (100%) rename scenarios/lock_ported/{0007_test.yml.tt2 => 0006_test.yml.tt2} (100%) create mode 100644 scenarios/lock_ported/0009_test.yml.tt2 rename scenarios/lock_ported/{0015_test.yml.tt2 => 0020_test.yml.tt2} (100%) create mode 100644 scenarios/lock_ported/0024_test.yml.tt2 rename scenarios/{invite_hm_callforward/0018_test.yml.tt2 => lock_ported/0025_test.yml.tt2} (100%) rename scenarios/lock_ported/{0019_test.yml.tt2 => 0026_test.yml.tt2} (100%) create mode 100644 scenarios/lock_ported/0028_test.yml.tt2 rename scenarios/lock_ported/{0022_test.yml.tt2 => 0029_test.yml.tt2} (100%) create mode 100644 scenarios_lnp/incoming_peer/0004_test.yml.tt2 delete mode 100644 scenarios_lnp/incoming_peer/0005_test.yml.tt2 delete mode 100644 scenarios_lnp/incoming_peer/0007_test.yml.tt2 rename scenarios/incoming_hih/0010_test.yml.tt2 => scenarios_lnp/incoming_peer/0012_test.yml.tt2 (79%) rename scenarios/incoming_hih/0011_test.yml.tt2 => scenarios_lnp/incoming_peer/0016_test.yml.tt2 (60%) rename scenarios_lnp/incoming_peer/{0013_test.yml.tt2 => 0020_test.yml.tt2} (100%) create mode 100644 scenarios_lnp/incoming_peer/0021_test.yml.tt2 rename scenarios_lnp/invite/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios_lnp/invite/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios_lnp/invite/0013_test.yml.tt2 rename scenarios_lnp/invite/{0009_test.yml.tt2 => 0016_test.yml.tt2} (100%) rename scenarios_lnp/invite_ncos_black/{0014_test.yml.tt2 => 0018_test.yml.tt2} (100%) rename scenarios_lnp/invite_ncos_black/{0015_test.yml.tt2 => 0019_test.yml.tt2} (100%) rename scenarios/invite_callforward/0017_test.yml.tt2 => scenarios_lnp/invite_ncos_black/0021_test.yml.tt2 (57%) rename scenarios_lnp/invite_ncos_black/{0017_test.yml.tt2 => 0024_test.yml.tt2} (100%) rename scenarios_lnp/invite_ncos_white/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) delete mode 100644 scenarios_lnp/invite_ncos_white/0012_test.yml.tt2 create mode 100644 scenarios_lnp/invite_ncos_white/0013_test.yml.tt2 create mode 100644 scenarios_lnp/invite_ncos_white/0020_test.yml.tt2 rename scenarios_lnp/invite_ncos_white/{0014_test.yml.tt2 => 0023_test.yml.tt2} (100%) rename scenarios_lnp/invite_ncos_white/{0015_test.yml.tt2 => 0026_test.yml.tt2} (100%) rename scenarios/invite_hm_callforward/0013_test.yml.tt2 => scenarios_lnp/invite_ncos_white/0027_test.yml.tt2 (79%) create mode 100644 scenarios_lnp/invite_ncos_white/0029_test.yml.tt2 rename scenarios_lnp/invite_ncos_white/{0018_test.yml.tt2 => 0032_test.yml.tt2} (100%) create mode 100644 scenarios_lnp/invite_ncos_white/0033_test.yml.tt2 rename scenarios_lnp/invite_ncos_white/{0021_test.yml.tt2 => 0035_test.yml.tt2} (100%) rename scenarios_lnp/invite_ncos_white/{0022_test.yml.tt2 => 0036_test.yml.tt2} (100%) rename scenarios_lnp/invite_peerout/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios_lnp/invite_peerout/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) create mode 100644 scenarios_lnp/invite_peerout/0013_test.yml.tt2 rename scenarios_lnp/{invite_peerout_rn/0009_test.yml.tt2 => invite_peerout/0016_test.yml.tt2} (100%) rename scenarios_lnp/invite_peerout_rn/{0006_test.yml.tt2 => 0010_test.yml.tt2} (100%) rename scenarios_lnp/invite_peerout_rn/{0007_test.yml.tt2 => 0011_test.yml.tt2} (100%) rename {scenarios/lock_ported => scenarios_lnp/invite_peerout_rn}/0013_test.yml.tt2 (57%) rename scenarios_lnp/{invite_ncos_white/0009_test.yml.tt2 => invite_peerout_rn/0016_test.yml.tt2} (91%) rename scenarios_pbx/{invite/0010_test.yml.tt2 => incoming_shared_line/0012_test.yml.tt2} (58%) rename scenarios_pbx/incoming_shared_line/{0014_test.yml.tt2 => 0017_test.yml.tt2} (100%) rename scenarios_pbx/incoming_shared_line/{0018_test.yml.tt2 => 0025_test.yml.tt2} (100%) rename scenarios_pbx/incoming_shared_line/{0016_test.yml.tt2 => 0027_test.yml.tt2} (100%) rename scenarios_pbx/incoming_shared_line/{0019_test.yml.tt2 => 0028_test.yml.tt2} (100%) rename scenarios_pbx/incoming_shared_line/{0021_test.yml.tt2 => 0031_test.yml.tt2} (100%) create mode 100644 scenarios_pbx/incoming_shared_line/0032_test.yml.tt2 rename scenarios_pbx/incoming_shared_line/{0023_test.yml.tt2 => 0035_test.yml.tt2} (100%) rename scenarios_pbx/incoming_shared_line/{0024_test.yml.tt2 => 0036_test.yml.tt2} (100%) delete mode 100644 scenarios_pbx/invite/0009_test.yml.tt2 delete mode 100644 scenarios_pbx/invite/0011_test.yml.tt2 create mode 100644 scenarios_pbx/invite/0020_test.yml.tt2 rename scenarios/invite_hm_callforward/0016_test.yml.tt2 => scenarios_pbx/invite/0021_test.yml.tt2 (75%) rename scenarios/invite_peerout_failover/0007_test.yml.tt2 => scenarios_pbx/invite/0024_test.yml.tt2 (71%) create mode 100644 scenarios_pbx/invite/0025_test.yml.tt2 delete mode 100644 scenarios_pbx/invite_shared_line/0010_test.yml.tt2 delete mode 100644 scenarios_pbx/invite_shared_line/0011_test.yml.tt2 delete mode 100644 scenarios_pbx/invite_shared_line/0014_test.yml.tt2 create mode 100644 scenarios_pbx/invite_shared_line/0020_test.yml.tt2 create mode 100644 scenarios_pbx/invite_shared_line/0021_test.yml.tt2 create mode 100644 scenarios_pbx/invite_shared_line/0024_test.yml.tt2 rename scenarios_pbx/invite_shared_line/{0009_test.yml.tt2 => 0025_test.yml.tt2} (50%) diff --git a/scenarios/incoming_foreign_dom/0005_test.yml.tt2 b/scenarios/incoming_foreign_dom/0005_test.yml.tt2 index 50a53209..f43fe7fb 100644 --- a/scenarios/incoming_foreign_dom/0005_test.yml.tt2 +++ b/scenarios/incoming_foreign_dom/0005_test.yml.tt2 @@ -1,38 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - $avp(lua_dlg_profile): [ - "accountout:0", - "userout:0", - "account:0", - "user:0", - "totalaccountout:0", - "totaluserout:0", - "totalaccount:0", - "totaluser:0", - "local", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", - "total", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" - ] - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: 1 INVITE' + - 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: 0' + - 'P-NGCP-Caller-Info: ;ip=127.0.2.1;port=\d+' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 1 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: 0', + 'P-NGCP-Caller-Info: ;ip=127.0.2.1;port=\d+', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/incoming_foreign_dom/0008_test.yml.tt2 b/scenarios/incoming_foreign_dom/0008_test.yml.tt2 index 5b13f305..50a53209 100644 --- a/scenarios/incoming_foreign_dom/0008_test.yml.tt2 +++ b/scenarios/incoming_foreign_dom/0008_test.yml.tt2 @@ -1,55 +1,38 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + "accountout:0", + "userout:0", + "account:0", + "user:0", + "totalaccountout:0", + "totaluserout:0", + "totalaccount:0", + "totaluser:0", + "local", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", + "total", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1003.uuid %]" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:external@' - - 'CSeq: 2 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ INVITE' + - 'Contact: ' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' + - 'P-NGCP-Src-Ip: 127.1.0.1' + - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Proto: udp' + - 'P-NGCP-Src-Af: 4' sip_out: - [ - '^SIP/2.0 200 OK', - 'CSeq: 2 BYE', - 'Content-Length: 0', - 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ INVITE', + 'Contact: ', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'P-NGCP-Src-Ip: 127.1.0.1', + 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Proto: udp', + 'P-NGCP-Src-Af: 4', ] diff --git a/scenarios/incoming_foreign_dom/0006_test.yml.tt2 b/scenarios/incoming_foreign_dom/0010_test.yml.tt2 similarity index 100% rename from scenarios/incoming_foreign_dom/0006_test.yml.tt2 rename to scenarios/incoming_foreign_dom/0010_test.yml.tt2 diff --git a/scenarios/incoming_foreign_dom/0007_test.yml.tt2 b/scenarios/incoming_foreign_dom/0011_test.yml.tt2 similarity index 100% rename from scenarios/incoming_foreign_dom/0007_test.yml.tt2 rename to scenarios/incoming_foreign_dom/0011_test.yml.tt2 diff --git a/scenarios/incoming_foreign_dom/0012_test.yml.tt2 b/scenarios/incoming_foreign_dom/0012_test.yml.tt2 new file mode 100644 index 00000000..25cc337e --- /dev/null +++ b/scenarios/incoming_foreign_dom/0012_test.yml.tt2 @@ -0,0 +1,37 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - 'ACK sip:127.1.0.1:\d+;transport=UDP SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ ACK' + - 'Contact: ' + - 'Content-Length: 0' +sip_out: + - [ + 'ACK sip:127.1.0.1:\d+;transport=UDP SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ ACK', + 'Contact: ', + 'Content-Length: 0', + ] diff --git a/scenarios/incoming_foreign_dom/0013_test.yml.tt2 b/scenarios/incoming_foreign_dom/0013_test.yml.tt2 new file mode 100644 index 00000000..5b13f305 --- /dev/null +++ b/scenarios/incoming_foreign_dom/0013_test.yml.tt2 @@ -0,0 +1,55 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|dialog:end: + - return|dialog:end: + $avp(lua_dlg_profile): None + - return|dialog:end: + - start|ROUTE_STOP_RTPPROXY: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - 'Contact: sip:external@' + - 'CSeq: 2 BYE' + - 'Max-Forwards: 69' + - 'Content-Length: 0' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ BYE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'Content-Length: 0' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ BYE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'BYE sip:127.1.0.1:\d+;transport=UDP SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ BYE', + 'P-LB-Uptime: \d+', + 'Content-Length: 0', + ] diff --git a/scenarios/incoming_foreign_dom/0015_test.yml.tt2 b/scenarios/incoming_foreign_dom/0015_test.yml.tt2 new file mode 100644 index 00000000..57967f26 --- /dev/null +++ b/scenarios/incoming_foreign_dom/0015_test.yml.tt2 @@ -0,0 +1,38 @@ +flow: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - 'SIP/2.0 200 OK' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ BYE' + - 'Contact: ' + - 'Content-Length: 0' + - 'P-NGCP-Src-Ip: 127.1.0.1' + - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Proto: udp' + - 'P-NGCP-Src-Af: 4' +sip_out: + - [ + 'SIP/2.0 200 OK', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ BYE', + 'Contact: ', + 'Content-Length: 0', + 'P-NGCP-Src-Ip: 127.1.0.1', + 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Proto: udp', + 'P-NGCP-Src-Af: 4', + ] diff --git a/scenarios/incoming_foreign_dom/0016_test.yml.tt2 b/scenarios/incoming_foreign_dom/0016_test.yml.tt2 new file mode 100644 index 00000000..f7dd673b --- /dev/null +++ b/scenarios/incoming_foreign_dom/0016_test.yml.tt2 @@ -0,0 +1,28 @@ +flow: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^SIP/2.0 200 OK' + - 'CSeq: 2 BYE' + - 'Content-Length: 0' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'History-Info: ;index=1' + - 'History-Info: ;index=1.1' + - 'History-Info: ;index=1.1.1' + - 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311003' + - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311003' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311002' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1002@127.1.0.2:\d+;cause=302 SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'History-Info: ;index=1', + 'History-Info: ;index=1.1', + 'History-Info: ;index=1.1.1', + 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311003', + 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311003', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311002', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/incoming_hih/0014_test.yml.tt2 b/scenarios/incoming_hih/0014_test.yml.tt2 index 3dba58b1..1d30f655 100644 --- a/scenarios/incoming_hih/0014_test.yml.tt2 +++ b/scenarios/incoming_hih/0014_test.yml.tt2 @@ -1,51 +1,32 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_CF_LOOP: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: + - start|dialog:start: + - return|dialog:start: + $avp(lua_dlg_profile): [ + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1003.uuid %]", + "peer:[% peer_00_host0.id %]", "total" + ] + - return|dialog:start: sip_in: - - '^BYE sip:(testuser1002@)?127.0.0.1:5080(;transport=udp)? SIP/2.0' - - 'CSeq: \d+ BYE' - - 'Content-Length: 0' - - 'From: ;tag=' - 'To: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: 0' + - 'P-NGCP-Caller-Info: ;ip=127.0.2.1;port=\d+' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 1 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: 0', + 'P-NGCP-Caller-Info: ;ip=127.0.2.1;port=\d+', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/incoming_peer/0008_test.yml.tt2 b/scenarios/incoming_peer/0008_test.yml.tt2 index 906e5c3e..8a914f9e 100644 --- a/scenarios/incoming_peer/0008_test.yml.tt2 +++ b/scenarios/incoming_peer/0008_test.yml.tt2 @@ -1,56 +1,23 @@ # INVITE_OFFLINE scenario flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:004321001@' - - 'CSeq: 2 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite/0010_test.yml.tt2 b/scenarios/invite/0010_test.yml.tt2 index 54eac48e..4ad98795 100644 --- a/scenarios/invite/0010_test.yml.tt2 +++ b/scenarios/invite/0010_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: "431100299" ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_allowedcli_match/0010_test.yml.tt2 b/scenarios/invite_allowedcli_match/0010_test.yml.tt2 index 581f771e..1044dffb 100644 --- a/scenarios/invite_allowedcli_match/0010_test.yml.tt2 +++ b/scenarios/invite_allowedcli_match/0010_test.yml.tt2 @@ -1,55 +1,26 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: "431100299" ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002;alias=4311009' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: "4311009" ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002;alias=4311009', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_allowedcli_match_alias/0010_test.yml.tt2 b/scenarios/invite_allowedcli_match_alias/0010_test.yml.tt2 index 87a66f04..7bd0b339 100644 --- a/scenarios/invite_allowedcli_match_alias/0010_test.yml.tt2 +++ b/scenarios/invite_allowedcli_match_alias/0010_test.yml.tt2 @@ -1,55 +1,26 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: "4311009" ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: "431100222" ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_allowedcli_nonmatch/0010_test.yml.tt2 b/scenarios/invite_allowedcli_nonmatch/0010_test.yml.tt2 index a88f6a5c..fc37f0c3 100644 --- a/scenarios/invite_allowedcli_nonmatch/0010_test.yml.tt2 +++ b/scenarios/invite_allowedcli_nonmatch/0010_test.yml.tt2 @@ -1,55 +1,42 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile) : None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile) : [ + 'accountout:[% customer_test.id %]', + 'userout:[% spce_test.testuser1002.uuid %]', + 'account:[% customer_test.id %]', + 'user:[% spce_test.testuser1002.uuid %]', + 'totalaccountout:[% customer_test.id %]', + 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totalaccount:[% customer_test.id %]', + 'totaluser:[% spce_test.testuser1002.uuid %]', + "local", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", + "total", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1003.uuid %]" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: "431100222" ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ INVITE' + - 'Contact: ' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' + - 'P-NGCP-Src-Ip: 127.1.0.1' + - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Proto: udp' + - 'P-NGCP-Src-Af: 4' sip_out: - [ - '^SIP/2.0 200 OK', - 'CSeq: 3 BYE', - 'Content-Length: 0', - 'From: "431100222" ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ INVITE', + 'Contact: ', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'P-NGCP-Src-Ip: 127.1.0.1', + 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Proto: udp', + 'P-NGCP-Src-Af: 4', + ] diff --git a/scenarios/invite_allowedcli_nonmatch/0008_test.yml.tt2 b/scenarios/invite_allowedcli_nonmatch/0012_test.yml.tt2 similarity index 100% rename from scenarios/invite_allowedcli_nonmatch/0008_test.yml.tt2 rename to scenarios/invite_allowedcli_nonmatch/0012_test.yml.tt2 diff --git a/scenarios/invite_allowedcli_nonmatch/0009_test.yml.tt2 b/scenarios/invite_allowedcli_nonmatch/0013_test.yml.tt2 similarity index 100% rename from scenarios/invite_allowedcli_nonmatch/0009_test.yml.tt2 rename to scenarios/invite_allowedcli_nonmatch/0013_test.yml.tt2 diff --git a/scenarios/invite_allowedcli_nonmatch/0015_test.yml.tt2 b/scenarios/invite_allowedcli_nonmatch/0015_test.yml.tt2 new file mode 100644 index 00000000..a88f6a5c --- /dev/null +++ b/scenarios/invite_allowedcli_nonmatch/0015_test.yml.tt2 @@ -0,0 +1,55 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|dialog:end: + - return|dialog:end: + $avp(lua_dlg_profile) : None + - return|dialog:end: + - start|ROUTE_STOP_RTPPROXY: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - 'Contact: sip:testuser1002@' + - 'CSeq: 3 BYE' + - 'Max-Forwards: 69' + - 'Content-Length: 0' + - 'From: "431100222" ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'Privacy: id' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: "Anonymous" ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: "Anonymous" ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'Privacy: id', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_anonymous/0010_test.yml.tt2 b/scenarios/invite_anonymous/0010_test.yml.tt2 index 0c8aa0a1..f4cf5a46 100644 --- a/scenarios/invite_anonymous/0010_test.yml.tt2 +++ b/scenarios/invite_anonymous/0010_test.yml.tt2 @@ -1,56 +1,38 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + 'accountout:[% customer_test.id %]', + 'userout:[% spce_test.testuser1002.uuid %]', + 'account:[% customer_test.id %]', + 'user:[% spce_test.testuser1002.uuid %]', + 'totalaccountout:[% customer_test.id %]', + 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totalaccount:[% customer_test.id %]', + 'totaluser:[% spce_test.testuser1002.uuid %]', + "local", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", + "total", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1003.uuid %]" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: "Anonymous" ' - - 'To: ', - 'To: ', - 'To: ' + - 'To: ', + 'To: ', + 'To: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_blockout_pinoverride/0010_test.yml.tt2 b/scenarios/invite_blockout_pinoverride/0010_test.yml.tt2 index fe230da9..f4cf5a46 100644 --- a/scenarios/invite_blockout_pinoverride/0010_test.yml.tt2 +++ b/scenarios/invite_blockout_pinoverride/0010_test.yml.tt2 @@ -1,55 +1,38 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + 'accountout:[% customer_test.id %]', + 'userout:[% spce_test.testuser1002.uuid %]', + 'account:[% customer_test.id %]', + 'user:[% spce_test.testuser1002.uuid %]', + 'totalaccountout:[% customer_test.id %]', + 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totalaccount:[% customer_test.id %]', + 'totaluser:[% spce_test.testuser1002.uuid %]', + "local", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", + "total", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1003.uuid %]" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.3:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite_callforward/0021_test.yml.tt2 b/scenarios/invite_callforward/0021_test.yml.tt2 index ec2d7216..454122d2 100644 --- a/scenarios/invite_callforward/0021_test.yml.tt2 +++ b/scenarios/invite_callforward/0021_test.yml.tt2 @@ -1,27 +1,39 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: \d+ BYE' + - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - 'Contact: sip:testuser1002@' + - 'CSeq: 2 ACK' + - 'Max-Forwards: 69' - 'Content-Length: 0' - - 'From: ' - - 'CSeq: \d+ INVITE' - - 'Content-Type: application/sdp' + - '^SIP/2.0 200 OK' + - 'Content-Length: 0' + - 'CSeq: 3 BYE' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311004' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' - 'Content-Type: application/sdp' - - 'From: ' sip_out: - [ - '^SIP/2.0 200 OK', - 'CSeq: 2 INVITE', - 'Content-Length: \d+', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1004@127.1.0.4:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311004', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', 'Content-Type: application/sdp', - 'From: ', ] diff --git a/scenarios/invite_callforward/0039_test.yml.tt2 b/scenarios/invite_callforward/0039_test.yml.tt2 index 0d638173..1708ce1e 100644 --- a/scenarios/invite_callforward/0039_test.yml.tt2 +++ b/scenarios/invite_callforward/0039_test.yml.tt2 @@ -1,28 +1,213 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|ROUTE_INVITE: + - start|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_CLEAR_CALLEE_DOMAIN_PREF: + - return|ROUTE_CLEAR_CALLEE_DOMAIN_PREF: + - return|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_FIND_CALLER: + - start|ROUTE_CONSUME_CF_HDRS: + - start|ROUTE_RESTORE_EVENTMON_HEADERS: + - return|ROUTE_RESTORE_EVENTMON_HEADERS: + - return|ROUTE_CONSUME_CF_HDRS: + - return|ROUTE_FIND_CALLER: + - start|ROUTE_LOAD_CALLER_PREF: + - start|ROUTE_CLEAR_CALLER_PREF: + - return|ROUTE_CLEAR_CALLER_PREF: + - start|ROUTE_CHECK_UA: + - return|ROUTE_CHECK_UA: + - start|ROUTE_LOAD_CALLER_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLER_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLER_PREF: - start|ROUTE_APPLY_HEADER_RULES: - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_GET_FORWARDER_CLI: + - return|ROUTE_GET_FORWARDER_CLI: + - start|ROUTE_CLIR: + - return|ROUTE_CLIR: + - start|ROUTE_CALLER_BLOCK_CLI: + - return|ROUTE_CALLER_BLOCK_CLI: + - start|ROUTE_CHECK_USERPROV_CLI: + - start|ROUTE_CHECK_CLI_ALLOWED: + - return|ROUTE_CHECK_CLI_ALLOWED: + - return|ROUTE_CHECK_USERPROV_CLI: + - start|ROUTE_CHECK_USERPROV_CLI: + - start|ROUTE_CHECK_CLI_ALLOWED: + - return|ROUTE_CHECK_CLI_ALLOWED: + - return|ROUTE_CHECK_USERPROV_CLI: + - start|ROUTE_FIND_CALLEE: + - start|ROUTE_CLEAR_CALLEE_PREF: + - return|ROUTE_CLEAR_CALLEE_PREF: + - start|ROUTE_LOAD_CALLEE_PREF: + - start|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - start|ROUTE_SET_CALLEE_DIALOG: + - start|ROUTE_CNT_DLG_CHECK: + - start|ROUTE_DLG_MANAGE: + - return|ROUTE_DLG_MANAGE: + - return|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_SET_CALLEE_DIALOG: + $avp(lua_dlg_profile): [ + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1005.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1005.uuid %]" + ] + - start|ROUTE_BLOCK_IN: + - return|ROUTE_BLOCK_IN: + - start|ROUTE_ORDER_CF_MAP_ID: + - return|ROUTE_ORDER_CF_MAP_ID: + - return|ROUTE_LOAD_CALLEE_PREF: + - start|ROUTE_NCOS_CHECK: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - return|ROUTE_NCOS_CHECK: + - start|ROUTE_BLOCK_OUT: + - return|ROUTE_BLOCK_OUT: + - start|ROUTE_CHECK_PBX: + - return|ROUTE_CHECK_PBX: + - start|ROUTE_CALLEE_DISPATCH: + - start|ROUTE_INVITE_TO_INT: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_CF_CFU: + - return|ROUTE_CF_CFU: + - start|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_CNT_DLG_CHECK: + - start|ROUTE_OUTBOUND: + - start|ROUTE_SET_CALLER_DIALOG: + - start|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_SET_CALLER_DIALOG: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1004.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1004.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1004.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1004.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1005.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1005.uuid %]" + ] + - start|ROUTE_ACC_CALLER: + - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_ACC_CALLER: + - start|ROUTE_ACC_CALLEE: + - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_ACC_CALLEE: + - start|BRANCH_ROUTE_SBC: + - start|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - start|ROUTE_SET_CALLEE_DIALOG: + - start|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_SET_CALLEE_DIALOG: + - start|ROUTE_SET_BRANCH_HDRS: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - return|ROUTE_SET_BRANCH_HDRS: + - start|ROUTE_SET_RUSER: + - return|ROUTE_SET_RUSER: + - start|ROUTE_BRANCH_ACC_RTP: + - return|ROUTE_BRANCH_ACC_RTP: + - start|ROUTE_FILTER_PRACK: + - return|ROUTE_FILTER_PRACK: + - start|ROUTE_PREPARE_SST: + - return|ROUTE_PREPARE_SST: + - start|ROUTE_PREPARE_MOH: + - return|ROUTE_PREPARE_MOH: + - start|ROUTE_SET_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_SET_CALLER_CLI: + - start|ROUTE_SET_CALLEE: + - return|ROUTE_SET_CALLEE: + - start|ROUTE_ADD_CALLINFO: + - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - return|BRANCH_ROUTE_SBC: + # branch ?? + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1004.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1004.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1004.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1004.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1005.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1005.uuid %]" + ] sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: \d+ BYE' - - 'Content-Length: 0' - - 'From: ' + - 'CSeq: \d+ INVITE' + - 'Content-Type: application/sdp' sip_out: - [ - '^SIP/2.0 200 OK', - 'CSeq: \d+ BYE', - 'Content-Length: 0', + '^SIP/2.0 100 Trying', + 'CSeq: \d+ INVITE', 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite_concurrent_max/0017_test.yml.tt2 b/scenarios/invite_concurrent_max/0017_test.yml.tt2 index 550fc7b1..1e70fc46 100644 --- a/scenarios/invite_concurrent_max/0017_test.yml.tt2 +++ b/scenarios/invite_concurrent_max/0017_test.yml.tt2 @@ -1,28 +1,42 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|ROUTE_INVITE: + - start|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_CLEAR_CALLEE_DOMAIN_PREF: + - return|ROUTE_CLEAR_CALLEE_DOMAIN_PREF: + - return|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_FIND_CALLER: + - start|ROUTE_AUTH: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: 3 BYE' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite_concurrent_max_out/0008_test.yml.tt2 b/scenarios/invite_concurrent_max_out/0008_test.yml.tt2 index 4e72871a..4ad98795 100644 --- a/scenarios/invite_concurrent_max_out/0008_test.yml.tt2 +++ b/scenarios/invite_concurrent_max_out/0008_test.yml.tt2 @@ -1,51 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - start|ROUTE_WITHINDLG_RTPENGINE: - - return|ROUTE_WITHINDLG_RTPENGINE: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^INVITE' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 INVITE' - - 'Max-Forwards: 69' - - 'Content-Type: application/sdp' - - 'Proxy-Authorization: Digest username="testuser1002"' - - 'a=sendonly' + - '^SIP/2.0 180 Ringing' + - 'CSeq: 2 INVITE' sip_out: - [ - '^SIP/2.0 100 Trying', - 'CSeq: 3 INVITE', - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_concurrent_max_out_per_account/0008_test.yml.tt2 b/scenarios/invite_concurrent_max_out_per_account/0008_test.yml.tt2 index 4e72871a..4ad98795 100644 --- a/scenarios/invite_concurrent_max_out_per_account/0008_test.yml.tt2 +++ b/scenarios/invite_concurrent_max_out_per_account/0008_test.yml.tt2 @@ -1,51 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - start|ROUTE_WITHINDLG_RTPENGINE: - - return|ROUTE_WITHINDLG_RTPENGINE: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^INVITE' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 INVITE' - - 'Max-Forwards: 69' - - 'Content-Type: application/sdp' - - 'Proxy-Authorization: Digest username="testuser1002"' - - 'a=sendonly' + - '^SIP/2.0 180 Ringing' + - 'CSeq: 2 INVITE' sip_out: - [ - '^SIP/2.0 100 Trying', - 'CSeq: 3 INVITE', - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_concurrent_max_per_account/0010_test.yml.tt2 b/scenarios/invite_concurrent_max_per_account/0010_test.yml.tt2 deleted file mode 100644 index d130dc0d..00000000 --- a/scenarios/invite_concurrent_max_per_account/0010_test.yml.tt2 +++ /dev/null @@ -1,44 +0,0 @@ -flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_RTPENGINE: - - return|REPLY_ROUTE_RTPENGINE: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - start|dialog:start: - - return|dialog:start: - $avp(lua_dlg_profile): [ - 'accountout:[% customer_test.id %]', - 'userout:[% spce_test.testuser1002.uuid %]', - 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1002.uuid %]', - 'totalaccountout:[% customer_test.id %]', - 'totaluserout:[% spce_test.testuser1002.uuid %]', - 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1002.uuid %]', - 'local', - 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1003.uuid %]', - 'total', - 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1003.uuid %]' - ] - - return|dialog:start: -sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: 2 INVITE' -sip_out: - - [ - '^SIP/2.0 200 OK', - 'CSeq: 2 INVITE', - 'From: concurrent_max[*]): None - $xavp(callee_real_prefs[0]=>concurrent_max_out[*]): None - $xavp(callee_real_prefs[0]=>concurrent_max_per_account[*]): [2] - $xavp(callee_real_prefs[0]=>concurrent_max_per_account_out[*]): None - $avp(size): ['3'] - - start|ROUTE_ACC_CALLER: - - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - - return|ROUTE_ACC_CALLER: - - start|ROUTE_ACC_CALLEE: - - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: - - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: - - return|ROUTE_ACC_CALLEE: - - return|ROUTE_ACC_FAILURE: - - start|ROUTE_EARLY_REJECT: - - start|ROUTE_ADD_CALLINFO_REPLY: - - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO_REPLY: - - start|ROUTE_LOCAL_REPLY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|dialog:failed: - - return|dialog:failed: - $avp(lua_dlg_profile): None - - return|dialog:failed: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|REPLY_ROUTE_RTPENGINE: + - return|REPLY_ROUTE_RTPENGINE: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: + - start|dialog:start: + - return|dialog:start: + $avp(lua_dlg_profile): [ + 'accountout:[% customer_test.id %]', + 'userout:[% spce_test.testuser1002.uuid %]', + 'account:[% customer_test.id %]', + 'user:[% spce_test.testuser1002.uuid %]', + 'totalaccountout:[% customer_test.id %]', + 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totalaccount:[% customer_test.id %]', + 'totaluser:[% spce_test.testuser1002.uuid %]', + 'local', + 'totalaccount:[% customer_test.id %]', + 'totaluser:[% spce_test.testuser1003.uuid %]', + 'total', + 'account:[% customer_test.id %]', + 'user:[% spce_test.testuser1003.uuid %]' + ] + - return|dialog:start: sip_in: - - '^INVITE sip:testuser1004@' - - 'Contact: sip:testuser1002@' + - '^SIP/2.0 200 OK' - 'CSeq: 2 INVITE' - - 'Max-Forwards: 69' - - 'Content-Type: application/sdp' - - 'Proxy-Authorization: Digest username="testuser1002"' sip_out: - [ - '^SIP/2.0 100 Trying', - 'CSeq: 2 INVITE', - 'From: concurrent_max[*]): None + $xavp(callee_real_prefs[0]=>concurrent_max_out[*]): None + $xavp(callee_real_prefs[0]=>concurrent_max_per_account[*]): [2] + $xavp(callee_real_prefs[0]=>concurrent_max_per_account_out[*]): None + $avp(size): ['3'] + - start|ROUTE_ACC_CALLER: + - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_ACC_CALLER: + - start|ROUTE_ACC_CALLEE: + - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_ACC_CALLEE: + - return|ROUTE_ACC_FAILURE: + - start|ROUTE_EARLY_REJECT: + - start|ROUTE_ADD_CALLINFO_REPLY: + - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - start|ROUTE_LOCAL_REPLY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|dialog:failed: + - return|dialog:failed: + $avp(lua_dlg_profile): None + - return|dialog:failed: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^INVITE sip:testuser1004@' + - 'Contact: sip:testuser1002@' + - 'CSeq: 2 INVITE' + - 'Max-Forwards: 69' + - 'Content-Type: application/sdp' + - 'Proxy-Authorization: Digest username="testuser1002"' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'CSeq: 2 INVITE', + 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060' + - 'P-D-Uri: sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:004321001@external.test SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060', + 'P-D-Uri: sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_foreign_dom/0008_test.yml.tt2 b/scenarios/invite_foreign_dom/0008_test.yml.tt2 index 2fe1d0d2..4ad98795 100644 --- a/scenarios/invite_foreign_dom/0008_test.yml.tt2 +++ b/scenarios/invite_foreign_dom/0008_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_hdr/0010_test.yml.tt2 b/scenarios/invite_hdr/0010_test.yml.tt2 index 1d088b32..4ad98795 100644 --- a/scenarios/invite_hdr/0010_test.yml.tt2 +++ b/scenarios/invite_hdr/0010_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'FROM: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=[% customer_test.id %]602;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' + - 'Contact: ' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=[% customer_test.id %]602;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'Contact: ', ] diff --git a/scenarios/invite_hm/0010_test.yml.tt2 b/scenarios/invite_hm/0010_test.yml.tt2 index 54eac48e..4ad98795 100644 --- a/scenarios/invite_hm/0010_test.yml.tt2 +++ b/scenarios/invite_hm/0010_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' + - 'Contact: ' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.3:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'Contact: ', + ] diff --git a/scenarios/invite_hm_callforward/0017_test.yml.tt2 b/scenarios/invite_hm_callforward/0017_test.yml.tt2 index ec2d7216..454122d2 100644 --- a/scenarios/invite_hm_callforward/0017_test.yml.tt2 +++ b/scenarios/invite_hm_callforward/0017_test.yml.tt2 @@ -1,27 +1,39 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: \d+ BYE' + - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - 'Contact: sip:testuser1002@' + - 'CSeq: 2 ACK' + - 'Max-Forwards: 69' - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=[% customer_test.id %]602;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' + - 'Contact: ' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=[% customer_test.id %]602;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'Contact: ', ] diff --git a/scenarios/invite_hm_peerout/0008_test.yml.tt2 b/scenarios/invite_hm_peerout/0008_test.yml.tt2 index b954a595..96cdf7aa 100644 --- a/scenarios/invite_hm_peerout/0008_test.yml.tt2 +++ b/scenarios/invite_hm_peerout/0008_test.yml.tt2 @@ -1,56 +1,26 @@ -# INVITE_OFFLINE scenario flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ ACK' + - 'Contact: sip:testuser1002@127.126.0.1:\d+' + - 'Content-Length: 0' + - 'P-NGCP-Src-Ip: 127.126.0.1' + - 'P-NGCP-Src-Port: [% customer_test.id %]602' + - 'P-NGCP-Src-Proto: udp' + - 'P-NGCP-Src-Af: 4' + - 'P-Sock-Info: udp:127.0.0.1:5060' + - 'P-LB-Uptime: \d+' +sip_out: + - [ + 'ACK sip:127.0.0.1:508[08];prxroute=1 SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ ACK', + 'Contact: sip:testuser1002@127.126.0.1:\d+', + 'Content-Length: 0', + 'P-NGCP-Src-Ip: 127.126.0.1', + 'P-NGCP-Src-Port: [% customer_test.id %]602', + 'P-NGCP-Src-Proto: udp', + 'P-NGCP-Src-Af: 4', + 'P-Sock-Info: udp:127.0.0.1:5060', + 'P-LB-Uptime: \d+', + ] diff --git a/scenarios/invite_peerout_failover/0010_test.yml.tt2 b/scenarios/invite_hm_peerout/0013_test.yml.tt2 similarity index 100% rename from scenarios/invite_peerout_failover/0010_test.yml.tt2 rename to scenarios/invite_hm_peerout/0013_test.yml.tt2 diff --git a/scenarios/invite_hm_peerout/0009_test.yml.tt2 b/scenarios/invite_hm_peerout/0016_test.yml.tt2 similarity index 100% rename from scenarios/invite_hm_peerout/0009_test.yml.tt2 rename to scenarios/invite_hm_peerout/0016_test.yml.tt2 diff --git a/scenarios/invite_ignore_allowip/0007_test.yml.tt2 b/scenarios/invite_ignore_allowip/0007_test.yml.tt2 index 4ad98795..38f1a722 100644 --- a/scenarios/invite_ignore_allowip/0007_test.yml.tt2 +++ b/scenarios/invite_ignore_allowip/0007_test.yml.tt2 @@ -1,22 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: 2 INVITE' + - 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_ignore_allowip/0010_test.yml.tt2 b/scenarios/invite_ignore_allowip/0010_test.yml.tt2 index 54eac48e..4ad98795 100644 --- a/scenarios/invite_ignore_allowip/0010_test.yml.tt2 +++ b/scenarios/invite_ignore_allowip/0010_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Contact: ' + - 'Content-Length: 0' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Contact: ', + 'Content-Length: 0', + ] diff --git a/scenarios/invite_lateoam/0010_test.yml.tt2 b/scenarios/invite_lateoam/0010_test.yml.tt2 index 54eac48e..4ad98795 100644 --- a/scenarios/invite_lateoam/0010_test.yml.tt2 +++ b/scenarios/invite_lateoam/0010_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, SUBSCRIBE, NOTIFY, UPDATE, REGISTER' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, SUBSCRIBE, NOTIFY, UPDATE, REGISTER', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_no_refer/0010_test.yml.tt2 b/scenarios/invite_no_refer/0010_test.yml.tt2 index 54eac48e..4ad98795 100644 --- a/scenarios/invite_no_refer/0010_test.yml.tt2 +++ b/scenarios/invite_no_refer/0010_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite_peerout/0008_test.yml.tt2 b/scenarios/invite_peerout/0008_test.yml.tt2 index b954a595..96cdf7aa 100644 --- a/scenarios/invite_peerout/0008_test.yml.tt2 +++ b/scenarios/invite_peerout/0008_test.yml.tt2 @@ -1,56 +1,26 @@ -# INVITE_OFFLINE scenario flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.4.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.4.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: - [ - '^ACK sip:004321001@127.0.4.1:\d+;transport=udp SIP/2.0', - 'From: ;tag=', - 'To: ;tag=', - 'CSeq: 2 ACK', - 'Content-Length: 0' + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', ] - [ - '^INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0', - 'From: ;tag=', - 'To: ', - 'CSeq: 2 INVITE', - 'Contact: sip:testuser1002@', - 'Content-Type: application/sdp', - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', - 'P-Callee-UUID: [% spce_test.testuser1001.uuid %]', + 'INVITE sip:004321001@127.0.4.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', 'P-Asserted-Identity: ', - 'P-Called-Party-ID: ', - 'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no', - 'P-App-Name: sbc', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', - 'P-D-Uri: sip:127.0.0.1:5060;received=', + 'P-NGCP-Callee-Info: ;ip=127.0.4.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.4.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_peerout_failover/0009_test.yml.tt2 b/scenarios/invite_peerout_failover/0009_test.yml.tt2 index 45b43548..47c64bf9 100644 --- a/scenarios/invite_peerout_failover/0009_test.yml.tt2 +++ b/scenarios/invite_peerout_failover/0009_test.yml.tt2 @@ -1,22 +1,139 @@ -# INVITE_OFFLINE scenario flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "total", + "relay", + "peerout:[% peer_02_host0.id %]", + "peer:[% peer_02_host0.id %]", + "outgoing" + ] + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: + - start|FAILURE_ROUTE_PSTN: - start|ROUTE_INITVARS: - return|ROUTE_INITVARS: + - start|ROUTE_FILTER_FAILOVER: + - return|ROUTE_FILTER_FAILOVER: + - start|ROUTE_PSTN_SELECT_PEER_FAILURE: + - start|ROUTE_CHECK_PEER_PROBE: + - return|ROUTE_CHECK_PEER_PROBE: + - start|ROUTE_CLEAR_PEER_OUT_PREF: + - return|ROUTE_CLEAR_PEER_OUT_PREF: + - start|ROUTE_LOAD_PEER_OUT_PREF: + - return|ROUTE_LOAD_PEER_OUT_PREF: + - return|ROUTE_PSTN_SELECT_PEER_FAILURE: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "total", + "outgoing" + ] + - start|ROUTE_PSTN_SELECT_PEER_FAILURE: + - start|ROUTE_CHECK_PEER_PROBE: + - return|ROUTE_CHECK_PEER_PROBE: + - start|ROUTE_CLEAR_PEER_OUT_PREF: + - return|ROUTE_CLEAR_PEER_OUT_PREF: + - start|ROUTE_LOAD_PEER_OUT_PREF: + - return|ROUTE_LOAD_PEER_OUT_PREF: + - return|ROUTE_PSTN_SELECT_PEER_FAILURE: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "total", + "outgoing" + ] + - start|ROUTE_OUTBOUND: + $avp(lua_dlg_profile): [ + "relay", + "peerout:[% peer_00_host0.id %]", + "peer:[% peer_00_host0.id %]", + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "total", + "outgoing" + ] + - start|ROUTE_ADD_AOC_HEADER: + - return|ROUTE_ADD_AOC_HEADER: + - start|BRANCH_ROUTE_SBC: + - start|ROUTE_ACC_CALLEE: + - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_ACC_CALLEE: + - start|ROUTE_SET_BRANCH_HDRS: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - start|ROUTE_WITHINDLG_RTPENGINE: - - return|ROUTE_WITHINDLG_RTPENGINE: - - start|ROUTE_OUTBOUND: + - return|ROUTE_SET_BRANCH_HDRS: + - start|ROUTE_SET_RUSER: + - return|ROUTE_SET_RUSER: + - start|ROUTE_BRANCH_ACC_RTP: + - return|ROUTE_BRANCH_ACC_RTP: + - start|ROUTE_FILTER_PRACK: + - return|ROUTE_FILTER_PRACK: + - start|ROUTE_PREPARE_SST: + - return|ROUTE_PREPARE_SST: + - start|ROUTE_PREPARE_MOH: + - return|ROUTE_PREPARE_MOH: + - start|ROUTE_SET_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_SET_CALLER_CLI: + - start|ROUTE_SET_CALLEE: + - return|ROUTE_SET_CALLEE: + - start|ROUTE_ADD_CALLINFO: + - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - return|BRANCH_ROUTE_SBC: - start|DEFAULT_SEND: - exit|DEFAULT_SEND: - exit|DEFAULT_SEND: @@ -24,22 +141,46 @@ flow: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: -sip_in: - - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 2 ACK' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=', + 'To: ;tag=', 'CSeq: 2 ACK', - 'Max-Forwards: 68', - 'Content-Length: 0', - 'From: ;tag=', + 'To: ', + 'CSeq: 2 INVITE', + 'Contact: sip:testuser1002@', + 'Content-Type: application/sdp', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-Callee-UUID: [% spce_test.testuser1001.uuid %]', + 'P-Asserted-Identity: ', + 'P-Called-Party-ID: ', + 'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no', + 'P-App-Name: sbc', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=', ] diff --git a/scenarios/invite_peerout_failover/0011_test.yml.tt2 b/scenarios/invite_peerout_failover/0011_test.yml.tt2 index 439a609b..57a52acc 100644 --- a/scenarios/invite_peerout_failover/0011_test.yml.tt2 +++ b/scenarios/invite_peerout_failover/0011_test.yml.tt2 @@ -1,28 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: 3 BYE' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 200 OK', - 'CSeq: 3 BYE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_peerout/0005_test.yml.tt2 b/scenarios/invite_peerout_failover/0013_test.yml.tt2 similarity index 100% rename from scenarios/invite_peerout/0005_test.yml.tt2 rename to scenarios/invite_peerout_failover/0013_test.yml.tt2 diff --git a/scenarios/invite_peerout_failover/0008_test.yml.tt2 b/scenarios/invite_peerout_failover/0016_test.yml.tt2 similarity index 100% rename from scenarios/invite_peerout_failover/0008_test.yml.tt2 rename to scenarios/invite_peerout_failover/0016_test.yml.tt2 diff --git a/scenarios/invite_peerout/0007_test.yml.tt2 b/scenarios/invite_peerout_failover/0017_test.yml.tt2 similarity index 100% rename from scenarios/invite_peerout/0007_test.yml.tt2 rename to scenarios/invite_peerout_failover/0017_test.yml.tt2 diff --git a/scenarios/invite_peerout_failover/0019_test.yml.tt2 b/scenarios/invite_peerout_failover/0019_test.yml.tt2 new file mode 100644 index 00000000..b954a595 --- /dev/null +++ b/scenarios/invite_peerout_failover/0019_test.yml.tt2 @@ -0,0 +1,56 @@ +# INVITE_OFFLINE scenario +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|dialog:end: + - return|dialog:end: + $avp(lua_dlg_profile): None + - return|dialog:end: + - start|ROUTE_STOP_RTPPROXY: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - 'Contact: sip:testuser1002@' + - 'CSeq: 3 BYE' + - 'Max-Forwards: 69' + - 'Content-Length: 0' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite_peerout_max_out/0008_test.yml.tt2 b/scenarios/invite_peerout_max_out/0008_test.yml.tt2 index b954a595..96cdf7aa 100644 --- a/scenarios/invite_peerout_max_out/0008_test.yml.tt2 +++ b/scenarios/invite_peerout_max_out/0008_test.yml.tt2 @@ -1,56 +1,26 @@ -# INVITE_OFFLINE scenario flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:4321001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_peerout_rewrite/0008_test.yml.tt2 b/scenarios/invite_peerout_rewrite/0008_test.yml.tt2 index 2fe1d0d2..96cdf7aa 100644 --- a/scenarios/invite_peerout_rewrite/0008_test.yml.tt2 +++ b/scenarios/invite_peerout_rewrite/0008_test.yml.tt2 @@ -1,55 +1,26 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:4321001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite_peerout_rewrite_pv_regex/0005_test.yml.tt2 b/scenarios/invite_peerout_rewrite_pv_regex/0005_test.yml.tt2 deleted file mode 100644 index 20414874..00000000 --- a/scenarios/invite_peerout_rewrite_pv_regex/0005_test.yml.tt2 +++ /dev/null @@ -1,26 +0,0 @@ -flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: -sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: 2 INVITE' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1:5060;lr;socket=tcp:127.3.0.1:5074' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:127.3.0.5:\d+;transport=tcp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1:5060;lr;socket=tcp:127.3.0.1:5074', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_perm_reg/0008_test.yml.tt2 b/scenarios/invite_perm_reg/0008_test.yml.tt2 index 54eac48e..4ad98795 100644 --- a/scenarios/invite_perm_reg/0008_test.yml.tt2 +++ b/scenarios/invite_perm_reg/0008_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_q_forking/0012_test.yml.tt2 b/scenarios/invite_q_forking/0012_test.yml.tt2 index d59cd1e8..4ad98795 100644 --- a/scenarios/invite_q_forking/0012_test.yml.tt2 +++ b/scenarios/invite_q_forking/0012_test.yml.tt2 @@ -12,22 +12,11 @@ flow: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: - - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 486 Busy Here' + - '^SIP/2.0 180 Ringing' - 'CSeq: 2 INVITE' - - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ INVITE' + - 'Contact: ' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 183 Progress', - 'CSeq: 2 INVITE', + 'SIP/2.0 183 Progress', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ INVITE', + 'Contact: ', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'P-Out-Socket: udp:127.0.0.1:5060', ] diff --git a/scenarios/invite_record_call/0009_test.yml.tt2 b/scenarios/invite_record_call/0009_test.yml.tt2 index 4ad98795..38f1a722 100644 --- a/scenarios/invite_record_call/0009_test.yml.tt2 +++ b/scenarios/invite_record_call/0009_test.yml.tt2 @@ -1,22 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: 2 INVITE' + - 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_record_call/0011_test.yml.tt2 b/scenarios/invite_record_call/0011_test.yml.tt2 index c3889190..4ad98795 100644 --- a/scenarios/invite_record_call/0011_test.yml.tt2 +++ b/scenarios/invite_record_call/0011_test.yml.tt2 @@ -1,37 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - start|ROUTE_WITHINDLG_RTPENGINE: - - return|ROUTE_WITHINDLG_RTPENGINE: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0' - - 'CSeq: 2 ACK' - - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ ACK' + - 'Content-Length: 0' +sip_out: [] diff --git a/scenarios/invite_redirect/0009_test.yml.tt2 b/scenarios/invite_redirect/0009_test.yml.tt2 index 8bac8b77..38f1a722 100644 --- a/scenarios/invite_redirect/0009_test.yml.tt2 +++ b/scenarios/invite_redirect/0009_test.yml.tt2 @@ -1,202 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: - - start|FAILURE_ROUTE_LOCAL: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|ROUTE_STOP_RTPPROXY_BRANCH: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY_BRANCH: - - start|ROUTE_SET_HIH_CF: - - return|ROUTE_SET_HIH_CF: - - start|ROUTE_LOAD_CALLER_PREF: - - start|ROUTE_CLEAR_CALLER_PREF: - - return|ROUTE_CLEAR_CALLER_PREF: - - start|ROUTE_CHECK_UA: - - return|ROUTE_CHECK_UA: - - start|ROUTE_LOAD_CALLER_CONTRACT_PREF: - - return|ROUTE_LOAD_CALLER_CONTRACT_PREF: - - return|ROUTE_LOAD_CALLER_PREF: - - start|ROUTE_FIND_CALLEE: - - start|ROUTE_CLEAR_CALLEE_PREF: - - return|ROUTE_CLEAR_CALLEE_PREF: - - start|ROUTE_LOAD_CALLEE_PREF: - - start|ROUTE_LOAD_CALLEE_CONTRACT_PREF: - - return|ROUTE_LOAD_CALLEE_CONTRACT_PREF: - - start|ROUTE_SET_CALLEE_DIALOG: - - start|ROUTE_CNT_DLG_CHECK: - - return|ROUTE_CNT_DLG_CHECK: - - return|ROUTE_SET_CALLEE_DIALOG: - $avp(lua_dlg_profile): [ - "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1002.uuid %]", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1002.uuid %]", - "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", - "local", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", - "total", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" - ] - - start|ROUTE_BLOCK_IN: - - return|ROUTE_BLOCK_IN: - - start|ROUTE_ORDER_CF_MAP_ID: - - return|ROUTE_ORDER_CF_MAP_ID: - - return|ROUTE_LOAD_CALLEE_PREF: - - start|ROUTE_NCOS_CHECK: - - start|ROUTE_NCOS: - - return|ROUTE_NCOS: - - start|ROUTE_NCOS: - - return|ROUTE_NCOS: - - start|ROUTE_NCOS: - - return|ROUTE_NCOS: - - start|ROUTE_NCOS: - - return|ROUTE_NCOS: - - return|ROUTE_NCOS_CHECK: - - start|ROUTE_BLOCK_OUT: - - return|ROUTE_BLOCK_OUT: - - start|ROUTE_CHECK_PBX: - - return|ROUTE_CHECK_PBX: - - start|ROUTE_CALLEE_DISPATCH: - - start|ROUTE_INVITE_TO_INT: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_CF_CFU: - - return|ROUTE_CF_CFU: - - start|ROUTE_CNT_DLG_CHECK: - - return|ROUTE_CNT_DLG_CHECK: - - start|ROUTE_OUTBOUND: - - start|ROUTE_ACC_CALLER: - - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - - return|ROUTE_ACC_CALLER: - - start|ROUTE_ACC_CALLEE: - - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: - - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: - - return|ROUTE_ACC_CALLEE: - - start|ROUTE_ADD_AOC_HEADER: - - return|ROUTE_ADD_AOC_HEADER: - - start|BRANCH_ROUTE_SBC: - - start|ROUTE_LOAD_CALLEE_CONTRACT_PREF: - - return|ROUTE_LOAD_CALLEE_CONTRACT_PREF: - - start|ROUTE_SET_CALLEE_DIALOG: - - start|ROUTE_CNT_DLG_CHECK: - - return|ROUTE_CNT_DLG_CHECK: - - return|ROUTE_SET_CALLEE_DIALOG: - - start|ROUTE_SET_BRANCH_HDRS: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - return|ROUTE_SET_BRANCH_HDRS: - - start|ROUTE_SET_RUSER: - - return|ROUTE_SET_RUSER: - - start|ROUTE_BRANCH_ACC_RTP: - - return|ROUTE_BRANCH_ACC_RTP: - - start|ROUTE_FILTER_PRACK: - - return|ROUTE_FILTER_PRACK: - - start|ROUTE_PREPARE_SST: - - return|ROUTE_PREPARE_SST: - - start|ROUTE_PREPARE_MOH: - - return|ROUTE_PREPARE_MOH: - - start|ROUTE_SET_CALLER_CLI: - - start|ROUTE_PREPARE_CALLER_CLI: - - return|ROUTE_PREPARE_CALLER_CLI: - - start|ROUTE_PREPARE_CALLER_CLI: - - return|ROUTE_PREPARE_CALLER_CLI: - - start|ROUTE_PREPARE_CALLER_CLI: - - return|ROUTE_PREPARE_CALLER_CLI: - - start|ROUTE_PREPARE_CALLER_CLI: - - return|ROUTE_PREPARE_CALLER_CLI: - - start|ROUTE_PREPARE_CALLER_CLI: - - return|ROUTE_PREPARE_CALLER_CLI: - - start|ROUTE_PREPARE_CALLER_CLI: - - return|ROUTE_PREPARE_CALLER_CLI: - - return|ROUTE_SET_CALLER_CLI: - - start|ROUTE_SET_CALLEE: - - return|ROUTE_SET_CALLEE: - - start|ROUTE_ADD_CALLINFO: - - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - return|BRANCH_ROUTE_SBC: - - start|ROUTE_DROP: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_DROP: + - start|ROUTE_LEG_B: - start|DEFAULT_SEND: - exit|DEFAULT_SEND: - - start|ROUTE_OUTBOUND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: - $avp(lua_dlg_profile): [ - "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1002.uuid %]", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1002.uuid %]", - "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", - "local", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", - "total", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" - ] - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 302 Moved Temporarily' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^ACK sip:testuser1003@', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', ] - [ - '^INVITE sip:testuser1004@', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', 'Content-Type: application/sdp', - 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]', - 'P-Callee-UUID: [% spce_test.testuser1004.uuid %]', - 'P-Asserted-Identity: ;index=1', - 'History-Info: ;index=1.1' + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_redirect/0012_test.yml.tt2 b/scenarios/invite_redirect/0012_test.yml.tt2 index c041a2dd..8bac8b77 100644 --- a/scenarios/invite_redirect/0012_test.yml.tt2 +++ b/scenarios/invite_redirect/0012_test.yml.tt2 @@ -7,14 +7,149 @@ flow: - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_RTPENGINE: - - return|REPLY_ROUTE_RTPENGINE: - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - start|dialog:start: - - return|dialog:start: + - exit|ROUTE_EXIT: + - start|FAILURE_ROUTE_LOCAL: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|ROUTE_STOP_RTPPROXY_BRANCH: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY_BRANCH: + - start|ROUTE_SET_HIH_CF: + - return|ROUTE_SET_HIH_CF: + - start|ROUTE_LOAD_CALLER_PREF: + - start|ROUTE_CLEAR_CALLER_PREF: + - return|ROUTE_CLEAR_CALLER_PREF: + - start|ROUTE_CHECK_UA: + - return|ROUTE_CHECK_UA: + - start|ROUTE_LOAD_CALLER_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLER_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLER_PREF: + - start|ROUTE_FIND_CALLEE: + - start|ROUTE_CLEAR_CALLEE_PREF: + - return|ROUTE_CLEAR_CALLEE_PREF: + - start|ROUTE_LOAD_CALLEE_PREF: + - start|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - start|ROUTE_SET_CALLEE_DIALOG: + - start|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_SET_CALLEE_DIALOG: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "local", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", + "total", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1003.uuid %]" + ] + - start|ROUTE_BLOCK_IN: + - return|ROUTE_BLOCK_IN: + - start|ROUTE_ORDER_CF_MAP_ID: + - return|ROUTE_ORDER_CF_MAP_ID: + - return|ROUTE_LOAD_CALLEE_PREF: + - start|ROUTE_NCOS_CHECK: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - start|ROUTE_NCOS: + - return|ROUTE_NCOS: + - return|ROUTE_NCOS_CHECK: + - start|ROUTE_BLOCK_OUT: + - return|ROUTE_BLOCK_OUT: + - start|ROUTE_CHECK_PBX: + - return|ROUTE_CHECK_PBX: + - start|ROUTE_CALLEE_DISPATCH: + - start|ROUTE_INVITE_TO_INT: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_CF_CFU: + - return|ROUTE_CF_CFU: + - start|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_CNT_DLG_CHECK: + - start|ROUTE_OUTBOUND: + - start|ROUTE_ACC_CALLER: + - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_ACC_CALLER: + - start|ROUTE_ACC_CALLEE: + - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_ACC_CALLEE: + - start|ROUTE_ADD_AOC_HEADER: + - return|ROUTE_ADD_AOC_HEADER: + - start|BRANCH_ROUTE_SBC: + - start|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - return|ROUTE_LOAD_CALLEE_CONTRACT_PREF: + - start|ROUTE_SET_CALLEE_DIALOG: + - start|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_CNT_DLG_CHECK: + - return|ROUTE_SET_CALLEE_DIALOG: + - start|ROUTE_SET_BRANCH_HDRS: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - return|ROUTE_SET_BRANCH_HDRS: + - start|ROUTE_SET_RUSER: + - return|ROUTE_SET_RUSER: + - start|ROUTE_BRANCH_ACC_RTP: + - return|ROUTE_BRANCH_ACC_RTP: + - start|ROUTE_FILTER_PRACK: + - return|ROUTE_FILTER_PRACK: + - start|ROUTE_PREPARE_SST: + - return|ROUTE_PREPARE_SST: + - start|ROUTE_PREPARE_MOH: + - return|ROUTE_PREPARE_MOH: + - start|ROUTE_SET_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - start|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_PREPARE_CALLER_CLI: + - return|ROUTE_SET_CALLER_CLI: + - start|ROUTE_SET_CALLEE: + - return|ROUTE_SET_CALLEE: + - start|ROUTE_ADD_CALLINFO: + - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - return|BRANCH_ROUTE_SBC: + - start|ROUTE_DROP: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_DROP: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_OUTBOUND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: $avp(lua_dlg_profile): [ "accountout:[% customer_test.id %]", "userout:[% spce_test.testuser1002.uuid %]", @@ -30,17 +165,38 @@ flow: "total", "account:[% customer_test.id %]", "user:[% spce_test.testuser1003.uuid %]" - ] - - return|dialog:start: + ] + - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: 2 INVITE' + - '^SIP/2.0 302 Moved Temporarily' - 'From: ;index=1', + 'History-Info: ;index=1.1' ] diff --git a/scenarios/invite_redirect/0014_test.yml.tt2 b/scenarios/invite_redirect/0014_test.yml.tt2 index 54eac48e..cbe2e992 100644 --- a/scenarios/invite_redirect/0014_test.yml.tt2 +++ b/scenarios/invite_redirect/0014_test.yml.tt2 @@ -2,24 +2,7 @@ flow: - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: + - start|ROUTE_LEG_B: - start|DEFAULT_SEND: - exit|DEFAULT_SEND: - exit|DEFAULT_SEND: @@ -28,28 +11,48 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'History-Info: ;index=1' + - 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]' + - 'Diversion: ;privacy=off;counter=1' + - 'History-Info: ;index=1\.1' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311003' + - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=5060;primary=4311004' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 100 Trying', - 'CSeq: 3 BYE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]', + 'Diversion: ;privacy=off;counter=1', + 'History-Info: ;index=1', + 'History-Info: ;index=1\.1', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311003', + 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=5060;primary=4311004', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_redirect/0011_test.yml.tt2 b/scenarios/invite_redirect/0018_test.yml.tt2 similarity index 100% rename from scenarios/invite_redirect/0011_test.yml.tt2 rename to scenarios/invite_redirect/0018_test.yml.tt2 diff --git a/scenarios_lnp/invite_ncos_white/0006_test.yml.tt2 b/scenarios/invite_redirect/0020_test.yml.tt2 similarity index 79% rename from scenarios_lnp/invite_ncos_white/0006_test.yml.tt2 rename to scenarios/invite_redirect/0020_test.yml.tt2 index ae3f420f..c041a2dd 100644 --- a/scenarios_lnp/invite_ncos_white/0006_test.yml.tt2 +++ b/scenarios/invite_redirect/0020_test.yml.tt2 @@ -24,22 +24,23 @@ flow: "totaluserout:[% spce_test.testuser1002.uuid %]", "totalaccount:[% customer_test.id %]", "totaluser:[% spce_test.testuser1002.uuid %]", + "local", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", "total", - "relay", - "peerout:[% peer_00_host0.id %]", - "peer:[% peer_00_host0.id %]", - "outgoing" - ] + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1003.uuid %]" + ] - return|dialog:start: sip_in: - '^SIP/2.0 200 OK' - 'CSeq: 2 INVITE' - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'Content-Length: 0' +sip_out: [] diff --git a/scenarios/invite_redirect_blocked/0007_test.yml.tt2 b/scenarios/invite_redirect_blocked/0007_test.yml.tt2 index 03763db1..38f1a722 100644 --- a/scenarios/invite_redirect_blocked/0007_test.yml.tt2 +++ b/scenarios/invite_redirect_blocked/0007_test.yml.tt2 @@ -1,64 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: - - start|FAILURE_ROUTE_LOCAL: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|ROUTE_STOP_RTPPROXY_BRANCH: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY_BRANCH: - - start|ROUTE_CF_CFNA: - - return|ROUTE_CF_CFNA: - - start|ROUTE_CODES_ANNOUNCEMENTS_MAPPING: - - return|ROUTE_CODES_ANNOUNCEMENTS_MAPPING: - - start|ROUTE_EARLY_REJECT: - - start|ROUTE_ADD_CALLINFO_REPLY: - - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO_REPLY: - - start|ROUTE_LOCAL_REPLY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|dialog:failed: - - return|dialog:failed: - $avp(lua_dlg_profile): None - - return|dialog:failed: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: - - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 302 Moved Temporarily' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^ACK sip:testuser1003@', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', ] - [ - '^SIP/2.0 302 Moved Temporarily', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_redirect_blocked/0011_test.yml.tt2 b/scenarios/invite_redirect_blocked/0011_test.yml.tt2 new file mode 100644 index 00000000..03763db1 --- /dev/null +++ b/scenarios/invite_redirect_blocked/0011_test.yml.tt2 @@ -0,0 +1,64 @@ +flow: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: + - start|FAILURE_ROUTE_LOCAL: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|ROUTE_STOP_RTPPROXY_BRANCH: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY_BRANCH: + - start|ROUTE_CF_CFNA: + - return|ROUTE_CF_CFNA: + - start|ROUTE_CODES_ANNOUNCEMENTS_MAPPING: + - return|ROUTE_CODES_ANNOUNCEMENTS_MAPPING: + - start|ROUTE_EARLY_REJECT: + - start|ROUTE_ADD_CALLINFO_REPLY: + - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - start|ROUTE_LOCAL_REPLY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|dialog:failed: + - return|dialog:failed: + $avp(lua_dlg_profile): None + - return|dialog:failed: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: + - exit|ROUTE_EXIT: +sip_in: + - '^SIP/2.0 302 Moved Temporarily' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'Content-Length: 0' +sip_out: [] diff --git a/scenarios/invite_retrans/0007_test.yml.tt2 b/scenarios/invite_retrans/0007_test.yml.tt2 index 4ad98795..38f1a722 100644 --- a/scenarios/invite_retrans/0007_test.yml.tt2 +++ b/scenarios/invite_retrans/0007_test.yml.tt2 @@ -1,22 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: 2 INVITE' + - 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_retrans/0010_test.yml.tt2 b/scenarios/invite_retrans/0010_test.yml.tt2 index 54eac48e..4ad98795 100644 --- a/scenarios/invite_retrans/0010_test.yml.tt2 +++ b/scenarios/invite_retrans/0010_test.yml.tt2 @@ -1,55 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=51602;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=51602;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/invite_tcp_udp/0010_test.yml.tt2 b/scenarios/invite_tcp_udp/0015_test.yml.tt2 similarity index 100% rename from scenarios/invite_tcp_udp/0010_test.yml.tt2 rename to scenarios/invite_tcp_udp/0015_test.yml.tt2 diff --git a/scenarios/invite_tcp_udp_reinvite/0010_test.yml.tt2 b/scenarios/invite_tcp_udp_reinvite/0017_test.yml.tt2 similarity index 100% rename from scenarios/invite_tcp_udp_reinvite/0010_test.yml.tt2 rename to scenarios/invite_tcp_udp_reinvite/0017_test.yml.tt2 diff --git a/scenarios/invite_tcp_udp_reinvite/0013_test.yml.tt2 b/scenarios/invite_tcp_udp_reinvite/0023_test.yml.tt2 similarity index 100% rename from scenarios/invite_tcp_udp_reinvite/0013_test.yml.tt2 rename to scenarios/invite_tcp_udp_reinvite/0023_test.yml.tt2 diff --git a/scenarios/invite_trusted_anonymous/0005_test.yml.tt2 b/scenarios/invite_trusted_anonymous/0005_test.yml.tt2 index 02126242..83de4e51 100644 --- a/scenarios/invite_trusted_anonymous/0005_test.yml.tt2 +++ b/scenarios/invite_trusted_anonymous/0005_test.yml.tt2 @@ -1,22 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: 1 INVITE' + - 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0' + - 'From: "Anonymous" ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'Privacy: id' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 1 INVITE', + 'SIP/2.0 100 Trying', + 'From: "Anonymous" ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', + 'From: "Anonymous" ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'Privacy: id', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios/invite_trusted_anonymous/0006_test.yml.tt2 b/scenarios/invite_trusted_anonymous/0006_test.yml.tt2 index 879d5010..eb523ac3 100644 --- a/scenarios/invite_trusted_anonymous/0006_test.yml.tt2 +++ b/scenarios/invite_trusted_anonymous/0006_test.yml.tt2 @@ -1,45 +1,11 @@ flow: - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_RTPENGINE: - - return|REPLY_ROUTE_RTPENGINE: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - start|dialog:start: - - return|dialog:start: - $avp(lua_dlg_profile): [ - "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1002.uuid %]", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1002.uuid %]", - "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", - "local", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", - "total", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" - ] - - return|dialog:start: + - return|DEFAULT_ONREPLY: sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: 1 INVITE' -sip_out: - - [ - '^SIP/2.0 200 OK', - 'CSeq: 1 INVITE', - 'From: "Anonymous" ', - 'To: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'Server: Sipwise NGCP LB 9.X' + - 'Content-Length: 0' +sip_out: [] diff --git a/scenarios/invite_trusted_anonymous/0008_test.yml.tt2 b/scenarios/invite_trusted_anonymous/0008_test.yml.tt2 index 8982fe53..02126242 100644 --- a/scenarios/invite_trusted_anonymous/0008_test.yml.tt2 +++ b/scenarios/invite_trusted_anonymous/0008_test.yml.tt2 @@ -1,57 +1,22 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 2 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: "Anonymous" ' - - 'To: ', - 'To: ', - 'To: ', + 'To: ' + - 'To: ', + 'To: ', + 'To: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:testuser1003@127.1.0.3:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios/lock_ported/0017_test.yml.tt2 b/scenarios/lock_ported/0017_test.yml.tt2 index ec2d7216..454122d2 100644 --- a/scenarios/lock_ported/0017_test.yml.tt2 +++ b/scenarios/lock_ported/0017_test.yml.tt2 @@ -1,27 +1,39 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: \d+ BYE' + - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - 'Contact: sip:testuser1002@' + - 'CSeq: 2 ACK' + - 'Max-Forwards: 69' - 'Content-Length: 0' - - 'From: lock[*]): [5] - - start|ROUTE_ACC_FAILURE: - - start|ROUTE_ACC_CALLER: - - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - - return|ROUTE_ACC_CALLER: - - start|ROUTE_ACC_CALLEE: - - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: - - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: - - return|ROUTE_ACC_CALLEE: - - return|ROUTE_ACC_FAILURE: - - start|ROUTE_EARLY_REJECT: - - start|ROUTE_ADD_CALLINFO_REPLY: - - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: - - return|ROUTE_ADD_CALLINFO_REPLY: - - start|ROUTE_LOCAL_REPLY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|dialog:failed: - - return|dialog:failed: + - start|dialog:end: + - return|dialog:end: $avp(lua_dlg_profile): None - - return|dialog:failed: + - return|dialog:end: + - start|ROUTE_STOP_RTPPROXY: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^INVITE sip:testuser1004@' - - 'Contact: sip:testuser1001@' - - 'CSeq: 2 INVITE' - - 'Max-Forwards: 69' - - 'Content-Type: application/sdp' - - 'Proxy-Authorization: Digest username="testuser1001"' + - '^BYE sip:(testuser1003@)?127.0.0.1:5080(;transport=udp)? SIP/2.0' + - 'CSeq: \d+ BYE' + - 'Content-Length: 0' + - 'From: lock[*]): [5] + - start|ROUTE_ACC_FAILURE: + - start|ROUTE_ACC_CALLER: + - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: + - return|ROUTE_ACC_CALLER: + - start|ROUTE_ACC_CALLEE: + - start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS: + - return|ROUTE_ACC_CALLEE: + - return|ROUTE_ACC_FAILURE: + - start|ROUTE_EARLY_REJECT: + - start|ROUTE_ADD_CALLINFO_REPLY: + - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: + - start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - start|ROUTE_LOCAL_REPLY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|dialog:failed: + - return|dialog:failed: + $avp(lua_dlg_profile): None + - return|dialog:failed: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^INVITE sip:testuser1004@' + - 'Contact: sip:testuser1001@' + - 'CSeq: 2 INVITE' + - 'Max-Forwards: 69' + - 'Content-Type: application/sdp' + - 'Proxy-Authorization: Digest username="testuser1001"' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'CSeq: 2 INVITE', + 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' + - 'P-NGCP-Callee-Info: ;ip=127.1.0.1;port=\d+' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.1.0.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:4318881003@127.1.0.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', + 'P-NGCP-Callee-Info: ;ip=127.1.0.1;port=\d+', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.1.0.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios_lnp/incoming_peer/0005_test.yml.tt2 b/scenarios_lnp/incoming_peer/0005_test.yml.tt2 deleted file mode 100644 index 8cf94aba..00000000 --- a/scenarios_lnp/incoming_peer/0005_test.yml.tt2 +++ /dev/null @@ -1,38 +0,0 @@ -flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - $avp(lua_dlg_profile): [ - "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1003.uuid %]", - "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", - "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1003.uuid %]", - "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", - "relay", - "peerout:[% peer_01_host1.id %]", - "peer:[% peer_01_host1.id %]", - "outgoing" - ] - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: -sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: \d+ INVITE' - - 'From: ;tag=' - - 'To: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+;primary=4311001' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:4318881001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+;primary=4311001', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios_lnp/invite/0008_test.yml.tt2 b/scenarios_lnp/invite/0008_test.yml.tt2 index c3b39385..aef63de2 100644 --- a/scenarios_lnp/invite/0008_test.yml.tt2 +++ b/scenarios_lnp/invite/0008_test.yml.tt2 @@ -1,55 +1,45 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "relay", + "peerout:[% peer_00_host0.id %]", + "peer:[% peer_00_host0.id %]", + "outgoing", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1001.uuid %]", + "total", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1001.uuid %]" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.3;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:43999300@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.3;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios_lnp/invite_ncos_black/0016_test.yml.tt2 b/scenarios_lnp/invite_ncos_black/0016_test.yml.tt2 index 23ddeded..fdd2246c 100644 --- a/scenarios_lnp/invite_ncos_black/0016_test.yml.tt2 +++ b/scenarios_lnp/invite_ncos_black/0016_test.yml.tt2 @@ -1,55 +1,41 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "total", + "relay", + "peerout:[% peer_00_host0.id %]", + "peer:[% peer_00_host0.id %]", + "outgoing" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:43999100@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios_lnp/invite_ncos_white/0008_test.yml.tt2 b/scenarios_lnp/invite_ncos_white/0008_test.yml.tt2 index 12e9f8d7..d6f836fd 100644 --- a/scenarios_lnp/invite_ncos_white/0008_test.yml.tt2 +++ b/scenarios_lnp/invite_ncos_white/0008_test.yml.tt2 @@ -1,55 +1,41 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "total", + "relay", + "peerout:[% peer_00_host0.id %]", + "peer:[% peer_00_host0.id %]", + "outgoing" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.2;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.2;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.2:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:4318881001@127.0.2.2:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.2;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.2;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.2:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', + ] diff --git a/scenarios_lnp/invite_ncos_white/0014_test.yml.tt2 b/scenarios_lnp/invite_ncos_white/0023_test.yml.tt2 similarity index 100% rename from scenarios_lnp/invite_ncos_white/0014_test.yml.tt2 rename to scenarios_lnp/invite_ncos_white/0023_test.yml.tt2 diff --git a/scenarios_lnp/invite_ncos_white/0015_test.yml.tt2 b/scenarios_lnp/invite_ncos_white/0026_test.yml.tt2 similarity index 100% rename from scenarios_lnp/invite_ncos_white/0015_test.yml.tt2 rename to scenarios_lnp/invite_ncos_white/0026_test.yml.tt2 diff --git a/scenarios/invite_hm_callforward/0013_test.yml.tt2 b/scenarios_lnp/invite_ncos_white/0027_test.yml.tt2 similarity index 79% rename from scenarios/invite_hm_callforward/0013_test.yml.tt2 rename to scenarios_lnp/invite_ncos_white/0027_test.yml.tt2 index 454122d2..8086bd3c 100644 --- a/scenarios/invite_hm_callforward/0013_test.yml.tt2 +++ b/scenarios_lnp/invite_ncos_white/0027_test.yml.tt2 @@ -11,6 +11,10 @@ flow: - return|ROUTE_INITVARS: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - start|ROUTE_WITHINDLG_RTPENGINE: + - return|ROUTE_WITHINDLG_RTPENGINE: - start|ROUTE_OUTBOUND: - start|DEFAULT_SEND: - exit|DEFAULT_SEND: @@ -26,7 +30,7 @@ sip_in: - 'Max-Forwards: 69' - 'Content-Length: 0' - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:0043test28881001;npdi@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios_lnp/invite_peerout/0008_test.yml.tt2 b/scenarios_lnp/invite_peerout/0008_test.yml.tt2 index b954a595..3c96a807 100644 --- a/scenarios_lnp/invite_peerout/0008_test.yml.tt2 +++ b/scenarios_lnp/invite_peerout/0008_test.yml.tt2 @@ -1,56 +1,41 @@ -# INVITE_OFFLINE scenario flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + $avp(lua_dlg_profile): [ + "accountout:[% customer_test.id %]", + "userout:[% spce_test.testuser1002.uuid %]", + "account:[% customer_test.id %]", + "user:[% spce_test.testuser1002.uuid %]", + "totalaccountout:[% customer_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customer_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "total", + "relay", + "peerout:[% peer_00_host0.id %]", + "peer:[% peer_00_host0.id %]", + "outgoing" + ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' + - 'Content-Type: application/sdp' + - 'Contact: ' + - 'Content-Length:\s+\d+' sip_out: - [ - '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] + - [ + 'INVITE sip:004321001;npdi;rn=004328881001@127.0.2.1:\d+;transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', + 'Content-Type: application/sdp', + 'Contact: ', + 'Content-Length:\s+\d+', ] diff --git a/scenarios_lnp/invite_peerout_rn/0008_test.yml.tt2 b/scenarios_lnp/invite_peerout_rn/0008_test.yml.tt2 index e2346347..96cdf7aa 100644 --- a/scenarios_lnp/invite_peerout_rn/0008_test.yml.tt2 +++ b/scenarios_lnp/invite_peerout_rn/0008_test.yml.tt2 @@ -1,55 +1,26 @@ -# INVITE_OFFLINE scenario flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - - return|dialog:end: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ;tag=' - - 'To: ;tag=' + - 'INVITE sip:testuser1002@127.1.0.3:\d+ SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - - 'Call-Info: ;appearance-index=1' - - 'Contact: ' - - 'Content-Length: 0' + - 'P-LB-Uptime: \d+' + - 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.3;port=\d+;primary=43110021003' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311002' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' + - 'Contact: ' sip_out: - [ - '^PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'From: ', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', 'To: ', - 'Event: dialog', - 'Content-Type: application/dialog-info\+xml', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', ] - [ - '^SIP/2.0 180 Ringing', - 'From: ;tag=', - 'To: ;tag=', + 'INVITE sip:testuser1002@127.1.0.3:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', - 'Call-Info: ;appearance-index=1', - 'Contact: ', - 'Content-Length: 0', + 'P-LB-Uptime: \d+', + 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.3;port=\d+;primary=43110021003', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311002', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'Contact: ', ] diff --git a/scenarios_pbx/invite/0010_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0012_test.yml.tt2 similarity index 58% rename from scenarios_pbx/invite/0010_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0012_test.yml.tt2 index c965e6eb..6c151fe3 100644 --- a/scenarios_pbx/invite/0010_test.yml.tt2 +++ b/scenarios_pbx/incoming_shared_line/0012_test.yml.tt2 @@ -1,21 +1,10 @@ flow: - start|DEFAULT_ONREPLY: - start|REPLY_ROUTE_NAT: - $avp(lua_dlg_profile): [ - "totalaccountout:[% customerpbx_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", - "totalaccount:[% customerpbx_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", - "totalaccount:[% customerpbx_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", - "total" - ] - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - start|ROUTE_APPLY_HEADER_RULES: - return|ROUTE_APPLY_HEADER_RULES: - - start|REPLY_SCA_UPDATE: - - return|REPLY_SCA_UPDATE: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - start|REPLY_ROUTE_NAT_CONTINUE: @@ -25,7 +14,12 @@ flow: - exit|ROUTE_EXIT: sip_in: - '^SIP/2.0 180 Ringing' - - 'CSeq: 2 INVITE' + - 'From: ;tag=' + - 'To: ;tag=' + - 'CSeq: \d+ INVITE' + - 'Call-Info: ;appearance-index=1' + - 'Contact: ' + - 'Content-Length: 0' sip_out: - [ '^PUBLISH sip:testuser1002@spce.test SIP/2.0', @@ -36,5 +30,10 @@ sip_out: ] - [ '^SIP/2.0 180 Ringing', - 'CSeq: 2 INVITE', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: \d+ INVITE', + 'Call-Info: ;appearance-index=1', + 'Contact: ', + 'Content-Length: 0', ] diff --git a/scenarios_pbx/incoming_shared_line/0015_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0015_test.yml.tt2 index e906eb0d..f02bfdf3 100644 --- a/scenarios_pbx/incoming_shared_line/0015_test.yml.tt2 +++ b/scenarios_pbx/incoming_shared_line/0015_test.yml.tt2 @@ -1,57 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_RTPENGINE: - - return|REPLY_ROUTE_RTPENGINE: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_LEG_B: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - start|dialog:start: - - return|dialog:start: - - return|dialog:start: + - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'From: ;tag=' - - 'To: ;tag=' + - 'INVITE sip:testuser1002@127.1.0.4:\d+ SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - - 'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE' - - 'Call-Info: ;appearance-index=1' - - 'Contact: ' + - 'P-LB-Uptime: \d+' + - 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.3;port=\d+;primary=43110021003' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311002' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' - 'Content-Type: application/sdp' - - 'Content-Length: \d+' + - 'Content-Length:\s+\d+' + - 'Contact: ' sip_out: - [ - '^PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'From: ', + 'SIP/2.0 100 Trying', + 'From: ;tag=[\w-]+', 'To: ', - 'Event: dialog', - 'Content-Type: application/dialog-info\+xml', + 'CSeq: \d+ INVITE', + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', ] - [ - '^SIP/2.0 200 OK', - 'From: ;tag=', - 'To: ;tag=', + 'INVITE sip:testuser1002@127.1.0.4:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', - 'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE', - 'Call-Info: ;appearance-index=1', - 'Contact: ', + 'P-LB-Uptime: \d+', + 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.3;port=\d+;primary=43110021003', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311002', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', 'Content-Type: application/sdp', - 'Content-Length: \d+', - ] - - [ - '^CANCEL sip:testuser1002@127.1.0.3:\d+ SIP/2.0', - 'From: ;tag=', - 'To: ', - 'CSeq: \d+ CANCEL', - 'Route: ', - 'Max-Forwards: 69', - 'Content-Length: 0', - 'Reason: SIP;cause=200;text=\"Call completed elsewhere\"', + 'Content-Length:\s+\d+', + 'Contact: ', ] diff --git a/scenarios_pbx/incoming_shared_line/0014_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0017_test.yml.tt2 similarity index 100% rename from scenarios_pbx/incoming_shared_line/0014_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0017_test.yml.tt2 diff --git a/scenarios_pbx/incoming_shared_line/0022_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0022_test.yml.tt2 index b125ed00..e906eb0d 100644 --- a/scenarios_pbx/incoming_shared_line/0022_test.yml.tt2 +++ b/scenarios_pbx/incoming_shared_line/0022_test.yml.tt2 @@ -1,48 +1,32 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - - return|dialog:end: - - start|ROUTE_FIX_PBX_STOP_RECORDS: - - return|ROUTE_FIX_PBX_STOP_RECORDS: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_RTPENGINE: + - return|REPLY_ROUTE_RTPENGINE: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: + - start|dialog:start: + - return|dialog:start: + - return|dialog:start: sip_in: - - '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0' - - 'From: ;tag=' + - '^SIP/2.0 200 OK' + - 'From: ;tag=' - 'To: ;tag=' - - 'CSeq: \d+ BYE' - - 'Max-Forwards: 70' - - 'Content-Length: 0' + - 'CSeq: \d+ INVITE' + - 'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE' + - 'Call-Info: ;appearance-index=1' + - 'Contact: ' + - 'Content-Type: application/sdp' + - 'Content-Length: \d+' sip_out: - - [ - '^SIP/2.0 100 Trying', - 'From: ;tag=', - 'To: ;tag=', - 'CSeq: \d+ BYE', - 'Content-Length: 0', - ] - [ '^PUBLISH sip:testuser1002@spce.test SIP/2.0', 'From: ', @@ -51,10 +35,23 @@ sip_out: 'Content-Type: application/dialog-info\+xml', ] - [ - '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0', - 'From: ;tag=', + '^SIP/2.0 200 OK', + 'From: ;tag=', 'To: ;tag=', - 'CSeq: \d+ BYE', + 'CSeq: \d+ INVITE', + 'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE', + 'Call-Info: ;appearance-index=1', + 'Contact: ', + 'Content-Type: application/sdp', + 'Content-Length: \d+', + ] + - [ + '^CANCEL sip:testuser1002@127.1.0.3:\d+ SIP/2.0', + 'From: ;tag=', + 'To: ', + 'CSeq: \d+ CANCEL', + 'Route: ', 'Max-Forwards: 69', 'Content-Length: 0', + 'Reason: SIP;cause=200;text=\"Call completed elsewhere\"', ] diff --git a/scenarios_pbx/incoming_shared_line/0018_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0025_test.yml.tt2 similarity index 100% rename from scenarios_pbx/incoming_shared_line/0018_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0025_test.yml.tt2 diff --git a/scenarios_pbx/incoming_shared_line/0016_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0027_test.yml.tt2 similarity index 100% rename from scenarios_pbx/incoming_shared_line/0016_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0027_test.yml.tt2 diff --git a/scenarios_pbx/incoming_shared_line/0019_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0028_test.yml.tt2 similarity index 100% rename from scenarios_pbx/incoming_shared_line/0019_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0028_test.yml.tt2 diff --git a/scenarios_pbx/incoming_shared_line/0021_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0031_test.yml.tt2 similarity index 100% rename from scenarios_pbx/incoming_shared_line/0021_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0031_test.yml.tt2 diff --git a/scenarios_pbx/incoming_shared_line/0032_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0032_test.yml.tt2 new file mode 100644 index 00000000..b125ed00 --- /dev/null +++ b/scenarios_pbx/incoming_shared_line/0032_test.yml.tt2 @@ -0,0 +1,60 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|dialog:end: + - return|dialog:end: + - return|dialog:end: + - start|ROUTE_FIX_PBX_STOP_RECORDS: + - return|ROUTE_FIX_PBX_STOP_RECORDS: + - start|ROUTE_STOP_RTPPROXY: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0' + - 'From: ;tag=' + - 'To: ;tag=' + - 'CSeq: \d+ BYE' + - 'Max-Forwards: 70' + - 'Content-Length: 0' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: \d+ BYE', + 'Content-Length: 0', + ] + - [ + '^PUBLISH sip:testuser1002@spce.test SIP/2.0', + 'From: ', + 'To: ', + 'Event: dialog', + 'Content-Type: application/dialog-info\+xml', + ] + - [ + '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: \d+ BYE', + 'Max-Forwards: 69', + 'Content-Length: 0', + ] diff --git a/scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0035_test.yml.tt2 similarity index 100% rename from scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0035_test.yml.tt2 diff --git a/scenarios_pbx/incoming_shared_line/0024_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0036_test.yml.tt2 similarity index 100% rename from scenarios_pbx/incoming_shared_line/0024_test.yml.tt2 rename to scenarios_pbx/incoming_shared_line/0036_test.yml.tt2 diff --git a/scenarios_pbx/invite/0009_test.yml.tt2 b/scenarios_pbx/invite/0009_test.yml.tt2 deleted file mode 100644 index 5ca76cd9..00000000 --- a/scenarios_pbx/invite/0009_test.yml.tt2 +++ /dev/null @@ -1,33 +0,0 @@ -flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: - $avp(lua_dlg_profile): [ - "local", - "total" - ] - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: -sip_in: - - '^SIP/2.0 180 Ringing' - - 'CSeq: \d+ INVITE' -sip_out: - - [ - '^PUBLISH sip:testuser1003@spce.test SIP/2.0', - 'From: ', - 'To: ', - 'Event: dialog', - 'Content-Type: application/dialog-info\+xml', - ] - - [ - '^SIP/2.0 180 Ringing', - 'CSeq: \d+ INVITE', - ] diff --git a/scenarios_pbx/invite/0011_test.yml.tt2 b/scenarios_pbx/invite/0011_test.yml.tt2 deleted file mode 100644 index 72e7d9bf..00000000 --- a/scenarios_pbx/invite/0011_test.yml.tt2 +++ /dev/null @@ -1,39 +0,0 @@ -flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_RTPENGINE: - - return|REPLY_ROUTE_RTPENGINE: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - start|dialog:start: - - return|dialog:start: - $avp(lua_dlg_profile): [ - "local", - "total" - ] - - return|dialog:start: -sip_in: - - '^SIP/2.0 200 OK' - - 'CSeq: \d+ INVITE' -sip_out: - - [ - '^PUBLISH sip:testuser1003@spce.test SIP/2.0', - 'From: ', - 'To: ', - 'Event: dialog', - 'Content-Type: application/dialog-info\+xml', - ] - - [ - '^SIP/2.0 200 OK', - 'CSeq: \d+ INVITE', - 'From: ', - 'To: ', + '^PUBLISH sip:testuser1003@spce.test SIP/2.0', + 'From: ', + 'To: ', 'Event: dialog', 'Content-Type: application/dialog-info\+xml', ] - [ - '^SIP/2.0 200 OK', - 'CSeq: 2 INVITE', - 'From: ', + 'To: ', + 'Event: dialog', + 'Content-Type: application/dialog-info\+xml', + ] + - [ + '^SIP/2.0 180 Ringing', + 'CSeq: 2 INVITE', ] diff --git a/scenarios_pbx/invite/0015_test.yml.tt2 b/scenarios_pbx/invite/0015_test.yml.tt2 index cb9cd8b5..72e7d9bf 100644 --- a/scenarios_pbx/invite/0015_test.yml.tt2 +++ b/scenarios_pbx/invite/0015_test.yml.tt2 @@ -1,66 +1,39 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_FIX_PBX_STOP_RECORDS: - - return|ROUTE_FIX_PBX_STOP_RECORDS: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: - - start|ROUTE_SCA_UPDATE: - - return|ROUTE_SCA_UPDATE: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_RTPENGINE: + - return|REPLY_ROUTE_RTPENGINE: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: + - start|dialog:start: + - return|dialog:start: + $avp(lua_dlg_profile): [ + "local", + "total" + ] + - return|dialog:start: sip_in: - - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - - 'Contact: sip:testuser1002@' - - 'CSeq: 3 BYE' - - 'Max-Forwards: 69' - - 'Content-Length: 0' - - 'From: ', - 'To: ', + '^PUBLISH sip:testuser1003@spce.test SIP/2.0', + 'From: ', + 'To: ', 'Event: dialog', 'Content-Type: application/dialog-info\+xml', ] - [ - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0', - 'Contact: sip:testuser1002@', - 'CSeq: 3 BYE', - 'Max-Forwards: 68', - 'Content-Length: 0', + '^SIP/2.0 200 OK', + 'CSeq: \d+ INVITE', 'From: ', - 'To: ', + '^PUBLISH sip:testuser1002@spce.test SIP/2.0', + 'From: ', + 'To: ', 'Event: dialog', 'Content-Type: application/dialog-info\+xml', ] - [ - '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0', - 'CSeq: \d+ BYE', - 'Max-Forwards: 69', - 'Content-Length: 0', - 'From: ', + 'To: ', + 'Event: dialog', + 'Content-Type: application/dialog-info\+xml', + ] + - [ + '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0', + 'Contact: sip:testuser1002@', + 'CSeq: 3 BYE', + 'Max-Forwards: 68', + 'Content-Length: 0', + 'From: ', + 'To: ', + 'Event: dialog', + 'Content-Type: application/dialog-info\+xml', ] - [ '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0', @@ -47,5 +58,5 @@ sip_out: 'Max-Forwards: 69', 'Content-Length: 0', 'From: ;tag=' - - 'To: ;tag=' - - 'CSeq: \d+ INVITE' - - 'Contact: ' - - 'Content-Type: application/sdp' -sip_out: - - [ - '^PUBLISH sip:testuser1003@spce.test SIP/2.0', - 'From: ', - 'To: ', - 'Event: dialog', - 'Content-Type: application/dialog-info\+xml', - ] - - [ - '^SIP/2.0 200 OK', - 'From: ;tag=', - 'To: ;tag=', - 'CSeq: \d+ INVITE', - 'Contact: ', - 'Content-Type: application/sdp' - ] diff --git a/scenarios_pbx/invite_shared_line/0011_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0011_test.yml.tt2 deleted file mode 100644 index deeb2270..00000000 --- a/scenarios_pbx/invite_shared_line/0011_test.yml.tt2 +++ /dev/null @@ -1,60 +0,0 @@ -flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|REPLY_SCA_UPDATE: - - return|REPLY_SCA_UPDATE: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: -sip_in: - - '^SIP/2.0 180 Ringing' - - 'From: ;tag=' - - 'To: ;tag=' - - 'CSeq: 2 INVITE' - - 'Contact: ' -sip_out: - - [ - '^NOTIFY sip:testuser1002@127.1.0.2:\d+ SIP/2.0', - 'To: ;tag=', - 'From: ;tag=', - 'CSeq: 2 NOTIFY', - 'Contact: sip:127.0.0.1:5062', - 'Call-Info: ;appearance-index=1', - 'Event: line-seize', - 'Subscription-State: terminated;reason=noresource' - ] - - [ - '^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0', - 'To: ;tag=', - 'From: ;tag=', - 'CSeq: 4 NOTIFY', - 'Contact: sip:127.0.0.1:5062', - 'Call-Info: ;appearance-index=1;appearance-state=progressing,;appearance-index=\*;appearance-state=idle', - 'Event: call-info', - 'Subscription-State: active;expires=\d+' - ] - - [ - '^PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'From: ', - 'To: ', - 'Event: dialog', - 'Content-Type: application/dialog-info\+xml', - ] - - [ - '^SIP/2.0 180 Ringing', - 'From: ;tag=', - 'To: ;tag=', - 'CSeq: 2 INVITE', - 'Contact: ', - 'Content-Length:\s+0', - 'P-COLP-Identity: \"1003\" ', - 'P-Out-Socket: udp:127.0.0.1:5060' - ] \ No newline at end of file diff --git a/scenarios_pbx/invite_shared_line/0012_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0012_test.yml.tt2 index d8786dde..4ba2d6ff 100644 --- a/scenarios_pbx/invite_shared_line/0012_test.yml.tt2 +++ b/scenarios_pbx/invite_shared_line/0012_test.yml.tt2 @@ -5,63 +5,30 @@ flow: - return|ROUTE_ENTRY: - start|ROUTE_APPLY_HEADER_RULES: - return|ROUTE_APPLY_HEADER_RULES: - - start|REPLY_SCA_UPDATE: - - return|REPLY_SCA_UPDATE: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_FIX_PBX_STOP_RECORDS: - - return|ROUTE_FIX_PBX_STOP_RECORDS: - - start|REPLY_ROUTE_RTPENGINE: - - return|REPLY_ROUTE_RTPENGINE: - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - start|dialog:start: - - return|dialog:start: - $avp(lua_dlg_profile): [ - "totalaccountout:[% customerpbx_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", - "totalaccount:[% customerpbx_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", - "totalaccount:[% customerpbx_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", - "total" - ] - - return|dialog:start: + - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'From: ;tag=' - - 'To: ;tag=' - - 'CSeq: 2 INVITE' + - '^SIP/2.0 180 Ringing' - 'Contact: ' - - 'Content-Type: application/sdp' + - 'Content-Length:\s+0' sip_out: - [ - '^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0', - 'To: ;tag=', - 'From: ;tag=', - 'CSeq: 5 NOTIFY', - 'Contact: sip:127.0.0.1:5062', - 'Call-Info: ;appearance-index=1;appearance-state=active;appearance-uri=\"\",;appearance-index=\*;appearance-state=idle', - 'Event: call-info', - 'Subscription-State: active;expires=\d+' - ] - - [ - '^PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'From: ', - 'To: ', + '^PUBLISH sip:testuser1003@spce.test SIP/2.0', + 'From: ', + 'To: ', 'Event: dialog', 'Content-Type: application/dialog-info\+xml', ] - [ - '^SIP/2.0 200 OK', + '^SIP/2.0 180 Ringing', 'From: ;tag=', 'To: ;tag=', - 'CSeq: 2 INVITE', + 'CSeq: \d+ INVITE', 'Contact: ', - 'Content-Type: application/sdp', - 'P-COLP-Identity: \"1003\" ', - 'P-Asserted-Identity: ', - 'P-Out-Socket: udp:127.0.0.1:5060' + 'Content-Length:\s+0' ] diff --git a/scenarios_pbx/invite_shared_line/0013_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0013_test.yml.tt2 index 276aa2a2..deeb2270 100644 --- a/scenarios_pbx/invite_shared_line/0013_test.yml.tt2 +++ b/scenarios_pbx/invite_shared_line/0013_test.yml.tt2 @@ -1,50 +1,60 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|ROUTE_SCA_UPDATE: - - return|ROUTE_SCA_UPDATE: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|REPLY_SCA_UPDATE: + - return|REPLY_SCA_UPDATE: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - start|ROUTE_WITHINDLG_RTPENGINE: - - return|ROUTE_WITHINDLG_RTPENGINE: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - '^SIP/2.0 180 Ringing' - 'From: ;tag=' - 'To: ;tag=' - - 'Call-Info: ;appearance-index=1' - - 'CSeq: 2 ACK' - - 'Contact: sip:testuser1002@127.126.0.1:\d+' - - 'Content-Length:\s+0' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' - - 'P-NGCP-Src-Proto: udp' - - 'P-NGCP-Src-Af: 4' - - 'P-Sock-Info: udp:127.0.0.1:5060' + - 'CSeq: 2 INVITE' + - 'Contact: ' sip_out: - [ - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0', + '^NOTIFY sip:testuser1002@127.1.0.2:\d+ SIP/2.0', + 'To: ;tag=', 'From: ;tag=', - 'To: ;tag=', + 'CSeq: 2 NOTIFY', + 'Contact: sip:127.0.0.1:5062', 'Call-Info: ;appearance-index=1', - 'CSeq: 2 ACK', - 'Contact: sip:testuser1002@127.126.0.1:\d+', - 'Content-Length:\s+0', + 'Event: line-seize', + 'Subscription-State: terminated;reason=noresource' + ] + - [ + '^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0', + 'To: ;tag=', + 'From: ;tag=', + 'CSeq: 4 NOTIFY', + 'Contact: sip:127.0.0.1:5062', + 'Call-Info: ;appearance-index=1;appearance-state=progressing,;appearance-index=\*;appearance-state=idle', + 'Event: call-info', + 'Subscription-State: active;expires=\d+' ] + - [ + '^PUBLISH sip:testuser1002@spce.test SIP/2.0', + 'From: ', + 'To: ', + 'Event: dialog', + 'Content-Type: application/dialog-info\+xml', + ] + - [ + '^SIP/2.0 180 Ringing', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: 2 INVITE', + 'Contact: ', + 'Content-Length:\s+0', + 'P-COLP-Identity: \"1003\" ', + 'P-Out-Socket: udp:127.0.0.1:5060' + ] \ No newline at end of file diff --git a/scenarios_pbx/invite_shared_line/0014_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0014_test.yml.tt2 deleted file mode 100644 index 6d691ab4..00000000 --- a/scenarios_pbx/invite_shared_line/0014_test.yml.tt2 +++ /dev/null @@ -1,42 +0,0 @@ -flow: - - start|DEFAULT_ROUTE: - - start|ROUTE_ENTRY: - - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|ROUTE_PREPARE_UA: - - return|ROUTE_PREPARE_UA: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - start|ROUTE_WITHINDLG_RTPENGINE: - - return|ROUTE_WITHINDLG_RTPENGINE: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - start|ROUTE_EXIT: - - start|ROUTE_RUNTIME: - - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: -sip_in: - - '^ACK sip:127.0.0.1:5080;transport=udp SIP/2.0' - - 'From: ;tag=' - - 'To: ;tag=' - - 'CSeq: \d+ ACK' - - 'Max-Forwards: 70' - - 'Content-Length:\s+0' - - 'Contact: ' -sip_out: - - [ - '^ACK sip:127.0.0.1:5080;transport=udp SIP/2.0', - 'From: ;tag=', - 'To: ;tag=', - 'CSeq: \d+ ACK', - 'Content-Length:\s+0', - 'Contact: ' - ] diff --git a/scenarios_pbx/invite_shared_line/0015_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0015_test.yml.tt2 index 5c119b2b..554020a0 100644 --- a/scenarios_pbx/invite_shared_line/0015_test.yml.tt2 +++ b/scenarios_pbx/invite_shared_line/0015_test.yml.tt2 @@ -1,83 +1,45 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_FIX_PBX_STOP_RECORDS: - - return|ROUTE_FIX_PBX_STOP_RECORDS: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: - - start|ROUTE_SCA_UPDATE: - - return|ROUTE_SCA_UPDATE: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|REPLY_ROUTE_RTPENGINE: + - return|REPLY_ROUTE_RTPENGINE: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: + - start|dialog:start: + - return|dialog:start: + $avp(lua_dlg_profile): [ + "local", + "total" + ] + - return|dialog:start: sip_in: - - '^BYE sip:127.0.0.1:5080;prxroute=1 SIP/2.0' - - 'From: ;tag=' + - '^SIP/2.0 200 OK' + - 'From: ;tag=' - 'To: ;tag=' - - 'Call-Info: ;appearance-index=1' - - 'CSeq: 3 BYE' - - 'Contact: sip:testuser1002@127.126.0.1:\d+' - - 'Content-Length:\s+0' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' - - 'P-NGCP-Src-Proto: udp' - - 'P-NGCP-Src-Af: 4' - - 'P-Sock-Info: udp:127.0.0.1:5060' + - 'CSeq: \d+ INVITE' + - 'Contact: ' + - 'Content-Type: application/sdp' sip_out: - [ - '^SIP/2.0 100 Trying', - 'From: ;tag=', - 'To: ;tag=', - 'CSeq: 3 BYE', - 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.126.0.1', - 'P-NGCP-Auth-UA: ', - 'Content-Length: 0' - ] - - [ - '^PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'From: ', - 'To: ', + '^PUBLISH sip:testuser1003@spce.test SIP/2.0', + 'From: ', + 'To: ', 'Event: dialog', 'Content-Type: application/dialog-info\+xml', ] - [ - '^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0', - 'To: ;tag=', - 'From: ;tag=', - 'CSeq: 6 NOTIFY', - 'Content-Length: 0', - 'Contact: sip:127.0.0.1:5062', - 'Call-Info: ;appearance-index=\*;appearance-state=idle', - 'Event: call-info', - 'Subscription-State: active;expires=\d+' - ] - - [ - '^BYE sip:127.0.0.1:5080;prxroute=1 SIP/2.0', + '^SIP/2.0 200 OK', 'From: ;tag=', 'To: ;tag=', - 'CSeq: 3 BYE', - 'Contact: sip:testuser1002@127.126.0.1:\d+', - 'Content-Length: 0', + 'CSeq: \d+ INVITE', + 'Contact: ', + 'Content-Type: application/sdp' ] diff --git a/scenarios_pbx/invite_shared_line/0016_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0016_test.yml.tt2 index 518f25ba..d8786dde 100644 --- a/scenarios_pbx/invite_shared_line/0016_test.yml.tt2 +++ b/scenarios_pbx/invite_shared_line/0016_test.yml.tt2 @@ -1,59 +1,67 @@ flow: - - start|DEFAULT_ROUTE: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_NET_INFO: - - return|ROUTE_NET_INFO: - - start|ROUTE_CHECK_TEL_URI: - - return|ROUTE_CHECK_TEL_URI: - - start|ROUTE_PRX_REQUEST: - - start|ROUTE_INITVARS: - - return|ROUTE_INITVARS: - - start|dialog:end: - - return|dialog:end: - $avp(lua_dlg_profile): None - - return|dialog:end: - - start|ROUTE_FIX_PBX_STOP_RECORDS: - - return|ROUTE_FIX_PBX_STOP_RECORDS: - - start|ROUTE_STOP_RTPPROXY: - - start|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_RESTORE_CLUSTERSET: - - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|REPLY_SCA_UPDATE: + - return|REPLY_SCA_UPDATE: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|ROUTE_OUTBOUND: - - start|DEFAULT_SEND: - - exit|DEFAULT_SEND: - - exit|DEFAULT_SEND: + - start|ROUTE_FIX_PBX_STOP_RECORDS: + - return|ROUTE_FIX_PBX_STOP_RECORDS: + - start|REPLY_ROUTE_RTPENGINE: + - return|REPLY_ROUTE_RTPENGINE: + - start|REPLY_ROUTE_NAT_CONTINUE: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - - exit|ROUTE_EXIT: + - start|dialog:start: + - return|dialog:start: + $avp(lua_dlg_profile): [ + "totalaccountout:[% customerpbx_test.id %]", + "totaluserout:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customerpbx_test.id %]", + "totaluser:[% spce_test.testuser1002.uuid %]", + "totalaccount:[% customerpbx_test.id %]", + "totaluser:[% spce_test.testuser1003.uuid %]", + "total" + ] + - return|dialog:start: sip_in: - - '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0' + - '^SIP/2.0 200 OK' - 'From: ;tag=' - 'To: ;tag=' - - 'CSeq: \d+ BYE' - - 'Content-Length: 0' + - 'CSeq: 2 INVITE' + - 'Contact: ' + - 'Content-Type: application/sdp' sip_out: - [ - '^SIP/2.0 100 Trying', + '^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0', + 'To: ;tag=', 'From: ;tag=', - 'To: ;tag=', - 'CSeq: \d+ BYE', - 'Content-Length: 0' + 'CSeq: 5 NOTIFY', + 'Contact: sip:127.0.0.1:5062', + 'Call-Info: ;appearance-index=1;appearance-state=active;appearance-uri=\"\",;appearance-index=\*;appearance-state=idle', + 'Event: call-info', + 'Subscription-State: active;expires=\d+' ] - [ - '^PUBLISH sip:testuser1003@spce.test SIP/2.0', - 'From: ', - 'To: ', + '^PUBLISH sip:testuser1002@spce.test SIP/2.0', + 'From: ', + 'To: ', 'Event: dialog', 'Content-Type: application/dialog-info\+xml', ] - [ - '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0', - 'From: ;tag=', + '^SIP/2.0 200 OK', + 'From: ;tag=', 'To: ;tag=', - 'CSeq: \d+ BYE', - 'Content-Length: 0' + 'CSeq: 2 INVITE', + 'Contact: ', + 'Content-Type: application/sdp', + 'P-COLP-Identity: \"1003\" ', + 'P-Asserted-Identity: ', + 'P-Out-Socket: udp:127.0.0.1:5060' ] diff --git a/scenarios_pbx/invite_shared_line/0017_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0017_test.yml.tt2 index cab3f343..276aa2a2 100644 --- a/scenarios_pbx/invite_shared_line/0017_test.yml.tt2 +++ b/scenarios_pbx/invite_shared_line/0017_test.yml.tt2 @@ -1,28 +1,50 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|ROUTE_SCA_UPDATE: + - return|ROUTE_SCA_UPDATE: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - start|ROUTE_WITHINDLG_RTPENGINE: + - return|ROUTE_WITHINDLG_RTPENGINE: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' - - 'From: ;tag=' + - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' + - 'From: ;tag=' - 'To: ;tag=' - - 'CSeq: \d+ BYE' - - 'Content-Length: 0' + - 'Call-Info: ;appearance-index=1' + - 'CSeq: 2 ACK' + - 'Contact: sip:testuser1002@127.126.0.1:\d+' + - 'Content-Length:\s+0' + - 'P-NGCP-Src-Ip: 127.126.0.1' + - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Proto: udp' + - 'P-NGCP-Src-Af: 4' + - 'P-Sock-Info: udp:127.0.0.1:5060' sip_out: - [ - '^SIP/2.0 200 OK', + '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0', 'From: ;tag=', 'To: ;tag=', - 'CSeq: \d+ BYE', - 'Content-Length: 0' + 'Call-Info: ;appearance-index=1', + 'CSeq: 2 ACK', + 'Contact: sip:testuser1002@127.126.0.1:\d+', + 'Content-Length:\s+0', ] diff --git a/scenarios_pbx/invite_shared_line/0018_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0018_test.yml.tt2 index 5b1c881c..6d691ab4 100644 --- a/scenarios_pbx/invite_shared_line/0018_test.yml.tt2 +++ b/scenarios_pbx/invite_shared_line/0018_test.yml.tt2 @@ -1,31 +1,42 @@ flow: - - start|DEFAULT_ONREPLY: - - start|REPLY_ROUTE_NAT: + - start|DEFAULT_ROUTE: - start|ROUTE_ENTRY: - return|ROUTE_ENTRY: - - start|ROUTE_APPLY_HEADER_RULES: - - return|ROUTE_APPLY_HEADER_RULES: - - start|REPLY_SCA_UPDATE: - - return|REPLY_SCA_UPDATE: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - start|ROUTE_WITHINDLG_RTPENGINE: + - return|ROUTE_WITHINDLG_RTPENGINE: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 200 OK' + - '^ACK sip:127.0.0.1:5080;transport=udp SIP/2.0' - 'From: ;tag=' - 'To: ;tag=' - - 'CSeq: 3 BYE' - - 'Content-Length: 0' + - 'CSeq: \d+ ACK' + - 'Max-Forwards: 70' + - 'Content-Length:\s+0' + - 'Contact: ' sip_out: - [ - '^SIP/2.0 200 OK', - 'From: ;tag=', + '^ACK sip:127.0.0.1:5080;transport=udp SIP/2.0', + 'From: ;tag=', 'To: ;tag=', - 'CSeq: 3 BYE', - 'Content-Length: 0', - 'P-Out-Socket: udp:127.0.0.1:5060' + 'CSeq: \d+ ACK', + 'Content-Length:\s+0', + 'Contact: ' ] diff --git a/scenarios_pbx/invite_shared_line/0020_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0020_test.yml.tt2 new file mode 100644 index 00000000..5c119b2b --- /dev/null +++ b/scenarios_pbx/invite_shared_line/0020_test.yml.tt2 @@ -0,0 +1,83 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|dialog:end: + - return|dialog:end: + $avp(lua_dlg_profile): None + - return|dialog:end: + - start|ROUTE_FIX_PBX_STOP_RECORDS: + - return|ROUTE_FIX_PBX_STOP_RECORDS: + - start|ROUTE_STOP_RTPPROXY: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_SCA_UPDATE: + - return|ROUTE_SCA_UPDATE: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^BYE sip:127.0.0.1:5080;prxroute=1 SIP/2.0' + - 'From: ;tag=' + - 'To: ;tag=' + - 'Call-Info: ;appearance-index=1' + - 'CSeq: 3 BYE' + - 'Contact: sip:testuser1002@127.126.0.1:\d+' + - 'Content-Length:\s+0' + - 'P-NGCP-Src-Ip: 127.126.0.1' + - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Proto: udp' + - 'P-NGCP-Src-Af: 4' + - 'P-Sock-Info: udp:127.0.0.1:5060' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: 3 BYE', + 'P-Out-Socket: udp:127.0.0.1:5060', + 'P-NGCP-Auth-IP: 127.126.0.1', + 'P-NGCP-Auth-UA: ', + 'Content-Length: 0' + ] + - [ + '^PUBLISH sip:testuser1002@spce.test SIP/2.0', + 'From: ', + 'To: ', + 'Event: dialog', + 'Content-Type: application/dialog-info\+xml', + ] + - [ + '^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0', + 'To: ;tag=', + 'From: ;tag=', + 'CSeq: 6 NOTIFY', + 'Content-Length: 0', + 'Contact: sip:127.0.0.1:5062', + 'Call-Info: ;appearance-index=\*;appearance-state=idle', + 'Event: call-info', + 'Subscription-State: active;expires=\d+' + ] + - [ + '^BYE sip:127.0.0.1:5080;prxroute=1 SIP/2.0', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: 3 BYE', + 'Contact: sip:testuser1002@127.126.0.1:\d+', + 'Content-Length: 0', + ] diff --git a/scenarios_pbx/invite_shared_line/0021_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0021_test.yml.tt2 new file mode 100644 index 00000000..518f25ba --- /dev/null +++ b/scenarios_pbx/invite_shared_line/0021_test.yml.tt2 @@ -0,0 +1,59 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|dialog:end: + - return|dialog:end: + $avp(lua_dlg_profile): None + - return|dialog:end: + - start|ROUTE_FIX_PBX_STOP_RECORDS: + - return|ROUTE_FIX_PBX_STOP_RECORDS: + - start|ROUTE_STOP_RTPPROXY: + - start|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_RESTORE_CLUSTERSET: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|ROUTE_OUTBOUND: + - start|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - exit|DEFAULT_SEND: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0' + - 'From: ;tag=' + - 'To: ;tag=' + - 'CSeq: \d+ BYE' + - 'Content-Length: 0' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: \d+ BYE', + 'Content-Length: 0' + ] + - [ + '^PUBLISH sip:testuser1003@spce.test SIP/2.0', + 'From: ', + 'To: ', + 'Event: dialog', + 'Content-Type: application/dialog-info\+xml', + ] + - [ + '^BYE sip:127.0.0.1:5080;transport=udp SIP/2.0', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: \d+ BYE', + 'Content-Length: 0' + ] diff --git a/scenarios_pbx/invite_shared_line/0024_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0024_test.yml.tt2 new file mode 100644 index 00000000..cab3f343 --- /dev/null +++ b/scenarios_pbx/invite_shared_line/0024_test.yml.tt2 @@ -0,0 +1,28 @@ +flow: + - start|DEFAULT_ONREPLY: + - start|REPLY_ROUTE_NAT: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_APPLY_HEADER_RULES: + - return|ROUTE_APPLY_HEADER_RULES: + - start|ROUTE_PREPARE_UA: + - return|ROUTE_PREPARE_UA: + - start|REPLY_ROUTE_NAT_CONTINUE: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^SIP/2.0 200 OK' + - 'From: ;tag=' + - 'To: ;tag=' + - 'CSeq: \d+ BYE' + - 'Content-Length: 0' +sip_out: + - [ + '^SIP/2.0 200 OK', + 'From: ;tag=', + 'To: ;tag=', + 'CSeq: \d+ BYE', + 'Content-Length: 0' + ] diff --git a/scenarios_pbx/invite_shared_line/0009_test.yml.tt2 b/scenarios_pbx/invite_shared_line/0025_test.yml.tt2 similarity index 50% rename from scenarios_pbx/invite_shared_line/0009_test.yml.tt2 rename to scenarios_pbx/invite_shared_line/0025_test.yml.tt2 index 4ba2d6ff..5b1c881c 100644 --- a/scenarios_pbx/invite_shared_line/0009_test.yml.tt2 +++ b/scenarios_pbx/invite_shared_line/0025_test.yml.tt2 @@ -5,6 +5,8 @@ flow: - return|ROUTE_ENTRY: - start|ROUTE_APPLY_HEADER_RULES: - return|ROUTE_APPLY_HEADER_RULES: + - start|REPLY_SCA_UPDATE: + - return|REPLY_SCA_UPDATE: - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: - start|REPLY_ROUTE_NAT_CONTINUE: @@ -13,22 +15,17 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^SIP/2.0 180 Ringing' - - 'Contact: ' - - 'Content-Length:\s+0' + - '^SIP/2.0 200 OK' + - 'From: ;tag=' + - 'To: ;tag=' + - 'CSeq: 3 BYE' + - 'Content-Length: 0' sip_out: - [ - '^PUBLISH sip:testuser1003@spce.test SIP/2.0', - 'From: ', - 'To: ', - 'Event: dialog', - 'Content-Type: application/dialog-info\+xml', - ] - - [ - '^SIP/2.0 180 Ringing', + '^SIP/2.0 200 OK', 'From: ;tag=', 'To: ;tag=', - 'CSeq: \d+ INVITE', - 'Contact: ', - 'Content-Length:\s+0' + 'CSeq: 3 BYE', + 'Content-Length: 0', + 'P-Out-Socket: udp:127.0.0.1:5060' ]