TT#116103 scenarios/timer_session_caller_only_supported

* use server_ip from scenario_ids.yml
* Contact with <> format
* tests:
  - add received Contact parameter as optional

Change-Id: I5f72525f3b341d2d21fbf2cf9e12af01e1c9eda7
mr10.0
Victor Seva 5 years ago
parent 8dd448c516
commit 20dd637b78

@ -148,15 +148,15 @@ sip_in:
- '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:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];transport=UDP>'
- 'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %](;[^>]+)?>'
- 'Min-SE: 2'
- 'Content-Type: application/sdp'
- 'Content-Length: 0'
- 'P-NGCP-Src-Ip: 127.0.2.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'
- 'P-Sock-Info: udp:[% server_ip %]:5060'
- 'P-LB-Uptime: \d+'
sip_out:
- [
@ -164,8 +164,8 @@ sip_out:
'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',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'Server: Sipwise NGCP Proxy',
'Content-Length: 0',
@ -187,7 +187,7 @@ sip_out:
'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:[% 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-NGCP-Callee-Info: <sip:testuser1001@timer-session-caller-only-supported.scenarios.test>;ip=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %];primary=[% timer_session_caller_only_supported_scenarios_test.testuser1001.phone_number %]',
'P-D-Uri: sip:lb@127.0.0.1;lr;(received=sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];)?socket=sip:[% server_ip %]:5060',
'P-Proxy-Uri: sip:127.0.0.1:5062',
]

@ -20,9 +20,9 @@ sip_in:
- 'P-LB-Uptime: \d+'
- 'P-Asserted-Identity: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>'
- 'P-Caller-UUID: 0'
- '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'
- '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=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %];primary=[% timer_session_caller_only_supported_scenarios_test.testuser1001.phone_number %]'
- 'P-D-Uri: sip:lb@127.0.0.1;lr;(received=sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];)?socket=sip:[% server_ip %]:5060'
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
- 'Content-Length: 0'
sip_out:
@ -42,9 +42,9 @@ sip_out:
'P-LB-Uptime: \d+',
'P-Asserted-Identity: <sip:[% scenarios.0.username %]@timer-session-caller-only-supported.scenarios.test>',
'P-Caller-UUID: 0',
'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',
'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=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %];primary=[% timer_session_caller_only_supported_scenarios_test.testuser1001.phone_number %]',
'P-D-Uri: sip:lb@127.0.0.1;lr;(received=sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];)?socket=sip:[% server_ip %]:5060',
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Length: 0',
]

@ -20,7 +20,7 @@ sip_in:
- 'Content-Type: application/sdp'
- 'Content-Length: 0'
- 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]'
- 'P-NGCP-Src-Port: \d+'
- 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
sip_out:
@ -35,7 +35,7 @@ sip_out:
'Content-Type: application/sdp',
'Content-Length: 0',
'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]',
'P-NGCP-Src-Port: \d+',
'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]',
'P-NGCP-Src-Proto: udp',
'P-NGCP-Src-Af: 4',
]

@ -33,5 +33,5 @@ sip_out:
'Supported: timer',
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Length: 0',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-Out-Socket: udp:[% server_ip %]:5060',
]

Loading…
Cancel
Save