소스 검색

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");