Move the referred_by into the 'if statement'

This commit is contained in:
Mark Crane 2013-04-02 05:44:51 +00:00
parent 0ffbda23db
commit e4448fe4d6
1 changed files with 1 additions and 1 deletions

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