浏览代码

Strip out the sip:@ from the to user (#45)

Chris Black 8 年之前
父节点
当前提交
34847b6d8b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sms/resources/install/scripts/app/sms/index.lua

+ 1 - 0
sms/resources/install/scripts/app/sms/index.lua

@@ -109,6 +109,7 @@ end
 	elseif direction == "outbound" then
 		if (argv[3] ~= nil) then
 			to_user = argv[3];
+			to_user = to_user:gsub("%sip%3A%40","");
 			to = string.match(to_user,'%d+');
 		else 
 			to = message:getHeader("to_user");