Jump to content
  • Functions

    Functions


    25 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
      • 263 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
      • 371 views
    3. GetDestinationFromZIPCode()

      Lua   → VBScript   This function returns a destination to connect a call to related to a given ZIP code. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- ZIP_Code_Areas -- -- This table holds all ZIP code areas (from and to numbers) as -- well as the related destination that should be returned by the -- GetDestinationFromZIPCode function. -- -- Modifying (add, edit, delete) the ZIP
      • 0 comments
      • 75 views
    4. 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
      • 280 views
    5. GetUserEMailAddress

      Lua   → VBScript   This function returns the configured email address of the given user. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- GetUserEMailAddress -- -- Returns the configured email address of the given user. -- -- Parameter: -- sNumber number or name of user -- -- Return: -- string ------------------------------------------------------------------
      • 0 comments
      • 149 views
    6. 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
      • 194 views
    7. 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
      • 211 views
    8. 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
      • 198 views
    9. 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
      • 210 views
    10. 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
      • 222 views
    11. 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
      • 198 views
    12. 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
      • 302 views
    13. 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
      • 229 views
    14. IsRedirectedFromByName()

      Lua   → VBScript   SwyxWare 13.26   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 redir
      • 0 comments
      • 207 views
    15. IsRedirectedFromByNameEx()

      Lua   → VBScript   SwxWare v13.27   This function checks if the current call was redirected by a given user or group. Please see the Introduction chapter for some usage instructions.   ------------------------------------------------------------------ -- IsRedirectedFromByNameEx -- -- Checks if current call is redirected by a given user or group. -- The user or group is identified by its name. -- -- Parameter: -- sName name of user or group to check if ca
      • 0 comments
      • 141 views
    16. 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
      • 243 views
    17. 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
      • 263 views
    18. 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
      • 209 views
    19. 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
      • 237 views
    20. 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
      • 219 views
    21. 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
      • 181 views
    22. 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
      • 283 views
    23. 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
      • 254 views
    24. 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
      • 153 views
    25. 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
      • 171 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.