factorize add session to rtspserver