TT#116103 scenarios/invite_force_inbound_calls_to_peer

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

Change-Id: I01c4e5b8b55213bd3a9d775eaccfa45a087df8ce
mr10.0
Victor Seva 5 years ago
parent c096b7bd3e
commit 4c912d92c2

@ -170,15 +170,15 @@ sip_in:
- 'From: <sip:[% scenarios.0.username %]@invite-force-inbound-calls-to-peer.scenarios.test>;tag=[\w-]+'
- 'To: <sip:[% invite_force_inbound_calls_to_peer_scenarios_test.testuser1003.phone_number %]@invite-force-inbound-calls-to-peer.scenarios.test>'
- 'CSeq: \d+ INVITE'
- 'Contact: sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %]'
- 'Proxy-Authorization: Digest username="[% scenarios.0.username %]",realm="invite-force-inbound-calls-to-peer.scenarios.test",uri="sip:127.0.0.1:5060",nonce=".+",response=".+",algorithm=MD5'
- 'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %](;[^>]+)?>'
- 'Proxy-Authorization: Digest username="[% scenarios.0.username %]",realm="invite-force-inbound-calls-to-peer.scenarios.test",uri="sip:[% server_ip %]:5060",nonce=".+",response=".+",algorithm=MD5'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\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:
- [
@ -186,7 +186,7 @@ sip_out:
'From: <sip:[% scenarios.0.username %]@invite-force-inbound-calls-to-peer.scenarios.test>;tag=[\w-]+',
'To: <sip:[% invite_force_inbound_calls_to_peer_scenarios_test.testuser1003.phone_number %]@invite-force-inbound-calls-to-peer.scenarios.test>',
'CSeq: \d+ INVITE',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'Server: Sipwise NGCP Proxy',
@ -197,7 +197,7 @@ sip_out:
'From: <sip:[% scenarios.0.username %]@invite-force-inbound-calls-to-peer.scenarios.test>;tag=[\w-]+',
'To: <sip:[% invite_force_inbound_calls_to_peer_scenarios_test.testuser1003.phone_number %]@invite-force-inbound-calls-to-peer.scenarios.test>',
'CSeq: \d+ INVITE',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'P-NGCP-Authorization: [% scenarios.0.username %]@invite-force-inbound-calls-to-peer.scenarios.test',
@ -212,7 +212,7 @@ sip_out:
'From: <sip:[% invite_force_inbound_calls_to_peer_scenarios_test.testuser1002.phone_number %]@invite-force-inbound-calls-to-peer.scenarios.test>;tag=[\w-]+',
'To: <sip:[% invite_force_inbound_calls_to_peer_scenarios_test.testuser1003.phone_number %]@invite-force-inbound-calls-to-peer.scenarios.test>',
'CSeq: \d+ INVITE',
'Contact: sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %]',
'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %](;[^>]+)?>',
'Content-Type: application/sdp',
'Content-Length:\s+\d+',
'P-LB-Uptime: \d+',

@ -33,5 +33,5 @@ sip_out:
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Type: application/sdp',
'Content-Length:\s+\d+',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-Out-Socket: udp:[% server_ip %]:5060',
]

@ -10,7 +10,7 @@
To: <sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
CSeq: 1 INVITE
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
Contact: <sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]>
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: [len]
@ -41,7 +41,7 @@
To: <sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
CSeq: 1 ACK
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
Contact: <sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]>
Max-Forwards: 70
Content-Length: 0
@ -59,7 +59,7 @@
To: <sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
CSeq: 2 INVITE
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
Contact: <sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]>
Max-Forwards: 70
[field1 file="caller.csv" line=0]
Content-Type: application/sdp
@ -99,7 +99,7 @@
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
[routes]
CSeq: 2 ACK
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
Contact: <sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]>
Max-Forwards: 70
Content-Length: 0
@ -117,7 +117,7 @@
To: <sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
CSeq: 3 BYE
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
Contact: <sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]>
[routes]
Max-Forwards: 70
Content-Length: 0

Loading…
Cancel
Save