flow:
  - start|DEFAULT_ROUTE:
  - start|ROUTE_ENTRY:
  - return|ROUTE_ENTRY:
  - start|ROUTE_LEG_B:
  - start|ROUTE_INITVARS:
  - return|ROUTE_INITVARS:
  - start|DEFAULT_SEND:
  - exit|DEFAULT_SEND:
  - exit|DEFAULT_SEND:
  - start|ROUTE_EXIT:
  - start|ROUTE_RUNTIME:
  - return|ROUTE_RUNTIME:
  - exit|ROUTE_EXIT:
sip_in:
  - 'INVITE sip:testuser1002@[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];cause=302 SIP/2.0'
  - 'From: <sip:004321001@incoming-hih.scenarios.test>;tag=[\w-]+'
  - 'To: <sip:testuser1002@incoming-hih.scenarios.test>'
  - 'CSeq: \d+ INVITE'
  - 'History-Info: <sip:\+4313012026@incoming-hih.scenarios.test;user=phone\?privacy=history>;index=1'
  - 'History-Info: <sip:\+[% incoming_hih_scenarios_test.testuser1003.phone_number %]@incoming-hih.scenarios.test;user=phone;cause=302\?privacy=id>;index=1.1'
  - 'History-Info: <sip:\+[% incoming_hih_scenarios_test.testuser1002.phone_number %]@incoming-hih.scenarios.test:5060;user=phone;cause=302>;index=1.1.1'
  - 'P-Caller-UUID: [% incoming_hih_scenarios_test.testuser1003.uuid %]'
  - 'P-NGCP-Caller-Info: <sip:testuser1003@incoming-hih.scenarios.test>;ip=127.0.0.1;port=508[08];primary=[% incoming_hih_scenarios_test.testuser1003.phone_number %]'
  - 'P-NGCP-Forward-Info: <sip:[% incoming_hih_scenarios_test.testuser1003.phone_number %]@incoming-hih.scenarios.test>;ip=127.0.0.1;port=508[08];primary=[% incoming_hih_scenarios_test.testuser1003.phone_number %]'
  - 'P-NGCP-Callee-Info: <sip:[% incoming_hih_scenarios_test.testuser1002.phone_number %]@incoming-hih.scenarios.test>;ip=[% scenarios.0.responders.1.ip %];port=[% scenarios.0.responders.1.port %];primary=[% incoming_hih_scenarios_test.testuser1002.phone_number %]'
  - 'P-Asserted-Identity: <sip:004321001@incoming-hih.scenarios.test>'
  - 'P-D-Uri: sip:lb@127.0.0.1;lr;(received=sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];)?socket=sip:[% server_ip %]:5060'
  - 'Content-Type: application/sdp'
  - 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
  - 'Content-Length:\s+\d+'
sip_out:
  - [
      'SIP/2.0 100 Trying',
      'From: <sip:004321001@incoming-hih.scenarios.test>;tag=[\w-]+',
      'To: <sip:testuser1002@incoming-hih.scenarios.test>',
      'CSeq: \d+ INVITE',
      'Server: Sipwise NGCP Proxy',
      'Content-Length: 0',
    ]
  - [
      'INVITE sip:testuser1002@[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];cause=302 SIP/2.0',
      'From: <sip:004321001@incoming-hih.scenarios.test>;tag=[\w-]+',
      'To: <sip:testuser1002@incoming-hih.scenarios.test>',
      'CSeq: \d+ INVITE',
      'History-Info: <sip:\+4313012026@incoming-hih.scenarios.test;user=phone\?privacy=history>;index=1',
      'History-Info: <sip:\+[% incoming_hih_scenarios_test.testuser1003.phone_number %]@incoming-hih.scenarios.test;user=phone;cause=302\?privacy=id>;index=1.1',
      'History-Info: <sip:\+[% incoming_hih_scenarios_test.testuser1002.phone_number %]@incoming-hih.scenarios.test:5060;user=phone;cause=302>;index=1.1.1',
      'P-Caller-UUID: [% incoming_hih_scenarios_test.testuser1003.uuid %]',
      'P-NGCP-Caller-Info: <sip:testuser1003@incoming-hih.scenarios.test>;ip=127.0.0.1;port=508[08];primary=[% incoming_hih_scenarios_test.testuser1003.phone_number %]',
      'P-NGCP-Forward-Info: <sip:[% incoming_hih_scenarios_test.testuser1003.phone_number %]@incoming-hih.scenarios.test>;ip=127.0.0.1;port=508[08];primary=[% incoming_hih_scenarios_test.testuser1003.phone_number %]',
      'P-NGCP-Callee-Info: <sip:[% incoming_hih_scenarios_test.testuser1002.phone_number %]@incoming-hih.scenarios.test>;ip=[% scenarios.0.responders.1.ip %];port=[% scenarios.0.responders.1.port %];primary=[% incoming_hih_scenarios_test.testuser1002.phone_number %]',
      'P-Asserted-Identity: <sip:004321001@incoming-hih.scenarios.test>',
      'P-D-Uri: sip:lb@127.0.0.1;lr;(received=sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];)?socket=sip:[% server_ip %]:5060',
      'Content-Type: application/sdp',
      'Contact: <sip:127.0.0.1:508[08];transport=udp>',
      'Content-Length:\s+\d+',
    ]
