Fix. Use number_alias in dial-string.
This commit is contained in:
parent
5c8a6dd7fe
commit
bfa72cc78a
|
|
@ -254,7 +254,8 @@
|
|||
else
|
||||
--set a default dial string
|
||||
if (dial_string == null) then
|
||||
dial_string = "{sip_invite_domain=" .. domain_name .. ",presence_id=" .. user .. "@" .. domain_name .. "}${sofia_contact(" .. extension .. "@" .. domain_name .. ")}";
|
||||
local ext = (#number_alias > 0) and number_alias or extension
|
||||
dial_string = "{sip_invite_domain=" .. domain_name .. ",presence_id=" .. user .. "@" .. domain_name .. "}${sofia_contact(" .. ext .. "@" .. domain_name .. ")}";
|
||||
end
|
||||
--set the an alternative dial string if the hostnames don't match
|
||||
if (load_balancing) then
|
||||
|
|
|
|||
Loading…
Reference in New Issue