Enable Web Access to Phones

Version 1
    This document was generated from CDN thread

    Created by: Mayank Sharma on 13-12-2010 02:05:35 PM
    Is there a way I can enable web access to phones using AXL?
     
    Thanks,
    Max

    Subject: RE: Enable Web Access to Phones
    Replied by: David Staudt on 13-12-2010 05:09:22 PM
    This can be done via <updatePhone> and the <vendorConfig> field.  There are some quirks when dealing with this field, check out some of the previous threads: http://developer.cisco.com/web/axl/forums/-/message_boards/search?_19_redirect=/web/axl/forums&_19_breadcrumbsCategoryId=0&_19_searchCategoryIds=0&_19_keywords=vendor+config
     

    Subject: RE: Enable Web Access to Phones
    Replied by: David Staudt on 13-12-2010 09:34:12 PM
    It's possible you will need to perform a  <doDeviceReset> with soft or hard reset to effect the changes.

    Subject: RE: Enable Web Access to Phones
    Replied by: Mayank Sharma on 13-12-2010 08:52:11 PM
    This can be done via <updatePhone> and the <vendorConfig> field.  There are some quirks when dealing with this field, check out some of the previous threads: http://developer.cisco.com/web/axl/forums/-/message_boards/search?_19_redirect=/web/axl/forums&_19_breadcrumbsCategoryId=0&_19_searchCategoryIds=0&_19_keywords=vendor+config
     

     
    David-
     
    Thanks. That helped. This is my code:
     

      XIPPhone phone = CcmDataAccess.GetPhone(macAddress);
                XVendorConfig vendorConfig = phone.vendorConfig;
     
                foreach (XmlNode node in vendorConfig.Any)
                {
                    if (node.Name.ToLower() == "webaccess")
                    {
                        node.InnerText = "1";
                        break;
                    }
                }
     
                UpdatePhoneReq req = new UpdatePhoneReq();
                req.ItemElementName = ItemChoiceType28.uuid;
                req.Item = pkid;
     
                req.vendorConfig = vendorConfig;
                Globals.myService.updatePhone(req);

     
    Now this code changes the webAccess value, but I believe I have to apply the config. Do you know how to to that?
     
    Thanks,
    Max

    Subject: RE: Enable Web Access to Phones
    Replied by: Mayank Sharma on 13-12-2010 09:55:02 PM
    That works. Thanks a lot.
    Max