Retrieve call forwarding (routing) rules of a Lync client

405 views Asked by At

How can I retrieve the call forwarding (routing) rules of a lyn client using UCMA or MSPL? I have tried to retrieve it using a UserEndpoint and subscribing to the PresenceNotificationReceived event of RemotePresenceView. Unfortunately this seems not to work. According to the msdn documentation it is only possible to query the route category with a local-access (LocalOwnerPresence).

Another options would be to use an ApplicationEndpoint of impersonate every user for which I want the retrieve the call forwarding rules. But in my eyes this seems to be a dirty solution.

Could this be also be done with MSPL?

1

There are 1 answers

3
w5l On BEST ANSWER

In my tests this:

Another options would be to use an ApplicationEndpoint of impersonate every user for which I want the retrieve the call forwarding rules. But in my eyes this seems to be a dirty solution.

Has been the only working solution (outside of querying the database directly).

If you want this done in MSPL, look at QueryCategory. The problem there is you will need the correct ContainerNumber and Instance ids.

However, if you look them up (See MSDN for Presence data source and category instance ID) you will find there is no instance numbers listed for routing. The container number info can be found here: Routing category instance value element, and that one does list some instance IDs.

Interesting point is that routing data is classified as "local only", see Local-access only category instances:

The routing category instances contain routing rules to forward inbound calls made by any members of a hosting container. They are private category instances and are not visible to the remote users who are members of the hosting containers.

So far I have not found a combination of name ('routing'), ContainerNumber and Instance id that give any results, so please update if you find anything.