kirm / sip.js

Session Initiation Protocol for node.js
MIT License
427 stars 171 forks source link

callback is not invoked after reINVITE #125

Closed DmitryAndreyeff closed 6 years ago

DmitryAndreyeff commented 6 years ago

Hi,

I started to use sip.js and I really like it. I have been able to do some simple things with it, and now I have a problem building a little more advanced scenario.

Basically I'm creating a user-agent that receives INVITE, responds to it with 200 OK and after some interval, initiates an in-dialog re-INVITE transaction.

I got this flow working up to re-INVITE only. In the Wireshark I see that the client is receiving the re-INVITE and responding with 180 Ringing and 200 OK, however my callback registered in sip.start() is not getting invoked for the 180 Ringing and 200 OK messages, though the messages are sent to correct IP and port.

Can you please advise how I can troubleshoot the issue?

Many thanks in advance,

Dmitry