Commit 1e6f2f91 by Huang Linyu

add handling of which the sipPhone user didn't login or the sipPhone didn't bind any login user

parent c699374a
......@@ -76,6 +76,10 @@ public class NewStateWebSocket {
public static void unicast(String username, String mobileNo) {
String message = "/system/user/"+mobileNo+"/detailByUid";
Session session = sessionMap.get(username);
if(session == null){
System.out.println("Callcenter pop window:分机号"+username+"没有绑定任何账户或者绑定的账户没有登录。无法为其弹窗");
return ;
}
try {
session.getBasicRemote().sendText(message);
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment