public void removeCorrespondingSipApplicationSession ( MobicentsSipApplicationSessionKey sipApplicationSession ) { joinApplicationSession . remove ( sipApplicationSession ) ; replacesApplicationSession . remove ( sipApplicationSession ) ; Iterator < MobicentsSipApplicationSessionKey > it = joinApplicationSession . values ( ) . iterator ( ) ; boolean found = false ; while ( it . hasNext ( ) && ! found ) { MobicentsSipApplicationSessionKey sipApplicationSessionKey = it . next ( ) ; if ( sipApplicationSessionKey . equals ( sipApplicationSession ) ) { joinApplicationSession . remove ( sipApplicationSessionKey ) ; found = true ; } } it = replacesApplicationSession . values ( ) . iterator ( ) ; found = false ; while ( it . hasNext ( ) && ! found ) { MobicentsSipApplicationSessionKey sipApplicationSessionKey = it . next ( ) ; if ( sipApplicationSessionKey . equals ( sipApplicationSession ) ) { replacesApplicationSession . remove ( sipApplicationSessionKey ) ; found = true ; } } }
Add a mapping between a corresponding sipSession related to a headerName . See Also getCorrespondingSipSession method .