• Welcome to Swyx Forum

    This community is maintaind by Swyx enthusiasts for Swyx users, administrators, resellers, developers and anybody else being interested in Swyx respectively SwyxWare, it's OEM versions as well as also products and tools around it.

    Enjoy spending time here, asking your questions and sharing your knowledge!

Forums

  1. ENGLISH

    1. 1,070
      posts
    2. 442
      posts
    3. 567
      posts
    4. CUSTOMISATION

      All topics related to the customisation of SwyxWare

      161
      posts
    5. DEVELOPMENT

      All topics related to the development of extensions for SwyxWare

      531
      posts
    6. 152
      posts
    7. SWYXPEDIA

      Collection of references and tutorials, no discussions

      135
      posts
  2. DEUTSCH

    1. 1,731
      posts
    2. 1,658
      posts
    3. INDIVIDUALISIERUNG

      Alle Themen rund um die Individualisierung der SwyxWare

      1,169
      posts
  • Who's Online   0 Members, 0 Anonymous, 4 Guests (See full list)

    There are no registered users currently online

  • Forum Status

    Please note that this is not an official support forum of Swyx Solutions AG, but instead a privately owned and driven website.

  • Topics of Interest

  • Posts

    • With the following VBScript function it is possible to request the current status of any user or group from within the call routing.   '---------------------------------------------------------------- ' UserStatus ' ' Returns the current status of the given user. ' ' Parameter ' sNumber user name or extension ' ' Return ' integer 0 - State Unavailable (no status signalling configured!) ' 1 - Logged Off ' 2 - Logged On (no speaking) ' 3 - Speaking External ' 4 - Alerting ' 5 - Speaking Internal ' 6 - Away (from SwyxWare 2011 on) ' 7 - Do not Disturb (from SwyxWare 2011 on) '---------------------------------------------------------------- Function UserStatus(ByVal sNumber) PBXScript.OutputTrace("-------------> UserStatus ( sNumber = " & sNumber & " )") Dim nReturn nReturn = 0 Dim Users Set Users = g_PBXConfig.GetUserByAddress(sNumber) Dim User For Each User In Users PBXScript.OutputTrace("Found user " & User.Name & " with current state " & User.State) nReturn = User.State Next UserStatus = nReturn PBXScript.OutputTrace("nReturn = " & nReturn) PBXScript.OutputTrace("<------------- UserStatus") End Function   In order to use his function you need to do the following:   Copy & paste the code into the Start block of your call routing script Make sure to have mutual status signalling configured between the call routing script user and the user you request the status from To call the UserStatus function you can use for example the Insert Script Code block To do so add the following code to its Parameters page UseExit = UserStatus (100) Now you need to switch to the Links page and configure the exits. Enable the exits and configure their names.


        With having done this you have a block returning the status of the user with the extension 100 on it's exits:


          Enjoy!     This topic was originally posted into the old Swyx Forum: http://www.archive-swyx-forum.com/community/Forums/tabid/54/forumid/-1/threadid/12970/scope/posts/Default.aspx  
    • I can offer to take a look into the server trace file this weekend to see in detail what is happening. Please send the current server trace file (which includes at least one call into your call routing) via PM to me (do not post it publicly!). I would also need a time stamp and caller and called number to be able to identify the call in the trace file.
    • Hi Ben,   the IsLoggedIn function doesn't take any parameters and always returns the login status of the current call routing user, i.e. the user the call routing script is running for.   To check the status of any user within the system you should have a look here:      
  • Popular Contributors

  • Latest Downloads

  • Swyx News (de)

  • Swyx News (en)