TT#116100 scenarios/timer_session_caller_only_supported

* domain per scenario
* dynamic IP/port and numbers

Change-Id: I2bfae855c550071154b4098982c65257406b0d74
mr9.5.1
Victor Seva 5 years ago committed by Víctor Seva
parent 7e2ca06029
commit 61af4bad40

@ -143,12 +143,12 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'INVITE sip:testuser1001@spce.test SIP/2.0'
- 'INVITE sip:testuser1001@timer-session-caller-only-supported.scenarios.test SIP/2.0'
- 'Supported: timer'
- 'From: <sip:004321001@127.0.2.1>;tag=[\w-]+'
- 'To: <sip:testuser1001@spce.test>'
- 'From: <sip:[% scenarios.0.username %]@[% scenarios.0.domain %]>;tag=[\w-]+'
- 'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>'
- 'CSeq: \d+ INVITE'
- 'Contact: <sip:004321001@127.0.2.1:\d+;transport=UDP>'
- 'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];transport=UDP>'
- 'Min-SE: 2'
- 'Content-Type: application/sdp'
- 'Content-Length: 0'
@ -161,8 +161,8 @@ sip_in:
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:004321001@127.0.2.1>;tag=[\w-]+',
'To: <sip:testuser1001@spce.test>',
'From: <sip:[% scenarios.0.username %]@[% scenarios.0.domain %]>;tag=[\w-]+',
'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>',
'CSeq: \d+ INVITE',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.0.2.1',
@ -171,23 +171,23 @@ sip_out:
'Content-Length: 0',
]
- [
'INVITE sip:testuser1001@127.1.0.1:\d+ SIP/2.0',
'From: <sip:004321001@spce.test>;tag=[\w-]+',
'To: <sip:testuser1001@spce.test>',
'INVITE sip:testuser1001@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0',
'From: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+',
'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>',
'CSeq: \d+ INVITE',
'Contact: <sip:004321001@127.0.2.1:\d+;transport=UDP>',
'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];transport=UDP>',
'Min-SE: 2',
'Content-Type: application/sdp',
'Content-Length: 0',
'P-LB-Uptime: \d+',
'P-Asserted-Identity: <sip:004321001@spce.test>',
'P-Asserted-Identity: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>',
'P-Caller-UUID: 0',
'P-Callee-UUID: [% spce_test.testuser1001.uuid %]',
'P-Called-Party-ID: <sip:testuser1001@spce.test>',
'P-Callee-UUID: [% timer_session_caller_only_supported_scenarios_test.testuser1001.uuid %]',
'P-Called-Party-ID: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>',
'P-App-Param: ;calltimer=21600;aleg_sst_enable=yes;aleg_sst_expires=10;aleg_sst_min_timer=2;aleg_sst_max_timer=20;aleg_sst_refresh_method=INVITE;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;(fast_ack=no;)?b_park_domain=[% customer_test.id %]',
'P-App-Name: sbc',
'P-NGCP-Caller-Info: <sip:004321001@127.0.2.1>;ip=127.0.2.1;port=\d+',
'P-NGCP-Callee-Info: <sip:testuser1001@spce.test>;ip=127.0.0.1;port=5060;primary=4311001',
'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %]',
'P-NGCP-Callee-Info: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% timer_session_caller_only_supported_scenarios_test.testuser1001.phone_number %]',
'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060',
'P-Proxy-Uri: sip:127.0.0.1:5062',
]

