flow:
  - start|DEFAULT_ROUTE:
  - start|ROUTE_ENTRY:
  - return|ROUTE_ENTRY:
  - start|ROUTE_NET_INFO:
  - return|ROUTE_NET_INFO:
  - start|ROUTE_CHECK_TEL_URI:
      $x_hdr(From): <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]>;tag=\w+
      $x_hdr(Diversion): <tel:\+43111222333>;reason=unconditional;privacy=off;counter=1
      $x_hdr(P-Asserted-Identity): <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]>
      $x_tu: tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1001.phone_number %]
  - exit|ROUTE_CHECK_TEL_URI:
      $x_hdr(From): <sip:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]@invite-redirect-tel-uri.scenarios.test;user=phone>;tag=\w+
      $x_hdr(Diversion): <sip:\+43111222333@invite-redirect-tel-uri.scenarios.test;user=phone>;reason=unconditional;privacy=off;counter=1
      $x_hdr(P-Asserted-Identity): <sip:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]@invite-redirect-tel-uri.scenarios.test;user=phone>
      $x_tu: sip:\+[% invite_redirect_tel_uri_scenarios_test.testuser1001.phone_number %]@invite-redirect-tel-uri.scenarios.test
  - start|ROUTE_PRX_REQUEST:
  - start|ROUTE_INITVARS:
  - return|ROUTE_INITVARS:
  - start|ROUTE_INVITE:
  - start|ROUTE_LOAD_CALLEE_DOMAIN_PREF:
  - start|ROUTE_CLEAR_CALLEE_DOMAIN_PREF:
  - return|ROUTE_CLEAR_CALLEE_DOMAIN_PREF:
  - return|ROUTE_LOAD_CALLEE_DOMAIN_PREF:
  - start|ROUTE_FIND_CALLER:
  - start|ROUTE_AUTH:
  - start|ROUTE_EXIT:
  - start|ROUTE_RUNTIME:
  - return|ROUTE_RUNTIME:
  - exit|ROUTE_EXIT:
sip_in:
  - '^INVITE sip:[% scenarios.0.responders.0.username %]@'
  - 'From: <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]>;tag=[\w-]+'
  - 'To: <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1001.phone_number %]>'
  - 'Diversion: <tel:\+43111222333'
  - 'P-Asserted-Identity: <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]>'
  - 'CSeq: \d+ INVITE'
  - 'Contact: sip:[% scenarios.0.username %]@'
  - 'Max-Forwards: 69'
  - 'Content-Type: application/sdp'
sip_out:
  - [
      '^SIP/2.0 100 Trying',
      'CSeq: \d+ INVITE',
      'From: <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]>;tag=[\w-]+',
      'To: <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1001.phone_number %]>'
    ]
  - [
      '^SIP/2.0 407 Proxy Authentication Required',
      'CSeq: \d+ INVITE',
      'From: <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1000.phone_number %]>;tag=[\w-]+',
      'To: <tel:\+[% invite_redirect_tel_uri_scenarios_test.testuser1001.phone_number %]>;tag=[\w-]+'
    ]
