From 722e07cb39fee72bdc0a8e7170e100358a4a9a04 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 26 Oct 2022 09:16:47 +0200 Subject: [PATCH] TT#163700 scenarios_pbx: fix incoming_shared_line Change-Id: I4323746d880c0bcc40e3a1ef1e23387a4be5e42f --- .../incoming_shared_line/0023_test.yml.tt2 | 88 ++++++++----------- 1 file changed, 35 insertions(+), 53 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..6e9483cb 100644 --- a/scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 +++ b/scenarios_pbx/incoming_shared_line/0023_test.yml.tt2 @@ -9,73 +9,55 @@ flow: - 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|ROUTE_STOP_RTPPROXY: - 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: + - return|ROUTE_STOP_RTPPROXY: + - start|ROUTE_LOCAL: - start|ROUTE_EXIT: - start|ROUTE_RUNTIME: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'ACK sip:127.0.0.1:508[08];prxroute=1 SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' - - 'Call-Info: ;appearance-index=1' - - 'CSeq: \d+ ACK' - - 'Contact: ]+)?>' - - 'Content-Length: 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+' + - 'CANCEL sip:[% scenarios.2.responders.0.username %]@[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %] SIP/2.0' + - 'To: ' + - 'From: ;tag=[\w-]+' + - 'CSeq: \d+ CANCEL' + - 'Contact: ' + - 'P-LB-Uptime: \d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% incoming_shared_line_scenarios_pbx_test.testuser1003.uuid %]' + - 'P-Callee-UUID: [% incoming_shared_line_scenarios_pbx_test.testuser1002.uuid %]' + - 'P-NGCP-Rtpengine-Bleg: 1' + - 'P-NGCP-Caller-Info: ;ip=[% scenarios.2.ip %];port=[% scenarios.2.port %];primary=[% incoming_shared_line_scenarios_pbx_test.testuser1003.pbx_phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=[% scenarios.2.responders.0.ip %];port=[% scenarios.2.responders.0.port %];primary=[% incoming_shared_line_scenarios_pbx_test.testuser1002.phone_number %]' + - 'P-NGCP-Presence-Caller: sip:[% scenarios.2.username %]@incoming-shared-line.scenarios-pbx.test' + - 'P-NGCP-Presence-Callee: sip:[% scenarios.0.username %]@incoming-shared-line.scenarios-pbx.test' + - 'P-D-Uri: sip:lb@127.0.0.1;lr;received=sip:[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %];socket=sip:[% server_ip %]:5060' + - 'Reason: SIP;cause=200;text="Call completed elsewhere"' + - 'Content-Length: 0' sip_out: - [ - 'NOTIFY sip:[% scenarios.0.responders.0.username %]@', - 'To: ;tag=[\w-]+', - 'From: ;tag=[\w-]+', - 'CSeq: \d+ NOTIFY', + 'SIP/2.0 100 Trying', + 'To: ', + 'From: ;tag=[\w-]+', + 'CSeq: \d+ CANCEL', + 'Server: Sipwise NGCP Proxy', 'Content-Length: 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', - 'Event: call-info', - 'Subscription-State: active;expires=\d+', ] - [ - 'NOTIFY sip:[% scenarios.1.responders.0.username %]@', - 'To: ;tag=[\w-]+', - 'From: ;tag=[\w-]+', - 'CSeq: \d+ NOTIFY', + 'CANCEL sip:[% scenarios.2.responders.0.username %]@[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %] SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ CANCEL', 'Content-Length: 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', - 'Event: call-info', - 'Subscription-State: active;expires=\d+', + 'Reason: SIP;cause=200;text="Call completed elsewhere"', ] - [ - 'ACK sip:127.0.0.1:508[08];prxroute=1 SIP/2.0', + 'SIP/2.0 200 canceling', + 'To: ;tag=[\w-]+', 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', - 'Call-Info: ;appearance-index=1', - 'CSeq: \d+ ACK', - 'Contact: ]+)?>', + 'CSeq: \d+ CANCEL', + 'Server: Sipwise NGCP Proxy', 'Content-Length: 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 + ]