public MobicentsSipApplicationSession createApplicationSession ( SipContext sipContext ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Creating new application session for sip context " + sipContext . getApplicationName ( ) ) ; } //call id not needed anymore since the sipappsessionkey is not a callid anymore but a random uuid SipApplicationSessionKey sipApplicationSessionKey = SessionManagerUtil . getSipApplicationSessionKey ( sipContext . getApplicationName ( ) , null , null ) ; MobicentsSipApplicationSession sipApplicationSession = sipContext . getSipManager ( ) . getSipApplicationSession ( sipApplicationSessionKey , true ) ; if ( StaticServiceHolder . sipStandardService . isHttpFollowsSip ( ) ) { String jvmRoute = StaticServiceHolder . sipStandardService . getJvmRoute ( ) ; if ( jvmRoute != null ) { sipApplicationSession . setJvmRoute ( jvmRoute ) ; } } return sipApplicationSession . getFacade ( ) ; }
Creates an application session associated with the context