Use a sub string rather than requiring the domain at this point.

This commit is contained in:
Mark Crane
2014-04-03 06:26:29 +00:00
parent 44c0a7f87a
commit 776e93e5e3

View File

@@ -61,7 +61,7 @@
if (context == "public") then
dialplan_dir = "inbound";
else
if (context == "outbound@"..domain_name) then
if (string.sub(context, 0, 9) == "outbound@") then
dialplan_dir = "outbound";
else
if (string.len(destination_number) > 6) then