public JingleSession createIncomingJingleSession ( JingleSessionRequest request ) throws XMPPException { if ( request == null ) { throw new NullPointerException ( "Received request cannot be null" ) ; } JingleSession session = new JingleSession ( connection , request , request . getFrom ( ) , connection . getUser ( ) , jingleMediaManagers ) ; triggerSessionCreated ( session ) ; return session ; }
When the session request is acceptable this method should be invoked . It will create an JingleSession which allows the negotiation to procede .