@ -13,37 +13,37 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'INVITE sip:testuser1001@127.1.0.1:\d+ SIP/2.0'
- 'From: <sip:004321001@spce.test>;tag=[\w-]+'
- 'To: <sip:testuser1001@spce.test>'
- 'INVITE sip:testuser1001@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0'
- 'From: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+'
- 'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>'
- 'CSeq: \d+ INVITE'
- 'P-LB-Uptime: \d+'
- 'P-Asserted-Identity: <sip:004321001@spce.test>'
- 'P-Asserted-Identity: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>'
- 'P-Caller-UUID: 0'
- 'P-NGCP-Caller-Info: <sip:004321001@127.0.2.1>;ip=127.0.2.1;port=\d+'
- 'P-NGCP-Callee-Info: <sip:testuser1001@spce.test>;ip=127.0.0.1;port=5060;primary=4311001'
- 'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@127.0.2.1>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %]'
- 'P-NGCP-Callee-Info: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% timer_session_caller_only_supported_scenarios_test.testuser1001.phone_number %]'
- 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060'
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
- 'Content-Length: 0'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:004321001@spce.test>;tag=[\w-]+',
'To: <sip:testuser1001@spce.test>',
'From: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+',
'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>',
'CSeq: \d+ INVITE',
'Server: Sipwise NGCP Proxy',
'Content-Length: 0',
]
- [
'INVITE sip:testuser1001@127.1.0.1:\d+ SIP/2.0',
'From: <sip:004321001@spce.test>;tag=[\w-]+',
'To: <sip:testuser1001@spce.test>',
'INVITE sip:testuser1001@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0',
'From: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+',
'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>',
'CSeq: \d+ INVITE',
'P-LB-Uptime: \d+',
'P-Asserted-Identity: <sip:004321001@spce.test>',
'P-Asserted-Identity: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>',
'P-Caller-UUID: 0',
'P-NGCP-Caller-Info: <sip:004321001@127.0.2.1>;ip=127.0.2.1;port=\d+',
'P-NGCP-Callee-Info: <sip:testuser1001@spce.test>;ip=127.0.0.1;port=5060;primary=4311001',
'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@127.0.2.1>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %]',
'P-NGCP-Callee-Info: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% timer_session_caller_only_supported_scenarios_test.testuser1001.phone_number %]',
'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060',
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Length: 0',

@ -13,13 +13,13 @@ sip_in:
- 'SIP/2.0 200 OK'
- 'Require: timer'
- 'Supported: timer'
- 'From: <sip:004321001@spce.test>;tag=[\w-]+'
- 'To: <sip:testuser1001@spce.test>;tag=[\w-]+'
- 'From: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+'
- 'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Contact: <sip:127.1.0.1:\d+;transport=UDP>'
- 'Contact: <sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP>'
- 'Content-Type: application/sdp'
- 'Content-Length: 0'
- 'P-NGCP-Src-Ip: 127.1.0.1'
- 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]'
- 'P-NGCP-Src-Port: \d+'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
@ -28,13 +28,13 @@ sip_out:
'SIP/2.0 200 OK',
'Require: timer',
'Supported: timer',
'From: <sip:004321001@spce.test>;tag=[\w-]+',
'To: <sip:testuser1001@spce.test>;tag=[\w-]+',
'From: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+',
'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+',
'CSeq: \d+ INVITE',
'Contact: <sip:127.1.0.1:\d+;transport=UDP>',
'Contact: <sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP>',
'Content-Type: application/sdp',
'Content-Length: 0',
'P-NGCP-Src-Ip: 127.1.0.1',
'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]',
'P-NGCP-Src-Port: \d+',
'P-NGCP-Src-Proto: udp',
'P-NGCP-Src-Af: 4',

@ -16,8 +16,8 @@ flow:
- return|dialog:start:
sip_in:
- 'SIP/2.0 200 OK'
- 'From: <sip:004321001@spce.test>;tag=[\w-]+'
- 'To: <sip:testuser1001@spce.test>;tag=[\w-]+'
- 'From: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+'
- 'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Require: timer'
- 'Supported: timer'
@ -26,8 +26,8 @@ sip_in:
sip_out:
- [
'SIP/2.0 200 OK',
'From: <sip:004321001@127.0.2.1>;tag=[\w-]+',
'To: <sip:testuser1001@spce.test>;tag=[\w-]+',
'From: <sip:[% scenarios.0.username %]@[% scenarios.0.domain %]>;tag=[\w-]+',
'To: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;tag=[\w-]+',
'CSeq: \d+ INVITE',
'Require: timer',
'Supported: timer',

@ -1,33 +1,34 @@
---
peer_00:
peer_timer_session_caller_only_supported:
contact:
company: peer_00
email: peer_00@host0.not
company: peer_timer_session_caller_only_supported
email: peer_timer_session_caller_only_supported@host0.not
contract:
billing_profile_id: 1
status: active
type: sippeering
groups:
- name: peer_00_group
- name: peer_timer_session_caller_only_supported_group
priority: 1
description:
rules:
- group_id: peer_00_group
- group_id: peer_timer_session_caller_only_supported_group
callee_prefix: ""
callee_pattern: ''
caller_pattern: '^sip:.+@spce.test'
caller_pattern: '^sip:.+@timer-session-caller-only-supported.scenarios.test'
description: ""
inboundrules:
- group_id: peer_00_group
- group_id: peer_timer_session_caller_only_supported_group
field: "ruri_uri"
pattern: '.*'
priority: 50
enabled: 1
hosts:
- group_id: peer_00_group
name: peer_00_host0
- group_id: peer_timer_session_caller_only_supported_group
name: peer_timer_session_caller_only_supported_host0
ip: 127.0.2.1
port: 51602
host:
transport: 1
weight: 1
weight: 1

@ -1,5 +1,5 @@
{
"peer_00_host0": {
"peer_timer_session_caller_only_supported_host0": {
"sst_refresh_method": "INVITE",
"sst_enable": "yes",
"sst_expires": 10,

@ -1,6 +1,7 @@
---
test_uuid: timer_session_caller_only_supported
domains:
'spce.test':
timer-session-caller-only-supported.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
timer-session-caller-only-supported.scenarios.test:
testuser1001:
customer: 'customer.test'
password: testuser
@ -23,9 +24,10 @@ subscribers:
scenarios:
- ip: 127.0.2.1
username: 004321001
domain: 127.0.2.1
domain: timer-session-caller-only-supported.host0.scenarios.test
peer_host: peer_timer_session_caller_only_supported
responders:
- ip: 127.1.0.1
username: testuser1001
domain: spce.test
register: yes
domain: timer-session-caller-only-supported.scenarios.test
register: 'yes'

Loading…
Cancel
Save