-
26 pages in this category
-
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
- 362 views
-
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 - 2 comments
- 658 views
-
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
- 199 views
-
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
- 406 views
-
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
- 255 views
-
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
- 285 views
-
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
- 370 views
-
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
- 279 views
-
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
- 304 views
-
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
- 295 views
-
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
- 355 views
-
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
- 379 views
-
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
- 387 views
-
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
- 277 views
-
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
- 199 views
-
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
- 365 views
-
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
- 357 views
-
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
- 279 views
-
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
- 367 views
-
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
- 283 views
-
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
- 280 views
-
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
- 347 views
-
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
- 328 views
-
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
- 258 views
-
NumberOfLoggedInUsersInGroup
Lua → VBScript This function returns the number of currently logged in users (regardless if free or busy) into a given group. Please see the Introduction chapter for some usage instructions. ------------------------------------------------------------------ -- NumberOfLoggedInUsersInGroup -- -- Returns the number of users which are currently logged in into the given group. -- The users need to have a higher status as "1", i.e. being logged in (regardless if free - 0 comments
- 155 views
-
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
- 259 views
-