flow:
  - start|DEFAULT_ONREPLY:
  - start|REPLY_ROUTE_NAT:
  - start|ROUTE_ENTRY:
  - return|ROUTE_ENTRY:
  - start|ROUTE_APPLY_HEADER_RULES:
  - return|ROUTE_APPLY_HEADER_RULES:
  - start|ROUTE_PREPARE_UA:
  - return|ROUTE_PREPARE_UA:
  - start|REPLY_ROUTE_RTPENGINE:
  - return|REPLY_ROUTE_RTPENGINE:
  - start|REPLY_ROUTE_NAT_CONTINUE:
  - start|ROUTE_EXIT:
  - start|ROUTE_RUNTIME:
  - return|ROUTE_RUNTIME:
  - start|dialog:start:
  - return|dialog:start:
  - return|dialog:start:
sip_in:
  - 'SIP/2.0 200 OK'
  - 'From: <sip:4311002@spce.test>;tag=[\w-]+'
  - 'To: <sip:1003@spce.test>;tag=[\w-]+'
  - 'CSeq: \d+ INVITE'
  - 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
  - 'Content-Type: application/sdp'
  - 'Content-Length:\s+\d+'
sip_out:
  - [
      'PUBLISH sip:testuser1003@spce.test SIP/2.0',
      'To: <sip:testuser1003@spce.test>',
      'From: <sip:testuser1003@spce.test>;tag=[\w-]+',
      'CSeq: \d+ PUBLISH',
      'Content-Length:\s+\d+',
      'User-Agent: Sipwise NGCP Proxy',
      'Event: dialog',
      'SIP-If-Match: .+',
      'Content-Type: application/dialog\-info\+xml',
    ]
  - [
      'SIP/2.0 200 OK',
      'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
      'To: <sip:1003@spce.test>;tag=[\w-]+',
      'CSeq: \d+ INVITE',
      'Contact: <sip:127.0.0.1:508[08];transport=udp>',
      'Content-Type: application/sdp',
      'Content-Length:\s+\d+',
    ]
  - [
      'CANCEL sip:439333111@127.2.0.1:\d+ SIP/2.0',
      'From: <sip:4311002@spce.test>;tag=[\w-]+',
      'To: <sip:1003@spce.test>',
      'CSeq: \d+ CANCEL',
      'Content-Length: 0',
      'Reason: SIP;cause=200;text="Call completed elsewhere"',
    ]
  - [
      'CANCEL sip:439333333@127.2.0.2:\d+ SIP/2.0',
      'From: <sip:4311002@spce.test>;tag=[\w-]+',
      'To: <sip:1003@spce.test>',
      'CSeq: \d+ CANCEL',
      'Content-Length: 0',
      'Reason: SIP;cause=200;text="Call completed elsewhere"',
    ]
