Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

  • Functions

    Functions


    22 pages in this category

    1. AnyRedirectionConfigured()

      Lua   → VBScript   The following function returns true if the current script user has any redirection configured (unconditional, busy or delayed). Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- AnyRedirectionConfigured -- -- Returns true if current user has configured any redirection (unconditional, busy or delayed) -- -- Parameter: -- none -- -- Return: -- boolean -----------
      • 0 comments
      • 62 views
    2. CheckCallerInTextFile()

      Lua   → VBScript   This function checks if the current caller (i.e. his phone number) can be found in a given text file. It can be used to create black or white lists for incoming calls on a user. Please see the Introduction chapter for some usage instructions.   Please note: the Lua Beta Testing versions of SwyxWare (13.1x) do not limit any file access. In the final release version file access will only be permitted in the SwyxWare CPE (customer premise equipment) v
      • 0 comments
      • 77 views
    3. GetFilesInFolder()

      Lua   → VBScript   The following function fills a table with the names of all files in a given folder (incl. subfolders). The names contain the complete path. It can be used for example, to get a list of announcement (.wav) files in a folder to play them one after each other. See example code below... Please see the Introduction chapter for some usage instructions.   Please note: the Lua Beta Testing versions of SwyxWare (13.1x) do not limit any file access. In the
      • 0 comments
      • 56 views
    4. GetUserNameFromExtension()

      Lua   → VBScript   The following function returns the user name from a given extension. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- GetUserNameFromExtension -- -- Returns the user name for the given extension. -- -- Parameter: -- sExtension extension -- -- Return: -- string user name ------------------------------------------------------------------ function G
      • 0 comments
      • 33 views
    5. GetUserStatus()

      Lua   → VBScript   This function returns the current status of the given user. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- GetUserStatus -- -- Returns the status of the given user. -- If being used on a user group it returns the status of the last user in the group. -- -- Parameter: -- sNumber extension of user or user group -- -- Return: -- number - PBXUs
      • 0 comments
      • 38 views
    6. IsAtLeastOneMemberOfGroupBusy()

      Lua   → VBScript   This function returns true if at least one member of the given group is busy. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsAtLeastOneMemberOfGroupBusy -- -- Returns true if at least one member of the given group is busy. -- -- Parameter: -- sGroup group number or name -- -- Return: -- boolean true - at least one member of group busy --
      • 0 comments
      • 30 views
    7. IsAtLeastOneMemberOfGroupLoggedOff()

      Lua   → VBScript   This function returns true if at least one member of the given group is busy. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsAtLeastOneMemberOfGroupLoggedOff -- -- Returns true if at least one member of the given group is busy. -- -- Parameter: -- sGroup group number or name -- -- Return: -- boolean true - at least one member of group log
      • 0 comments
      • 28 views
    8. IsCallTransferred()

      Lua   → VBScript   This function returns true if the call was transferred by another user and is not a direct call. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsCallTransferred -- -- Checks if the current call was transferred to the current user, -- i.e. was in some other user's call routing before. -- -- Parameter: -- -- Return: -- boolean true - call was transferre
      • 0 comments
      • 57 views
    9. IsExternalRedirectionConfigured()

      Lua   → VBScript   This function returns true if the current script user has an unconditional redirection to an external destination enabled. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsExternalRedirectionConfigured -- -- Checks if there is an unconditional call forwarding configured to an -- external number. The function checks if the configured unconditional -- call forward
      • 0 comments
      • 50 views
    10. IsGroupLoggedOff()

      Lua   → VBScript   This function returns true if all members of the given group are logged off. Please see the Introduction chapter for some usage instructions.   --------------------------------------------------------------------- -- Name: IsGroupLoggedOff -- ================ -- -- Checks if all members of a given SwyxWare user group are logged off. -- -- Parameter -- sGroup group number or name -- -- Return: -- boolean True - all
      • 0 comments
      • 48 views
    11. IsLoopConfigured()

      Lua   → VBScript   The following function returns true if the current script user can be found in the list of users, where the current call has already been. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsLoopConfigured -- -- Checks if current script user is in the PreviousScripts list, -- i.e. the call was previously already in that user's call routing. -- So chances are
      • 0 comments
      • 51 views
    12. IsRedirectedFromByName()

      Lua   → VBScript   This function checks if the current call was redirected by a given user. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsRedirectedFromByName -- -- Checks if current call is redirected by a given user. -- -- Parameter: -- sUserName name of user to check if call is redirected from -- -- Return: -- boolean true - call was redirected by given us
      • 0 comments
      • 36 views
    13. IsRedirectedFromByNumber()

      Lua   → VBScript   This function returns true if the call was redirected/transferred by a certain user (extension) or list of extensions, separated by ; (semikolon). Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsRedirectedFromByNumber -- -- Returns true if the current call is redirected by any of the numbers -- given in the semicolon separated list. It also returns the number t
      • 0 comments
      • 55 views
    14. IsRedirectionLoopConfigured()

      Lua   → VBScript   This function returns true if the current script user has an unconditional redirection to a user configured, where the current call already has been (in his call routing). Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsRedirectionLoopConfigured -- -- Checks if the undonditional redirection target of the script user is -- already in the PreviousScripts lis
      • 0 comments
      • 42 views
    15. IsUserFree()

      Lua   → VBScript   This function returns true if the given user is logged in and free. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsUserFree -- -- Checks if given user is free or not. -- -- Parameter: -- sNumber extension -- -- Return: -- boolean ------------------------------------------------------------------ function IsUserFree( sNumber ) PBXScr
      • 0 comments
      • 53 views
    16. IsUserInGroup()

      Lua   → VBScript   This function checks if the current script user is member of the given group. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsUserInGroup -- -- Checks if the current script user is in the given group -- -- Parameter: -- sGroup group number or name -- -- Return: -- boolean ------------------------------------------------------------------
      • 0 comments
      • 30 views
    17. IsUserLoggedOff()

      Lua   → VBScript   This function returns true of the given user is logged off from the server. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsUserLoggedOff -- -- Checks if given user is logged off -- -- Parameter: -- sNumber user name or extension -- -- Return: -- boolean ------------------------------------------------------------------ function IsUserLoggedOff( sNumb
      • 0 comments
      • 31 views
    18. IsUserLoggedOn()

      Lua   → VBScript   This function returns true of the given user is logged on. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsUserLoggedOn -- -- Checks if given user is logged on -- -- Parameter: -- sNumber user name or extension -- -- Return: -- boolean ------------------------------------------------------------------ function IsUserLoggedOn( sNumber ) PBXScript.O
      • 0 comments
      • 45 views
    19. LaunchCmd()

      Lua   → VBScript   This function calls (launches) a given command, i.e. launches any given application. Please see the Introduction chapter for some usage instructions.   Please note: the Lua Beta Testing versions of SwyxWare (13.1x) do not limit any file/command access. In the final release version file/command access will only be permitted in the SwyxWare CPE (customer premise equipment) version. Within the cloud versions (SDC and SwyxON) file/command access will n
      • 0 comments
      • 32 views
    20. LaunchHTTPRequest()

      Lua   → VBScript   This function calls (launches) a given URL (http request) and returns true if the request returns without error. Please see the Introduction chapter for some usage instructions.   --------------------------------------------------------------------- -- LaunchHTTPRequest -- -- Launches given URL. -- -- Parameter: -- sURL complete url -- -- return value: -- boolean true - request returned with code 200 -- false - request
      • 0 comments
      • 58 views
    21. LogCallIntoTextFile()

      Lua   → VBScript   This function logs some details into a given log (text) file. Please see the Introduction chapter for some usage instructions.   Please note: the Lua Beta Testing versions of SwyxWare (13.1x) do not limit any file access. In the final release version file access will only be permitted in the SwyxWare CPE (customer premise equipment) version. Within the cloud versions (SDC and SwyxON) file access will not be permitted.   local LogFormat = '"
      • 0 comments
      • 32 views
    22. SetNewVoicemailFlag()

      Lua   → VBScript   The following function sets the "new voicemail indication" for a certain user or all users within a user group. Please see the Introduction chapter for some usage instructions.   --------------------------------------------------------------------- -- SetNewVoicemailFlag -- -- This function sets the "new voicemail indication" for a single user -- or all users of a SwyxWare user group. -- -- Parameter: -- sUserOrGroup name of user or group --
      • 0 comments
      • 28 views
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.