i试图建立一个脚本来做我需要的工作似乎不起作用....只有user1@contoso应该能够IM和user2@contoso,其他人应该不能IM和user2@contoso,有时几个用户将可以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 supposed to be able to IM theuser2@contoso and the rest supposed to not to be able to IM theuser2@contoso 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阻止来电和即时消息
发布评论