diff --git a/scenarios_pbx/invite_alias/0002_test.yml.tt2 b/scenarios_pbx/invite_alias/0002_test.yml.tt2 index 702f5d74..02375c5f 100644 --- a/scenarios_pbx/invite_alias/0002_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0002_test.yml.tt2 @@ -23,15 +23,15 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'REGISTER sip:testuser1003@spce.test SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ' + - 'REGISTER sip:testuser1003@invite-alias.scenarios-pbx.test SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ REGISTER' - - 'Authorization: Digest username="testuser1003",realm="spce.test",uri="sip:127.0.0.1:5060",nonce=".+",response=".+",algorithm=MD5' - - 'Contact: sip:testuser1003@127.2.0.1:\d+;transport=UDP' + - 'Authorization: Digest username="testuser1003",realm="invite-alias.scenarios-pbx.test",uri="sip:127.0.0.1:5060",nonce=".+",response=".+",algorithm=MD5' + - 'Contact: sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP' - 'Content-Length: 0' - - 'P-NGCP-Src-Ip: 127.2.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' - 'P-Sock-Info: udp:127.0.0.1:5060' @@ -40,27 +40,27 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ REGISTER', 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.2.0.1', + 'P-NGCP-Auth-IP: [% scenarios.0.responders.0.ip %]', 'P-NGCP-Auth-UA: ', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ REGISTER', 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.2.0.1', + 'P-NGCP-Auth-IP: [% scenarios.0.responders.0.ip %]', 'P-NGCP-Auth-UA: ', - 'P-NGCP-Authorization: testuser1003@spce.test', + 'P-NGCP-Authorization: testuser1003@invite-alias.scenarios-pbx.test', 'P-NGCP-Authorized: 1', - 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]', - 'Contact: ;expires=\d+', + 'P-Caller-UUID: [% invite_alias_scenarios_pbx_test.testuser1003.uuid %]', + 'Contact: ;expires=\d+', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] diff --git a/scenarios_pbx/invite_alias/0003_test.yml.tt2 b/scenarios_pbx/invite_alias/0003_test.yml.tt2 index b270517b..371283bb 100644 --- a/scenarios_pbx/invite_alias/0003_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0003_test.yml.tt2 @@ -21,15 +21,15 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'INVITE sip:439333111@spce.test SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]@invite-alias.scenarios-pbx.test SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - - 'Contact: sip:testuser1002@127.126.0.1:\d+' + - 'Contact: sip:testuser1002@[% scenarios.0.ip %]:[% scenarios.0.port %]' - 'Content-Type: application/sdp' - 'Content-Length:\s+\d+' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' - 'P-Sock-Info: udp:127.0.0.1:5060' @@ -37,24 +37,24 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.126.0.1', + 'P-NGCP-Auth-IP: [% scenarios.0.ip %]', 'P-NGCP-Auth-UA: ', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ 'SIP/2.0 407 Proxy Authentication Required', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.126.0.1', + 'P-NGCP-Auth-IP: [% scenarios.0.ip %]', 'P-NGCP-Auth-UA: ', - 'Proxy-Authenticate: Digest realm="spce.test", nonce=".+"', + 'Proxy-Authenticate: Digest realm="invite-alias.scenarios-pbx.test", nonce=".+"', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] diff --git a/scenarios_pbx/invite_alias/0005_test.yml.tt2 b/scenarios_pbx/invite_alias/0005_test.yml.tt2 index 9d4ef479..76b77f31 100644 --- a/scenarios_pbx/invite_alias/0005_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0005_test.yml.tt2 @@ -123,16 +123,16 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'INVITE sip:439333111@spce.test SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]@invite-alias.scenarios-pbx.test SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - - 'Contact: sip:testuser1002@127.126.0.1:\d+' - - 'Proxy-Authorization: Digest username="testuser1002",realm="spce.test",uri="sip:127.0.0.1:5060",nonce=".+",response=".+",algorithm=MD5' + - 'Contact: sip:testuser1002@[% scenarios.0.ip %]:[% scenarios.0.port %]' + - 'Proxy-Authorization: Digest username="testuser1002",realm="invite-alias.scenarios-pbx.test",uri="sip:127.0.0.1:5060",nonce=".+",response=".+",algorithm=MD5' - 'Content-Type: application/sdp' - 'Content-Length:\s+\d+' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' - 'P-Sock-Info: udp:127.0.0.1:5060' @@ -140,34 +140,34 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.126.0.1', + 'P-NGCP-Auth-IP: [% scenarios.0.ip %]', 'P-NGCP-Auth-UA: ', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ 'SIP/2.0 101 Connecting', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.126.0.1', + 'P-NGCP-Auth-IP: [% scenarios.0.ip %]', 'P-NGCP-Auth-UA: ', - 'P-NGCP-Authorization: testuser1002@spce.test', + 'P-NGCP-Authorization: testuser1002@invite-alias.scenarios-pbx.test', 'P-NGCP-Authorized: 1', - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]', + 'P-Caller-UUID: [% invite_alias_scenarios_pbx_test.testuser1002.uuid %]', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'To: ', - 'From: ;tag=[\w-]+', + 'PUBLISH sip:testuser1002@invite-alias.scenarios-pbx.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', 'CSeq: \d+ PUBLISH', 'Content-Length:\s+\d+', 'User-Agent: Sipwise NGCP Proxy', @@ -175,25 +175,25 @@ sip_out: 'Content-Type: application/dialog\-info\+xml', ] - [ - 'INVITE sip:testuser1003@spce.test SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ', + 'INVITE sip:testuser1003@invite-alias.scenarios-pbx.test SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', - 'Contact: sip:testuser1002@127.126.0.1:\d+', + 'Contact: sip:testuser1002@[% scenarios.0.ip %]:[% scenarios.0.port %]', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', - 'P-NGCP-Src-Ip: 127.126.0.1', - 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Ip: [% scenarios.0.ip %]', + 'P-NGCP-Src-Port: [% scenarios.0.port %]', 'P-NGCP-Src-Proto: udp', 'P-NGCP-Src-Af: 4', 'P-LB-Uptime: \d+', - 'P-NGCP-Alias-Base: 439333111', + 'P-NGCP-Alias-Base: [% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]', 'P-NGCP-Alias-DevId: 0', 'P-NGCP-Src-Nat: 0', 'P-Caller-CLIR: 0', - 'P-NGCP-Orig-User: 439333111', - 'P-NGCP-Orig-Domain: spce.test', - 'P-NGCP-Orig-Dialed: 439333111', + 'P-NGCP-Orig-User: [% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]', + 'P-NGCP-Orig-Domain: invite-alias.scenarios-pbx.test', + 'P-NGCP-Orig-Dialed: [% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]', 'P-NGCP-Orig-PBX-Ext: 1003', 'P-First-Caller-Cloud-PBX: [% customerpbx_test.id %]', 'P-AA-Caller-CLIR: 0', @@ -202,14 +202,14 @@ sip_out: 'P-NGCP-AdmBlockOut-Override: 0', 'P-NGCP-ContBlockOut-Override: 0', 'P-NGCP-ContAdmBlockOut-Override: 0', - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', - 'P-Callee-UUID: [% spce_test.testuser1003.uuid %]', + 'P-Caller-UUID: [% invite_alias_scenarios_pbx_test.testuser1002.uuid %]', + 'P-Callee-UUID: [% invite_alias_scenarios_pbx_test.testuser1003.uuid %]', 'P-App-Name: sbc', 'P-App-Param: ;profile=ngcp_pbx;a_park_domain=[% customerpbx_test.id %];b_park_domain=[% customerpbx_test.id %]', '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[08];primary=43110021003;alias=439333111', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=508[08];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]1003;alias=[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]', ] diff --git a/scenarios_pbx/invite_alias/0006_test.yml.tt2 b/scenarios_pbx/invite_alias/0006_test.yml.tt2 index 099ad93f..52fd9d5d 100644 --- a/scenarios_pbx/invite_alias/0006_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0006_test.yml.tt2 @@ -14,8 +14,8 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 100 Trying' - - 'From: ;tag=[\w-]+' - - 'To: ' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - 'Content-Length: 0' sip_out: [] diff --git a/scenarios_pbx/invite_alias/0007_test.yml.tt2 b/scenarios_pbx/invite_alias/0007_test.yml.tt2 index 3be4ec98..01730442 100644 --- a/scenarios_pbx/invite_alias/0007_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0007_test.yml.tt2 @@ -132,22 +132,22 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'INVITE sip:testuser1003@spce.test SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:testuser1003@invite-alias.scenarios-pbx.test SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' - 'P-LB-Uptime: \d+' - - 'P-NGCP-Alias-Base: 439333111' + - 'P-NGCP-Alias-Base: [% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]' - 'P-NGCP-Alias-DevId: 0' - 'P-NGCP-Src-Nat: 0' - 'P-Caller-CLIR: 0' - - 'P-NGCP-Orig-User: 439333111' - - 'P-NGCP-Orig-Domain: spce.test' - - 'P-NGCP-Orig-Dialed: 439333111' + - 'P-NGCP-Orig-User: [% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]' + - 'P-NGCP-Orig-Domain: invite-alias.scenarios-pbx.test' + - 'P-NGCP-Orig-Dialed: [% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]' - 'P-NGCP-Orig-PBX-Ext: 1003' - 'P-First-Caller-Cloud-PBX: [% customerpbx_test.id %]' - 'P-AA-Caller-CLIR: 0' @@ -156,14 +156,14 @@ sip_in: - 'P-NGCP-AdmBlockOut-Override: 0' - 'P-NGCP-ContBlockOut-Override: 0' - 'P-NGCP-ContAdmBlockOut-Override: 0' - - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' - - 'P-Callee-UUID: [% spce_test.testuser1003.uuid %]' + - 'P-Caller-UUID: [% invite_alias_scenarios_pbx_test.testuser1002.uuid %]' + - 'P-Callee-UUID: [% invite_alias_scenarios_pbx_test.testuser1003.uuid %]' - '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[08];primary=43110021003;alias=439333111' + - 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=508[08];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]1003;alias=[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]' - 'P-To-Device: 1' - 'Content-Type: application/sdp' - 'Content-Length:\s+\d+' @@ -171,31 +171,31 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'INVITE sip:testuser1003@127.2.0.1:\d+ SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ', + 'INVITE sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0', + 'From: ;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-Caller-UUID: [% invite_alias_scenarios_pbx_test.testuser1002.uuid %]', + 'P-Callee-UUID: [% invite_alias_scenarios_pbx_test.testuser1003.uuid %]', 'P-NGCP-Acc-Src-Leg: .+', 'P-NGCP-Acc-Dst-Leg: .+', 'P-Proxy-Uri: sip: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=5060;primary=43110021003;alias=439333111', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]1003;alias=[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', 'Contact: ', - 'P-Asserted-Identity: ', - 'P-Called-Party-ID: ', + '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;lr;socket=sip:127.0.0.1:5060', diff --git a/scenarios_pbx/invite_alias/0008_test.yml.tt2 b/scenarios_pbx/invite_alias/0008_test.yml.tt2 index 37a4ef9a..0e99837b 100644 --- a/scenarios_pbx/invite_alias/0008_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0008_test.yml.tt2 @@ -14,8 +14,8 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 100 Trying' - - 'From: ;tag=[\w-]+' - - 'To: ' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - 'Content-Length: 0' sip_out: [] diff --git a/scenarios_pbx/invite_alias/0009_test.yml.tt2 b/scenarios_pbx/invite_alias/0009_test.yml.tt2 index 7233e92a..7b5587a0 100644 --- a/scenarios_pbx/invite_alias/0009_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0009_test.yml.tt2 @@ -15,15 +15,15 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'INVITE sip:testuser1003@127.2.0.1:\d+ SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - 'P-LB-Uptime: \d+' - - '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=43110021003;alias=439333111' - - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% invite_alias_scenarios_pbx_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]1003;alias=[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]' + - '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+' @@ -31,22 +31,22 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'INVITE sip:testuser1003@127.2.0.1:\d+ SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ', + 'INVITE sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'P-LB-Uptime: \d+', - '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=43110021003;alias=439333111', - 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% invite_alias_scenarios_pbx_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]1003;alias=[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]', + '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+', diff --git a/scenarios_pbx/invite_alias/0011_test.yml.tt2 b/scenarios_pbx/invite_alias/0011_test.yml.tt2 index fe51d249..1a44d1c9 100644 --- a/scenarios_pbx/invite_alias/0011_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0011_test.yml.tt2 @@ -9,25 +9,25 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 180 Ringing' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ INVITE' - - 'Contact: ' + - 'Contact: ' - 'Content-Length: 0' - - 'P-NGCP-Src-Ip: 127.2.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' sip_out: - [ 'SIP/2.0 180 Ringing', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', - 'Contact: ', + 'Contact: ', 'Content-Length: 0', - 'P-NGCP-Src-Ip: 127.2.0.1', - 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]', + 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]', 'P-NGCP-Src-Proto: udp', 'P-NGCP-Src-Af: 4', ] diff --git a/scenarios_pbx/invite_alias/0012_test.yml.tt2 b/scenarios_pbx/invite_alias/0012_test.yml.tt2 index b0d7c64b..e24007df 100644 --- a/scenarios_pbx/invite_alias/0012_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0012_test.yml.tt2 @@ -14,16 +14,16 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 180 Ringing' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ INVITE' - 'Contact: ' - 'Content-Length: 0' sip_out: - [ - 'PUBLISH sip:testuser1003@spce.test SIP/2.0', - 'To: ', - 'From: ;tag=[\w-]+', + 'PUBLISH sip:testuser1003@invite-alias.scenarios-pbx.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', 'CSeq: \d+ PUBLISH', 'Content-Length:\s+\d+', 'User-Agent: Sipwise NGCP Proxy', @@ -32,8 +32,8 @@ sip_out: ] - [ 'SIP/2.0 180 Ringing', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', 'Contact: ', 'Content-Length: 0', diff --git a/scenarios_pbx/invite_alias/0013_test.yml.tt2 b/scenarios_pbx/invite_alias/0013_test.yml.tt2 index bff0ab10..b6692dc7 100644 --- a/scenarios_pbx/invite_alias/0013_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0013_test.yml.tt2 @@ -16,16 +16,16 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 180 Ringing' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - '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-]+', + 'PUBLISH sip:testuser1002@invite-alias.scenarios-pbx.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', 'CSeq: \d+ PUBLISH', 'Content-Length:\s+\d+', 'User-Agent: Sipwise NGCP Proxy', @@ -35,11 +35,11 @@ sip_out: ] - [ 'SIP/2.0 180 Ringing', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', 'Contact: ', 'Content-Length: 0', - 'P-COLP-Identity: "1003" ', + 'P-COLP-Identity: "1003" ', 'P-Out-Socket: udp:127.0.0.1:5060', ] diff --git a/scenarios_pbx/invite_alias/0014_test.yml.tt2 b/scenarios_pbx/invite_alias/0014_test.yml.tt2 index 8b7ed432..04e26f2e 100644 --- a/scenarios_pbx/invite_alias/0014_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0014_test.yml.tt2 @@ -13,27 +13,27 @@ flow: - return|dialog:start: sip_in: - 'SIP/2.0 200 OK' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ INVITE' - - 'Contact: ' + - 'Contact: ' - 'Content-Type: application/sdp' - 'Content-Length:\s+\d+' - - 'P-NGCP-Src-Ip: 127.2.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' sip_out: - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', - 'Contact: ', + 'Contact: ', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', - 'P-NGCP-Src-Ip: 127.2.0.1', - 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]', + 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]', 'P-NGCP-Src-Proto: udp', 'P-NGCP-Src-Af: 4', ] diff --git a/scenarios_pbx/invite_alias/0015_test.yml.tt2 b/scenarios_pbx/invite_alias/0015_test.yml.tt2 index c7b3c27f..3a33d9dd 100644 --- a/scenarios_pbx/invite_alias/0015_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0015_test.yml.tt2 @@ -18,17 +18,17 @@ flow: - return|dialog:start: sip_in: - 'SIP/2.0 200 OK' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;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-]+', + 'PUBLISH sip:testuser1003@invite-alias.scenarios-pbx.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', 'CSeq: \d+ PUBLISH', 'Content-Length:\s+\d+', 'User-Agent: Sipwise NGCP Proxy', @@ -38,8 +38,8 @@ sip_out: ] - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', 'Contact: ', 'Content-Type: application/sdp', diff --git a/scenarios_pbx/invite_alias/0016_test.yml.tt2 b/scenarios_pbx/invite_alias/0016_test.yml.tt2 index 5ae8c471..d1d93de9 100644 --- a/scenarios_pbx/invite_alias/0016_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0016_test.yml.tt2 @@ -22,17 +22,17 @@ flow: - return|dialog:start: sip_in: - 'SIP/2.0 200 OK' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ INVITE' - 'Contact: ' - 'Content-Type: application/sdp' - 'Content-Length:\s+\d+' sip_out: - [ - 'PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'To: ', - 'From: ;tag=[\w-]+', + 'PUBLISH sip:testuser1002@invite-alias.scenarios-pbx.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', 'CSeq: \d+ PUBLISH', 'Content-Length:\s+\d+', 'User-Agent: Sipwise NGCP Proxy', @@ -42,12 +42,12 @@ sip_out: ] - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', 'Contact: ', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', - 'P-COLP-Identity: "1003" ', + 'P-COLP-Identity: "1003" ', 'P-Out-Socket: udp:127.0.0.1:5060', ] diff --git a/scenarios_pbx/invite_alias/0017_test.yml.tt2 b/scenarios_pbx/invite_alias/0017_test.yml.tt2 index 705e2f5e..19506a55 100644 --- a/scenarios_pbx/invite_alias/0017_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0017_test.yml.tt2 @@ -27,13 +27,13 @@ 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-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ ACK' - - 'Contact: sip:testuser1002@127.126.0.1:\d+' + - 'Contact: sip:testuser1002@[% scenarios.0.ip %]:[% scenarios.0.port %]' - 'Content-Length: 0' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' - 'P-Sock-Info: udp:127.0.0.1:5060' @@ -41,13 +41,13 @@ sip_in: sip_out: - [ 'ACK sip:127.0.0.1:508[08];prxroute=1 SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ ACK', - 'Contact: sip:testuser1002@127.126.0.1:\d+', + 'Contact: sip:testuser1002@[% scenarios.0.ip %]:[% scenarios.0.port %]', 'Content-Length: 0', - 'P-NGCP-Src-Ip: 127.126.0.1', - 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Ip: [% scenarios.0.ip %]', + 'P-NGCP-Src-Port: [% scenarios.0.port %]', 'P-NGCP-Src-Proto: udp', 'P-NGCP-Src-Af: 4', 'P-Sock-Info: udp:127.0.0.1:5060', diff --git a/scenarios_pbx/invite_alias/0018_test.yml.tt2 b/scenarios_pbx/invite_alias/0018_test.yml.tt2 index 99d7380e..0b66b12a 100644 --- a/scenarios_pbx/invite_alias/0018_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0018_test.yml.tt2 @@ -21,16 +21,16 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'ACK sip:127.0.0.1:508[08];transport=udp SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ ACK' - 'Content-Length: 0' - 'Contact: ' sip_out: - [ 'ACK sip:127.0.0.1:508[08];transport=udp SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ ACK', 'Content-Length: 0', 'Contact: ', diff --git a/scenarios_pbx/invite_alias/0019_test.yml.tt2 b/scenarios_pbx/invite_alias/0019_test.yml.tt2 index c6ff88f1..a27f42b9 100644 --- a/scenarios_pbx/invite_alias/0019_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0019_test.yml.tt2 @@ -24,17 +24,17 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'ACK sip:127.2.0.1:\d+;transport=UDP SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'ACK sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ ACK' - 'Content-Length: 0' - 'Contact: ' sip_out: - [ - 'ACK sip:127.2.0.1:\d+;transport=UDP SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'ACK sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ ACK', 'Content-Length: 0', 'Contact: ', diff --git a/scenarios_pbx/invite_alias/0020_test.yml.tt2 b/scenarios_pbx/invite_alias/0020_test.yml.tt2 index 87ed4294..43985502 100644 --- a/scenarios_pbx/invite_alias/0020_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0020_test.yml.tt2 @@ -32,13 +32,13 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'BYE sip:127.0.0.1:508[08];prxroute=1 SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ BYE' - - 'Contact: sip:testuser1002@127.126.0.1:\d+' + - 'Contact: sip:testuser1002@[% scenarios.0.ip %]:[% scenarios.0.port %]' - 'Content-Length: 0' - - 'P-NGCP-Src-Ip: 127.126.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' - 'P-Sock-Info: udp:127.0.0.1:5060' @@ -46,19 +46,19 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', 'P-Out-Socket: udp:127.0.0.1:5060', - 'P-NGCP-Auth-IP: 127.126.0.1', + 'P-NGCP-Auth-IP: [% scenarios.0.ip %]', 'P-NGCP-Auth-UA: ', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'PUBLISH sip:testuser1002@spce.test SIP/2.0', - 'To: ', - 'From: ;tag=[\w-]+', + 'PUBLISH sip:testuser1002@invite-alias.scenarios-pbx.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', 'CSeq: \d+ PUBLISH', 'Content-Length:\s+\d+', 'User-Agent: Sipwise NGCP Proxy', @@ -68,10 +68,10 @@ sip_out: ] - [ 'BYE sip:127.0.0.1:508[08];prxroute=1 SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', - 'Contact: sip:testuser1002@127.126.0.1:\d+', + 'Contact: sip:testuser1002@[% scenarios.0.ip %]:[% scenarios.0.port %]', 'Content-Length: 0', 'P-LB-Uptime: \d+', ] diff --git a/scenarios_pbx/invite_alias/0021_test.yml.tt2 b/scenarios_pbx/invite_alias/0021_test.yml.tt2 index 34726629..c8324cd9 100644 --- a/scenarios_pbx/invite_alias/0021_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0021_test.yml.tt2 @@ -28,24 +28,24 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'BYE sip:127.0.0.1:508[08];transport=udp SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ BYE' - 'P-LB-Uptime: \d+' - 'Content-Length: 0' sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'PUBLISH sip:testuser1003@spce.test SIP/2.0', - 'To: ', - 'From: ;tag=[\w-]+', + 'PUBLISH sip:testuser1003@invite-alias.scenarios-pbx.test SIP/2.0', + 'To: ', + 'From: ;tag=[\w-]+', 'CSeq: \d+ PUBLISH', 'Content-Length:\s+\d+', 'User-Agent: Sipwise NGCP Proxy', @@ -55,10 +55,10 @@ sip_out: ] - [ 'BYE sip:127.0.0.1:508[08];transport=udp SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', 'P-LB-Uptime: \d+', 'Content-Length: 0', - 'P-Asserted-Identity: ', + 'P-Asserted-Identity: ', ] diff --git a/scenarios_pbx/invite_alias/0022_test.yml.tt2 b/scenarios_pbx/invite_alias/0022_test.yml.tt2 index b070db2f..b9133831 100644 --- a/scenarios_pbx/invite_alias/0022_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0022_test.yml.tt2 @@ -29,28 +29,28 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - 'BYE sip:127.2.0.1:\d+;transport=UDP SIP/2.0' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'BYE sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ BYE' - 'P-LB-Uptime: \d+' - - 'P-Asserted-Identity: ' + - 'P-Asserted-Identity: ' - 'Content-Length: 0' sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'BYE sip:127.2.0.1:\d+;transport=UDP SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'BYE sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', 'P-LB-Uptime: \d+', - 'P-Asserted-Identity: ', + 'P-Asserted-Identity: ', 'Content-Length: 0', ] diff --git a/scenarios_pbx/invite_alias/0023_test.yml.tt2 b/scenarios_pbx/invite_alias/0023_test.yml.tt2 index 9a5eb4c7..45955a50 100644 --- a/scenarios_pbx/invite_alias/0023_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0023_test.yml.tt2 @@ -14,25 +14,25 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 200 OK' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ BYE' - - 'Contact: ' + - 'Contact: ' - 'Content-Length: 0' - - 'P-NGCP-Src-Ip: 127.2.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' sip_out: - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', - 'Contact: ', + 'Contact: ', 'Content-Length: 0', - 'P-NGCP-Src-Ip: 127.2.0.1', - 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]', + 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]', 'P-NGCP-Src-Proto: udp', 'P-NGCP-Src-Af: 4', ] diff --git a/scenarios_pbx/invite_alias/0024_test.yml.tt2 b/scenarios_pbx/invite_alias/0024_test.yml.tt2 index 070a165d..c2c50043 100644 --- a/scenarios_pbx/invite_alias/0024_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0024_test.yml.tt2 @@ -14,15 +14,15 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 200 OK' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ BYE' - 'Content-Length: 0' sip_out: - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', 'Content-Length: 0', ] diff --git a/scenarios_pbx/invite_alias/0025_test.yml.tt2 b/scenarios_pbx/invite_alias/0025_test.yml.tt2 index 4696fbef..3e9f69f8 100644 --- a/scenarios_pbx/invite_alias/0025_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/0025_test.yml.tt2 @@ -16,15 +16,15 @@ flow: - exit|ROUTE_EXIT: sip_in: - 'SIP/2.0 200 OK' - - 'From: ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ BYE' - 'Content-Length: 0' sip_out: - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ BYE', 'Content-Length: 0', 'P-Out-Socket: udp:127.0.0.1:5060', diff --git a/scenarios_pbx/invite_alias/cdr_test.yml.tt2 b/scenarios_pbx/invite_alias/cdr_test.yml.tt2 index 64feadd1..2991aa34 100644 --- a/scenarios_pbx/invite_alias/cdr_test.yml.tt2 +++ b/scenarios_pbx/invite_alias/cdr_test.yml.tt2 @@ -1,11 +1,11 @@ cdr: - source_user: 'testuser1002' - source_domain: 'spce.test' - source_cli: '4311002' + source_domain: 'invite-alias.scenarios-pbx.test' + source_cli: '[% invite_alias_scenarios_pbx_test.testuser1002.phone_number %]' destination_user: 'testuser1003' - destination_domain: 'spce.test' - destination_user_dialed: '439333111' - destination_user_in: '439333111' + destination_domain: 'invite-alias.scenarios-pbx.test' + destination_user_dialed: '[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]' + destination_user_in: '[% invite_alias_scenarios_pbx_test.testuser1003.alias_numbers.0.phone_number %]' call_type: 'call' call_status: 'ok' call_code: '200' \ No newline at end of file diff --git a/scenarios_pbx/invite_alias/scenario.yml b/scenarios_pbx/invite_alias/scenario.yml index 2f81e80a..43e1a2c3 100644 --- a/scenarios_pbx/invite_alias/scenario.yml +++ b/scenarios_pbx/invite_alias/scenario.yml @@ -1,6 +1,7 @@ +--- test_uuid: invite_alias domains: - 'spce.test': + invite-alias.scenarios-pbx.test: reseller_id: 1 customers: 'customerpbx.test': @@ -13,7 +14,7 @@ customers: billing_profile_id: 1 reseller_id: 1 subscribers: - spce.test: + invite-alias.scenarios-pbx.test: testuser1002: customer: 'customerpbx.test' password: testuser @@ -47,9 +48,9 @@ subscribers: scenarios: - ip: 127.126.0.1 username: testuser1002 - domain: spce.test + domain: invite-alias.scenarios-pbx.test responders: - ip: 127.2.0.1 username: testuser1003 - domain: spce.test - register: yes + domain: invite-alias.scenarios-pbx.test + register: 'yes' diff --git a/scenarios_pbx/invite_alias/sipp_scenario00.xml b/scenarios_pbx/invite_alias/sipp_scenario00.xml index 4f9f51c6..317b835a 100644 --- a/scenarios_pbx/invite_alias/sipp_scenario00.xml +++ b/scenarios_pbx/invite_alias/sipp_scenario00.xml @@ -4,10 +4,10 @@ ;tag=[pid]SIPpTag00[call_number] - To: + To: Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 1 INVITE Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] @@ -35,10 +35,10 @@ ;tag=[pid]SIPpTag00[call_number] - To: [peer_tag_param] + To: [peer_tag_param] Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 1 ACK Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] @@ -53,10 +53,10 @@ ;tag=[pid]SIPpTag00[call_number] - To: + To: Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 2 INVITE Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] @@ -95,7 +95,7 @@ ACK [next_url] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] From: ;tag=[pid]SIPpTag00[call_number] - To: [peer_tag_param] + To: [peer_tag_param] Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] [routes] CSeq: 2 ACK @@ -121,7 +121,7 @@ BYE [next_url] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] From: ;tag=[pid]SIPpTag00[call_number] - To: [peer_tag_param] + To: [peer_tag_param] Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 3 BYE Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]