Subscribe and Unsubscribe services

Version 1
    This document was generated from CDN thread

    Created by: Marwa Ads on 06-07-2009 06:00:56 AM
    Dear All,
    I want to subscribe and unsubscribe services to specific phones from my code , can any one help me in this.
    Thanks alot,
    Marwa

    Subject: RE: Subscribe and Unsubscribe services
    Replied by: Stephan Steiner on 06-07-2009 09:36:49 AM
    For phones, the easiest is to just use BAT.
     
    For UDPs you cannot do that so you have to write your own app which takes an application identifier (ideally the pkid as users can subscribe to a service and use a different name than the service name in the database), then goes through all phones / UDPs, looks if subscribed to the service, and adds/removes if applicable. When dealing with service parameters, things get a little more tricky as you have to resort to using SQL statements to write those parameters (not an issue when removing.. but adding services that have mandatory parameters require manual work). Check out the database schema for the appropriate version which you can find here: http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html