Lync 2013阻止来电和即时消息 [英] Lync 2013 block Incoming Calls and IMs

查看:63
本文介绍了Lync 2013阻止来电和即时消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


i试图建立一个脚本来做我需要的工作似乎不起作用....只有user1@contoso.com应该能够IM和user2@contoso.com,其他人应该不能IM和user2@contoso.com,有时几个
用户将可以IM或致电用户2 ...所以我需要的是在我的代码中添加一些例外,但我认为我遵循逻辑,但似乎没有工作:(我不知道你能帮我吗?

i tried to build a script to do what i need where i work seems to be not working .... only the user1@contoso.com supposed to be able to IM the user2@contoso.com and the rest supposed to not to be able to IM the user2@contoso.com and some times few user will be able to IM or call the user2 ...so what i need is add some exceptions in my code but  i think i m following the logic but doesnt seems to be working :( i dont know if you could help me please ?


谢谢




推荐答案

逻辑似乎错了。

The logic there seems wrong.

如果From是user1

 如果To是user2

   回复200 OK(???)

 否则如果收件人是user2

   回应486

If From is user1
  If To is user2
    Respond 200 OK (???)
  Else If To is user2
    Respond 486

看起来你的其他人应该是外部的一部分如果声明,而不是内部声明。

It seems like your else should be part of the outer If statement, not the inner one.

其次,你不应该用200 OK回复。这会阻止请求到达目的地。你应该打电话相反,ProxyRequest,或者如果proxyByDefault为true,那么你可以返回。

Second, you should not be Responding with a 200 OK.  This will prevent the request from getting to the destination.  You should just call ProxyRequest instead, or if proxyByDefault is true then you can return.

所以我认为它会更好地工作:

So I think it would work better as:

如果To是user2

 如果From是user1

    ProxyRequest

 否则

    回应486

If To is user2
  If From is user1
    ProxyRequest
  Else
    Respond 486


这篇关于Lync 2013阻止来电和即时消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