BYE 480 in middle of session

63 views
Skip to first unread message

Erik Dvorčák

unread,
Nov 10, 2020, 1:17:16 PM11/10/20
to SIP.js
Hello,

I searching the case when the SIP.js will send BYE 480 in middle of session... do you know advice me why and when it's happening? (It's happening in SIP.js 0.15.10 will upgrade help? Is it know issue?)

And also is there a possibility to add reasonPhrase back to bye() function throught options? Could I raise featrure request?(v0.17.X)

Thanks 

Slavik Bialik

unread,
Nov 10, 2020, 3:11:53 PM11/10/20
to SIP.js
No idea about the first question never happened to me, maybe it would be best if you enable debug level and share some log traces.
By the way, check if you see some Q.850 reason code in this 480 message. And it makes no sense that this is a BYE, because BYE should not have an error code like 4XX.

But for the second one I totally agree it can make the code a little bit cleaner, but you can do it like I did:

var byeOptions: SessionByeOptions = {
requestOptions: {
extraHeaders: ['Reason: Q.850;cause=666;text="SOME_REASON"']
}
};
session.bye(byeOptions);

So I would suggest to add the following for BYE:
  • reasonCauseCode
  • reasonPhrase
So that way you can manipulate both.

Your PBX will be able to recognize the reason of the disconnect with the above syntax. It worked for me with FreeSWITCH.

Reply all
Reply to author
Forward
0 new messages