Update index.lua
This commit is contained in:
parent
d50659fa04
commit
d111f29f2d
|
|
@ -695,9 +695,14 @@
|
|||
route = route_to_bridge.apply_vars(route, params)
|
||||
route.bridge = destination
|
||||
else
|
||||
if (user_exists == "true") then
|
||||
route.bridge = 'user/'..destination_number..'@'..domain_name;
|
||||
else
|
||||
route.bridge = 'loopback/'..destination_number;
|
||||
end
|
||||
--user define external number as destination
|
||||
route = route_to_bridge.apply_vars(route, params)
|
||||
route = route_to_bridge(dialplans, domain_uuid, params, route)
|
||||
--route = route_to_bridge.apply_vars(route, params)
|
||||
--route = route_to_bridge(dialplans, domain_uuid, params, route)
|
||||
end
|
||||
|
||||
--build the dial string
|
||||
|
|
|
|||
Loading…
Reference in New Issue