Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. --get the destination by argument and set the forwarding destination
  2.     destination = argv[1];
  3.    
  4.     if enabled == "true" and destination then
  5.         forward_all_destination = destination;
  6.         log.warning("[FORWRDING] Destination for ".. destination_extension .." has been set to " .. argv[1] .. "\n");
  7.     end
  8.    
  9. --get the forward destination
  10.     if enabled == "true" and empty(forward_all_destination) and not destination then
  11.         forward_all_destination = session:playAndGetDigits(min_digits, max_digits, max_tries, digit_timeout, "#", sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/ivr/ivr-enter_destination_telephone_number.wav", "", "\\d+");
  12.         if empty(forward_all_destination) then return end
  13.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement