Scripting Guide for Communication Server 1000/Meridian 1 PBX 373October 2007 IntrinsicsMOST LOGGED AGENTSThe MOST LOGGED AGENTS intrinsic identifies the skillset with the mostlogged-on agents at the time the intrinsic is executed.This intrinsic applies to both voice and multimedia contacts.Script syntaxMOST LOGGED AGENTS ParameterEnter information for the following parameter: The list of skillsets that you want to include in the returnvalue.Return typeThis intrinsic returns a skillset to the script.ExamplesExample 1In this example, the value of the skillset with the most logged-on agents isassigned to a call variable named skillset_cv. The voice contact is then queuedto the skillset represented by this variable. If the voice contact is not answeredimmediately, the caller hears a message indicating that all agents are busy,followed by music. After this, the section named WaitLoop is executed. Every30 seconds, this section checks whether the voice contact was answered andwhether agents are available in the required skillset to answer the voice contact./* Always assign the skillset to a skillset call variable(skillset_cv) so that you can check where the call was queued to*/ASSIGN MOST LOGGED AGENTS service_sk, support_sk TO skillset_cv