MayamaTakeshi / sip-lab

A node module that helps to write SIP functional tests
3 stars 2 forks source link

Occasional error when executing samples/register_subscribe.js #48

Open MayamaTakeshi opened 1 year ago

MayamaTakeshi commented 1 year ago
12:05:45.647  wait (register_subscribe.js:41) got expected event:
12:05:45.647    {
    event: 'non_dialog_request',
    request_id: 0,
    transport_id: 1,
    msg: 'REGISTER sip:127.0.0.1:5092 SIP/2.0\r\n' +
  'Via: SIP/2.0/UDP 127.0.0.1:5090;rport;branch=z9hG4bKPja29e5137-1b8d-4b2e-b8e0-51d881221c86\r\n' +
  'Max-Forwards: 70\r\n' +
  'From: <sip:user1@test1.com>;tag=94956e6d-7daa-47b9-bb7d-516fcb66abe7\r\n' +
  'To: <sip:user1@test1.com>\r\n' +
  'Call-ID: 2f7ee9da-a639-486d-88f6-cb50f8734bb9\r\n' +
  'CSeq: 7310 REGISTER\r\n' +
  'X-MyHeader1: aaa\r\n' +
  'X-MyHeader2: bbb\r\n' +
  'Contact: <sip:user1@127.0.0.1:5090>\r\n' +
  'Expires: 60\r\n' +
  'Allow: MESSAGE, SUBSCRIBE, NOTIFY, REFER, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK\r\n' +
  'Content-Length:  0\r\n' +
  '\r\n'
  }
12:05:45.648  All expected events received
12:05:45.648  wait (register_subscribe.js:41) finished
12:05:45.648  All expected events received
12:05:45.648  wait (register_subscribe.js:41) finished
pjw_request_respond: request_id=0 json={"code":200,"reason":"OK","headers":{"Expires":"60"}}

Error: Cannot respond to our own request
    at Object.respond (/home/takeshi/src/git/MayamaTakeshi/sip-lab/index.js:53:45)
    at test (/home/takeshi/src/git/MayamaTakeshi/sip-lab/samples/register_subscribe.js:57:17)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
samples/register_subscribe.js failed