showrav017 / jain-sip

Automatically exported from code.google.com/p/jain-sip
0 stars 0 forks source link

481 Dialog Not found on BYE when INVITE is authenticated #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Authenticate INVITE
2. Change to tag in 200 OK
3. Wait a couple of seconds and receive a BYE

What is the expected output? What do you see instead?
481 Dialog not found response

What version of the product are you using? On what operating system?
latest

Please provide any additional information below.
I believe that first INVITE dialog receiving the 401/407 is removed while the 
second is still in early stage, but the sipstack removes the early one instead.

In this case, both dialogs will have the same dialog.getEarlyDialogId() so 
removeDialog removed the wrong one.

A quick and dirty fix apparently solved the problem:
SIPTransactionStack.prototype.removeDialog =function(dialog){
    console.log("SIPTransactionStack.prototype.removeDialog(): id="+dialog.getDialogId())
    var id = dialog.getDialogId();
    var earlyId = dialog.getEarlyDialogId();
    if (dialog.getState()==0 && earlyId != null) {

That's it, checking for the dialog early state dialog.getState()==0 

Original issue reported on code.google.com by sergio.g...@gmail.com on 3 May 2013 at 10:19

GoogleCodeExporter commented 8 years ago

Original comment by laurent.strullu.orange@gmail.com on 6 May 2013 at 3:05

GoogleCodeExporter commented 8 years ago
This issue was closed by revision ca7a9b6cbfb5.

Original comment by jean.der...@telestax.com on 9 Oct 2013 at 12:57