Move the referred_by into the 'if statement'

This commit is contained in:
Mark Crane
2013-04-02 05:44:51 +00:00
parent 1946c6b976
commit ab7b345ad5

View File

@@ -271,8 +271,8 @@
else
--voicemail not enabled or does not exist
referred_by = session:getVariable("sip_h_Referred-By");
referred_by = referred_by:match('[%d]+');
if (referred_by) then
referred_by = referred_by:match('[%d]+');
session:transfer(referred_by, "XML", context);
end
end