From 760c9e32f4196c65f7afe6a79e1a4150c5e3affe Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 14 Nov 2022 10:31:40 +0100 Subject: [PATCH] TT#163700 scenarios_pbx: incoming_shared_line * update 0023_test from generator Change-Id: I12016fbe516066a85119a8cc5bd5dff6e5905cfe --- .../incoming_shared_line/0023_test.yml.tt2 | 45 +++++++++++-------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 index b9cd2985..805f3dd0 100644 --- a/scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 +++ b/scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 @@ -27,55 +27,62 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'ACK sip:127.0.0.1:508[08];prxroute=1 SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'Record-Route: ' + - 'Record-Route: ' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'Call-Info: ;appearance-index=1' - 'CSeq: \d+ ACK' - - 'Contact: ]+)?>' - - 'Content-Length: 0' + - 'Contact: ' + - 'Content-Length:\s+0' - 'P-NGCP-Src-Ip: [% scenarios.2.ip %]' - 'P-NGCP-Src-Port: [% scenarios.2.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' - 'P-Sock-Info: udp:[% server_ip %]:5060' - - 'P-LB-Uptime: \d+' + - 'P-LB-Uptime:\s+\d+' + - 'P-NGCP-Src-Nat: 1' sip_out: - [ - 'NOTIFY sip:[% scenarios.0.responders.0.username %]@', - 'To: ;tag=[\w-]+', - 'From: ;tag=[\w-]+', + 'NOTIFY sip:[% scenarios.1.responders.0.username %]@[% scenarios.1.responders.0.ip %]:[% scenarios.1.responders.0.port %];alias=[^; ]+ SIP/2.0', + 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', 'CSeq: \d+ NOTIFY', - 'Content-Length: 0', + 'Content-Length:\s+0', 'User-Agent: Sipwise NGCP Proxy', 'Contact: sip:127.0.0.1:5062', - 'Call-Info: ;appearance-index=1;appearance-state=active;appearance-uri=\"\",;appearance-index=\*;appearance-state=idle', + 'Call-Info: ;appearance-index=1;appearance-state=active;appearance-uri="",;appearance-index=\*;appearance-state=idle', 'Event: call-info', 'Subscription-State: active;expires=\d+', ] - [ - 'NOTIFY sip:[% scenarios.1.responders.0.username %]@', - 'To: ;tag=[\w-]+', - 'From: ;tag=[\w-]+', + 'NOTIFY sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];alias=[^; ]+ SIP/2.0', + 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', 'CSeq: \d+ NOTIFY', - 'Content-Length: 0', + 'Content-Length:\s+0', 'User-Agent: Sipwise NGCP Proxy', 'Contact: sip:127.0.0.1:5062', - 'Call-Info: ;appearance-index=1;appearance-state=active;appearance-uri=\"\",;appearance-index=\*;appearance-state=idle', + 'Call-Info: ;appearance-index=1;appearance-state=active;appearance-uri="",;appearance-index=\*;appearance-state=idle', 'Event: call-info', 'Subscription-State: active;expires=\d+', ] - [ 'ACK sip:127.0.0.1:508[08];prxroute=1 SIP/2.0', + 'Record-Route: ', + 'Record-Route: ', + 'Record-Route: ', 'From: ;tag=[\w-]+', 'To: ;tag=[\w-]+', 'Call-Info: ;appearance-index=1', 'CSeq: \d+ ACK', - 'Contact: ]+)?>', - 'Content-Length: 0', + 'Contact: ', + 'Content-Length:\s+0', 'P-NGCP-Src-Ip: [% scenarios.2.ip %]', 'P-NGCP-Src-Port: [% scenarios.2.port %]', 'P-NGCP-Src-Proto: udp', 'P-NGCP-Src-Af: 4', 'P-Sock-Info: udp:[% server_ip %]:5060', - 'P-LB-Uptime: \d+', - ] \ No newline at end of file + 'P-LB-Uptime:\s+\d+', + 'P-NGCP-Src-Nat: 1', + ]