NOt able to add the gatekeeper column in CUCM APi

Version 1
    This document was generated from CDN thread

    Created by: gnana desigan on 11-11-2013 07:34:19 AM
    Dear all,
      What is the defaul.t value for the ipaddress and the nam efor Cisco unified communication manager Device menu Gatekeeper menu . I am getting null value to insert like error. we are using axl api for this process

    Subject: RE: NOt able to add the gatekeeper column in CUCM APi
    Replied by: David Staudt on 12-11-2013 04:43:47 PM
    Can you provide some more details about the type of operation you are trying to perform, and include the AXL request/response?

    Subject: RE: NOt able to add the gatekeeper column in CUCM APi
    Replied by: gnana desigan on 13-11-2013 03:08:50 AM
    David Staudt:
    Can you provide some more details about the type of operation you are trying to perform, and include the AXL request/response?

    Dear david.
       Thank you for your response . Now i was able to add gate keeper. using code. we used Addgatekeeperreq class. to add .


    private static void addgatekeeper(string ipaddress, string desc, bool enabledevice)
            {
                AXLAPIService axlApiService = new AXLAPIService();
                string responsemsg = string.Empty;
                ipaddress = "10.10.20.30";
                desc = "newly added";
                try
                {
                    AddGatekeeperReq request = new AddGatekeeperReq();
                    XGatekeeper gkeep = new XGatekeeper();
                    gkeep.enableDevice = "enabledevice";
                    gkeep.name = ipaddress;
                    gkeep.description = desc;
                    gkeep.retryTimeout = "300";
                    gkeep.rrqTimeToLive = "60";
                    request.gatekeeper = gkeep;
                    StandardResponse response = axlApiService.addGatekeeper(request);
                    // request.gatekeeper.name = "192.168.0.21";                
                }
                catch (Exception ex)
                {
                   // MessageBox.Show(ex.Message);
                    responsemsg = ex.InnerException == null ? ex.Message.ToString() : ex.InnerException.ToString();
                }

                //MessageBox.Show("Success !");
                responsemsg = "Gatekeeper created successfully";

            }