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?
In my tests this:
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
andInstance
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:
So far I have not found a combination of name (
'routing'
),ContainerNumber
andInstance
id that give any results, so please update if you find anything.