diff --git a/scenarios/invite_force_inbound_calls_to_peer/0003_test.yml.tt2 b/scenarios/invite_force_inbound_calls_to_peer/0003_test.yml.tt2 index 79cb7ad1..2f20c3f5 100644 --- a/scenarios/invite_force_inbound_calls_to_peer/0003_test.yml.tt2 +++ b/scenarios/invite_force_inbound_calls_to_peer/0003_test.yml.tt2 @@ -170,15 +170,15 @@ sip_in: - 'From: ;tag=[\w-]+' - 'To: ' - '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: ]+)?>' + - '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: ;tag=[\w-]+', 'To: ', '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: ', 'Server: Sipwise NGCP Proxy', @@ -197,7 +197,7 @@ sip_out: 'From: ;tag=[\w-]+', 'To: ', '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: ', 'P-NGCP-Authorization: [% scenarios.0.username %]@invite-force-inbound-calls-to-peer.scenarios.test', @@ -212,7 +212,7 @@ sip_out: 'From: ;tag=[\w-]+', 'To: ', 'CSeq: \d+ INVITE', - 'Contact: sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %]', + 'Contact: ]+)?>', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', 'P-LB-Uptime: \d+', diff --git a/scenarios/invite_force_inbound_calls_to_peer/0010_test.yml.tt2 b/scenarios/invite_force_inbound_calls_to_peer/0010_test.yml.tt2 index 569d4205..a54e6d67 100644 --- a/scenarios/invite_force_inbound_calls_to_peer/0010_test.yml.tt2 +++ b/scenarios/invite_force_inbound_calls_to_peer/0010_test.yml.tt2 @@ -33,5 +33,5 @@ sip_out: 'Contact: ', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', - 'P-Out-Socket: udp:127.0.0.1:5060', + 'P-Out-Socket: udp:[% server_ip %]:5060', ] diff --git a/scenarios/invite_force_inbound_calls_to_peer/sipp_scenario00.xml b/scenarios/invite_force_inbound_calls_to_peer/sipp_scenario00.xml index 4917bc63..ed111c3b 100644 --- a/scenarios/invite_force_inbound_calls_to_peer/sipp_scenario00.xml +++ b/scenarios/invite_force_inbound_calls_to_peer/sipp_scenario00.xml @@ -10,7 +10,7 @@ To: 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: Max-Forwards: 70 Content-Type: application/sdp Content-Length: [len] @@ -41,7 +41,7 @@ To: [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: Max-Forwards: 70 Content-Length: 0 @@ -59,7 +59,7 @@ To: 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: 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: Max-Forwards: 70 Content-Length: 0 @@ -117,7 +117,7 @@ To: [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: [routes] Max-Forwards: 70 Content-Length: 0