Elsinore

User Forum

www.screenconnect.com
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Can you hide listed sessions after the host and guest are connected
JeffBower
#1 Posted : Monday, September 26, 2011 4:19:18 PM
Rank: Member
Joined: 5/14/2010
Posts: 17
Location: Chicago
Here is the use model:

We want to create a listed session for each member of our support team, when a guest hits the page we would direct them to select a particular support rep. But in our model we would like to direct the customer to choose a different support rep if the first rep is already on a session. So can we temporarily hide the session while its active and then re-list it onto the guest page once the host and guest disconnects? I thought I should base it on both being connected to prevent issues during a reboot.
Jake Morgan
#2 Posted : Friday, September 30, 2011 7:31:06 PM
Rank: Administration
Joined: 4/9/2010
Posts: 871
You'll have to change program code. In 2.3, search Service.ashx for this line:

Code:
lss = sessionManager.GetSessionSummaries(InvitationType.Listed).Select(ss => this.GetGuestSessionSummary(ss))


And replace it with this:

Code:
lss = sessionManager.GetSessionSummaries(InvitationType.Listed).Where(ss => !ss.IsGuestConnected).Select(ss => this.GetGuestSessionSummary(ss))

bigdessert
#3 Posted : Saturday, October 01, 2011 2:23:23 AM
Rank: Advanced Member
Joined: 9/14/2010
Posts: 460
Location: Minnesota
You know what would be sweet.....a small button to hide and unhide listed sessions from the main page.

Then with my limited asp skills, you could add a simple link to the session open panel line this

host.aspx:
Code:
var test1234 = window.addElement(panel, "p", { className: "sessionUrlInfo" });
            window.invokeService("GetSessionUrl", [sessionSummary.clp.s], function (url) { window.setElementText(test12345, url); });


service.aspx:
Code:
public object GetSessionUrl(Guid sessionID)
        {
            Permissions.AssertPermission(new PermissionRequest { Name = PermissionInfo.CreateAttendedSessionPermission }, true);

            using (var sessionManager = ServiceChannelPool<ISessionManagerChannel>.Instance.Borrow())
            {
                var sessionSummary = sessionManager.GetSessionSummary(sessionID);
                var webServerUri = ServerExtensions.GetWebServerUri(ConfigurationManager.AppSettings, HttpContext.Current.Request.Url, true, false);
                var sessionGuestUrl = Extensions.EncodeUrl(webServerUri.Uri.AbsoluteUri, ServerConstants.SessionIDParameterName, sessionSummary.SessionID);
                return sessionGuestUrl;
            }
        }


and bam, you can hide sessions from the main page all the while have the session url to email or deliver via chat.
iwes
#4 Posted : Monday, February 06, 2012 9:35:53 PM
Rank: Newbie
Joined: 2/6/2012
Posts: 2
FYI, for 2.4 the IsGuestConnected (boolean) has been changed to GuestConnectedCount (integer)

Working code for 2.4 would is:

Code:
lss = sessionManager.GetSessionSummaries(InvitationType.Listed).Where(ss => ss.GuestConnectedCount < 1).Select(ss => this.GetGuestSessionSummary(ss))


Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.