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

  • PBXUser.DelayedRedirectNumber()

    PBXUser.DelayedRedirectNumber()

    Lua   → VBScript   SwxWare v13.10

     

    This function set or returns the state of the script users' (for whom the current script is running) own delayed redirection number setting, meaning the target of the redirection

     

    if (PBXUser.DelayedRedirectNumber() == "100") then
      -- do something
    end
    
    -- configure delayed redirection target
    PBXUser.DelayedRedirectNumber("200")

     

     

    This function takes or returns a string value.

     

    Please note, that you need to enable the delayed redirection using the PBXUser.DelayedRedirect() function.

     

    Additionally you can configure the timeout (in seconds) for the delayed redirection to take affect using the function PBXUser.DelayedRedirectTimeout().

     

    SwyxServer handles all telephone numbers as string, so don't miss to use " ". You can use either a number, a user name or a group name as value.

     

    There is a magic string "voicemail" to redirect calls to the user's voicemail:

     

    -- enable delayed redirection of all calls to users voicemail after 30 seconds
    PBXUser.DelayedRedirect(true)
    PBXUser.DelayedRedirectNumber("voicemail")
    PBXUser.DelayedRedirectTimeout(30)

     

    If your script should check how the users' redirection is configured, make sure it is placed above the Delayed Redirection rule in the Call Routing Manager list of rules. Otherwise your script will never be reached if the user has enabled his redirection.
     

     


    Tom Wellige
     Share


     Share




×
×
  • 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.