« Back to APIs

Presence status coming from webex meetings

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hello,
 
We are displaying presence status on different modules of our application (GE Colab). When a user changes her status manually we receive the status correctly. When the user status is changed automatically when on a WebEx Metting (either attending a meeting or sharing on a meeting) the status received is the last status set manually instead of the Yellow / Red status from WebEx Meeting center. Any idea on how to properly handle this status changes without hardcoding the webex status texts?
 
Appreciate your help.
 
Erick Ruiz
On Site Coordinator - GE Colab Dev Team
erick.ruiz@ge.com

Hello,

I am also working with Erick and checked with some contacts about the WebWx Meeting status. It is my understanding that the WebEx Meeting status may use the custom status format, which is not fully implemented within the APIs at this point. It was suggested to use a coded work around like below. Could you please confirm this is the recommended approach for handling the WebEx Meeting status?

// assuming {prs} is a jabberwerx.Presence

// status == human-readable status value

// show == coarse-grain icon state

show = prs ? (prs.getShow() || prs.getType() || "unavailable") :

             "unknown";

status = (prs && prs.getStatus()) || show;

 

// Webex-specific status indicators

if (show == "available") {

    var cs;

    cs = $(prs.getNode()).find("x[xmlns='http://webex.com/connect/customstatus']").attr("var");

    cs = parseInt(cs || 0) & 0x3f;

    if (cs !== 0) {

        // some form of outlook/webex/phone

        show = "xa";

    }

}
Thank you,
John Genthner