Skip to content

Commit 0315151

Browse files
committed
do not terminate linked session
1 parent 7992e01 commit 0315151

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/session/SipSessionImpl.java

-12
Original file line numberDiff line numberDiff line change
@@ -1591,21 +1591,9 @@ public void onTerminatedState() {
15911591
//switch to readyToInvalidate state here
15921592
this.setReadyToInvalidate(true);
15931593

1594-
//make sure linked session is terminated as well so is
1595-
//not left on memory
1596-
MobicentsSipSession linkedSession = null;
1597-
if (getB2buaHelper() != null) {
1598-
//save ref to linkedSession for later
1599-
linkedSession = (MobicentsSipSession) getB2buaHelper().getLinkedSession(this);
1600-
}
16011594
//evaluate if we can proceed to invalidation
16021595
onReadyToInvalidate();
16031596

1604-
//invoke after actual invalidation to prevent infinite loop
1605-
if (linkedSession != null) {
1606-
logger.debug("terminating linked session.");
1607-
linkedSession.onTerminatedState();
1608-
}
16091597

16101598
if(!this.isValid && this.parentSession != null) {
16111599
//Since there is a parent session, and since the current derived sip session

0 commit comments

Comments
 (0)