diff --git a/scenarios_pbx/incoming_shared_line/0016_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0016_test.yml.tt2 index af14547f..2c6f1636 100644 --- a/scenarios_pbx/incoming_shared_line/0016_test.yml.tt2 +++ b/scenarios_pbx/incoming_shared_line/0016_test.yml.tt2 @@ -1,50 +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|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: - - return|dialog:start: + - return|DEFAULT_ONREPLY: sip_in: - - '^SIP/2.0 200 OK' - - 'From: ;tag=' - - 'To: ;tag=' - - 'CSeq: 2 INVITE' - - 'Call-Info: ;appearance-index=1' - - 'Contact: ' - - 'Content-Type: application/sdp' - - 'Content-Length: \d+' -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: 2 INVITE', - 'Contact: ', - 'Content-Type: application/sdp', - 'Content-Length: \d+', - 'P-COLP-Identity: \"1002\" ', - 'P-Out-Socket: udp:127.0.0.1:5060', - ] + - 'SIP/2.0 200 OK' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ CANCEL' + - 'Server: Sipwise NGCP Application' + - 'Content-Length: 0' +sip_out: [] diff --git a/scenarios_pbx/incoming_shared_line/0017_test.yml.tt2 b/scenarios_pbx/incoming_shared_line/0017_test.yml.tt2 new file mode 100644 index 00000000..27beb530 --- /dev/null +++ b/scenarios_pbx/incoming_shared_line/0017_test.yml.tt2 @@ -0,0 +1,29 @@ +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 487 Request terminated' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ INVITE' + - 'Server: Sipwise NGCP Application' + - 'Content-Length: 0' +sip_out: + - [ + 'ACK sip:testuser1002@127.1.0.3:\d+ SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ ACK', + 'Content-Length: 0', + ] diff --git a/scenarios_pbx/invite_group_serial/0022_test.yml.tt2 b/scenarios_pbx/invite_group_serial/0022_test.yml.tt2 new file mode 100644 index 00000000..46cf9405 --- /dev/null +++ b/scenarios_pbx/invite_group_serial/0022_test.yml.tt2 @@ -0,0 +1,40 @@ +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' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ INVITE' + - 'Contact: ' + - 'Content-Length: 0' +sip_out: + - [ + 'PUBLISH sip:testuser1004@spce.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', + 'CSeq: \d+ PUBLISH', + 'Content-Length:\s+\d+', + 'User-Agent: Sipwise NGCP Proxy', + 'Event: dialog', + 'Content-Type: application/dialog\-info\+xml', + ] + - [ + 'SIP/2.0 180 Ringing', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ INVITE', + 'Contact: ', + 'Content-Length: 0', + ] diff --git a/scenarios_pbx/invite_group_serial/0023_test.yml.tt2 b/scenarios_pbx/invite_group_serial/0025_test.yml.tt2 similarity index 100% rename from scenarios_pbx/invite_group_serial/0023_test.yml.tt2 rename to scenarios_pbx/invite_group_serial/0025_test.yml.tt2 diff --git a/scenarios_pbx/invite_perm_reg/0004_test.yml.tt2 b/scenarios_pbx/invite_perm_reg/0004_test.yml.tt2 index d6666b29..354ae6a3 100644 --- a/scenarios_pbx/invite_perm_reg/0004_test.yml.tt2 +++ b/scenarios_pbx/invite_perm_reg/0004_test.yml.tt2 @@ -143,51 +143,68 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'INVITE sip:testuser1003@' - - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - - 'Max-Forwards: 70' - - 'P-NGCP-Lookup-Type: ext' + - 'P-NGCP-Src-Ip: 127.126.0.1' + - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Proto: udp' + - 'P-NGCP-Src-Af: 4' + - 'P-LB-Uptime: \d+' + - 'P-NGCP-Src-Nat: 0' + - 'P-Caller-CLIR: 0' - 'P-NGCP-Orig-User: 43110021003' - 'P-NGCP-Orig-Domain: spce.test' - 'P-NGCP-Orig-Dialed: 1003' + - 'P-NGCP-Orig-PBX-Ext: 1003' + - 'P-First-Caller-Cloud-PBX: [% customerpbx_test.id %]' + - 'P-AA-Caller-CLIR: 0' + - 'P-NGCP-Lookup-Type: ext' - 'P-NGCP-BlockOut-Override: 0' - 'P-NGCP-AdmBlockOut-Override: 0' - 'P-NGCP-ContBlockOut-Override: 0' - 'P-NGCP-ContAdmBlockOut-Override: 0' - - 'P-Caller-CLIR: 0' - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' - 'P-Callee-UUID: [% spce_test.testuser1003.uuid %]' - - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[5|8];' + - 'P-NGCP-Acc-Src-Leg: .+' + - 'P-NGCP-Acc-Dst-Leg: .+' + - 'P-NGCP-Sems-Instance: pbx' + - 'P-Proxy-Uri: 127.0.0.1:5062' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=508[58];primary=43110021003' - 'P-To-Device: 1' - 'Content-Type: application/sdp' - - 'Contact: ' + - 'Content-Length:\s+\d+' + - 'Contact: ' sip_out: - [ 'SIP/2.0 100 Trying', - 'Via: SIP/2.0/UDP 127.0.0.1:508[5|8];branch=', - 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', - 'Content-Length: 0' - ] + 'Server: Sipwise NGCP Proxy', + 'Content-Length: 0', + ] - [ - 'INVITE sip:127.3.0.5:', - 'From: ', - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', - 'P-Callee-UUID: [% spce_test.testuser1003.uuid %]', - 'P-Asserted-Identity: ;tag=[\w-]+', + 'To: ', + 'CSeq: \d+ INVITE', + 'P-LB-Uptime: \d+', + 'P-NGCP-Orig-PBX-Ext: 1003', + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-Callee-UUID: [% spce_test.testuser1003.uuid %]', + 'P-NGCP-Acc-Src-Leg: .+', + 'P-NGCP-Acc-Dst-Leg: .+', + '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=43110021003', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + 'Contact: ', + 'P-Asserted-Identity: ', + 'P-Called-Party-ID: ', + 'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;fast_ack=no', + 'P-App-Name: sbc', + 'P-D-Uri: sip:lb@127.0.0.1:5060;lr;socket=tcp:127.3.0.1:5074', ] diff --git a/scenarios_pbx/invite_perm_reg/0005_test.yml.tt2 b/scenarios_pbx/invite_perm_reg/0005_test.yml.tt2 new file mode 100644 index 00000000..f46568d6 --- /dev/null +++ b/scenarios_pbx/invite_perm_reg/0005_test.yml.tt2 @@ -0,0 +1,22 @@ +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 100 Trying' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'Server: Sipwise NGCP PBX' + - 'Content-Length: 0' +sip_out: [] diff --git a/scenarios_pbx/invite_perm_reg/0006_test.yml.tt2 b/scenarios_pbx/invite_perm_reg/0006_test.yml.tt2 new file mode 100644 index 00000000..5ff05b00 --- /dev/null +++ b/scenarios_pbx/invite_perm_reg/0006_test.yml.tt2 @@ -0,0 +1,22 @@ +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 100 Trying' + - 'From: ;tag=[\w-]+' + - 'To: ' + - 'CSeq: \d+ INVITE' + - 'Server: Sipwise NGCP Application' + - 'Content-Length: 0' +sip_out: [] diff --git a/scenarios_pbx/invite_queue/0015_test.yml.tt2 b/scenarios_pbx/invite_queue/0015_test.yml.tt2 deleted file mode 100644 index 4e99541b..00000000 --- a/scenarios_pbx/invite_queue/0015_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: - - return|dialog:start: -sip_in: - - '^SIP/2.0 200 OK' - - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' + - 'CSeq: \d+ INVITE' + - 'Contact: ' + - 'Content-Length: 0' +sip_out: + - [ + 'PUBLISH sip:testuser1002@spce.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', + 'CSeq: \d+ PUBLISH', + 'Content-Length:\s+\d+', + 'User-Agent: Sipwise NGCP Proxy', + 'Event: dialog', + 'SIP-If-Match: .+', + 'Content-Type: application/dialog\-info\+xml', + ] + - [ + 'SIP/2.0 180 Ringing', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', + 'CSeq: \d+ INVITE', + 'Contact: ', + 'Content-Length: 0', + 'P-COLP-Identity: "1003" ', + 'P-Out-Socket: udp:127.0.0.1:5060', + ] diff --git a/scenarios_pbx/invite_queue/0017_test.yml.tt2 b/scenarios_pbx/invite_queue/0017_test.yml.tt2 new file mode 100644 index 00000000..a32b4656 --- /dev/null +++ b/scenarios_pbx/invite_queue/0017_test.yml.tt2 @@ -0,0 +1,47 @@ +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: + - return|dialog:start: +sip_in: + - 'SIP/2.0 200 OK' + - 'From: ;tag=[\w-]+' + - 'To: sip:testuser1003@spce.test;tag=[\w-]+' + - 'CSeq: \d+ INVITE' + - 'Contact: ' + - 'Content-Type: application/sdp' + - 'Content-Length:\s+\d+' +sip_out: + - [ + 'PUBLISH sip:testuser1003@spce.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', + 'CSeq: \d+ PUBLISH', + 'Content-Length:\s+\d+', + 'User-Agent: Sipwise NGCP Proxy', + 'Event: dialog', + 'SIP-If-Match: .+', + 'Content-Type: application/dialog\-info\+xml', + ] + - [ + 'SIP/2.0 200 OK', + 'From: ;tag=[\w-]+', + 'To: sip:testuser1003@spce.test;tag=[\w-]+', + 'CSeq: \d+ INVITE', + 'Contact: ', + 'Content-Type: application/sdp', + 'Content-Length:\s+\d+', + ]