Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --get the destination by argument and set the forwarding destination
- destination = argv[1];
- if enabled == "true" and destination then
- forward_all_destination = destination;
- log.warning("[FORWRDING] Destination for ".. destination_extension .." has been set to " .. argv[1] .. "\n");
- end
- --get the forward destination
- if enabled == "true" and empty(forward_all_destination) and not destination then
- 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+");
- if empty(forward_all_destination) then return end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement