amitpahune / jain-sip

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

RE-INVITE request rejected in DialogFiler #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Bug in test condition in dialog filter, not inline with Java JAIN SIP 
implementation:in DialogFilter.java (code below) replace 
dialog.getRemoteSeqNumber() by lastTransaction.getCSeq();

if (dialog != null && transaction != null && lastTransaction != null
            && sipRequest.getCSeq().getSeqNumber() > dialog.getRemoteSeqNumber()
            && lastTransaction instanceof SIPServerTransaction
            && sipProvider.isDialogErrorsAutomaticallyHandled()
            && dialog.isSequnceNumberValidation()
            && lastTransaction.isInviteTransaction()
            && lastTransaction.getState() != "COMPLETED"
            && lastTransaction.getState() != "TERMINATED"
            && lastTransaction.getState() != "CONFIRMED") {
            this.sendServerInternalErrorResponse(sipRequest, transaction);
            return;
        }

Original issue reported on code.google.com by laurent.strullu.orange@gmail.com on 26 Sep 2013 at 2:08