deruelle/jain-sip

Cancel ServerTransaction.getDialog is not available

Closed this issue · 2 comments

if I do such a scenario:

UAC UAS
-------INVITE------->
<--------180----------
-------CANCEL---->
<-------200-----------
<--------487----------

But when the UAS handle the SipListener#processRequest() on the cancel, it cannot anymore access the dialog associated to cancel serverTransaction.

I was eagerly nullifying the dialog when the tx terminates so as a workaround you can get the ref to the dialog before sending the 200 OK to CANCEL or wait for my fix (running the TCK + testsuite for regressions)