flag IsActive when Adding a phone

Version 1
    This document was generated from CDN thread

    Created by: Stefania Oliviero on 27-09-2013 02:45:06 AM
    When I try to add a phone with IsActive = false, Phone is added succesfully, but flag IsActive is true.

    Isn't it possible ?

    Subject: RE: flag IsActive when Adding a phone
    Replied by: Adrienne Moherek on 02-10-2013 05:37:22 PM
    Hi Stefania,

    Which version of CUCM and which version of AXL schema are you using?
    Can you provide me the request you are using?

    Thanks,
    Adrienne

    Subject: RE: flag IsActive when Adding a phone
    Replied by: Stefania Oliviero on 07-10-2013 03:58:18 AM
    HI Adrienne, CUCM version is 8.6.
    Schema is 8.5. We havewrapped the AXL wsdl in a Java container, ,by Eclispe, so we are using AddPhoneReq:
    ...
    item.setLines(lines);
    item.setIsActive("f");
    AddPhoneReq req = new AddPhoneReq();
    req.setPhone(item);
    StandardResponse res = connection.getAXLPort().addPhone(req);
    No error were returned, but flag is set to true. If I try to set to false the flag, after adding updating phone I received an error regarding licensing.

    Subject: RE: flag IsActive when Adding a phone
    Replied by: Adrienne Moherek on 15-10-2013 04:45:25 PM
    Hi Stefania,
    It would help me more if you could provide me the generated XML request that your app sends to CUCM. You can use something like Putty or Wireshark to capture the generated XML and just copy and paste the request here.

    What I want to see is something like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
        <soapenv:Header/>
        <soapenv:Body>
            <ns:addUser sequence="?">
                <user>
                    <firstName>Joe</firstName>
                    <lastName>Sample</lastName>
                    <userid>jsample</userid>
                    <password>password</password>
                    <pin>12345</pin>
                    <mailid>jsample@company.com</mailid>
                    <department>Marketing</department>
                    <manager>Jane Doe</manager>
                    <associatedDevices>
                        <device>SEPE8B7480316D6</device>
                    </associatedDevices>
                    <primaryExtension>
                        <pattern>1010</pattern>
                    </primaryExtension>
                </user>
            </ns:addUser>
        </soapenv:Body>
    </soapenv:Envelope>

    Thanks,
    Adrienne

    Subject: RE: flag IsActive when Adding a phone
    Replied by: David Staudt on 16-10-2013 02:38:20 PM
    It would also be good to understand the license situation for the cluster, i.e. are the sufficient user/device licenses to cover the provisioning of this next device?  What is the full error message that you receive?
    If system licenses have been exhausted, is the expectation that additional devices should be able to be provisioned via AXL as long as they are inactive..?
    The full AXL request/response (as well as additional internal AXL request processing details) can be viewed in the AXL service logs via RTMT:
    http://developer.cisco.com/web/axl-developer/gather-axl-logs
    Feel free to attach here if you don't spot anything.

    Subject: RE: flag IsActive when Adding a phone
    Replied by: Stefania Oliviero on 17-10-2013 04:57:16 AM
    Here you are my AXL request (in red flag isActive):
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:addPhone xmlns:ns2="http://www.cisco.com/AXL/API/8.5"><phone><name>BAT123012301231</name><description>BAT123012301231</description><product>Cisco 7965</product><class>Phone</class><protocol>SCCP</protocol><protocolSide>User</protocolSide><callingSearchSpaceName>TAPS</callingSearchSpaceName><devicePoolName>Default</devicePoolName><commonDeviceConfigName>DefaultCommonDevice</commonDeviceConfigName><locationName>Phantom</locationName><securityProfileName>Cisco 7965 - Standard SCCP Non-Secure Profile</securityProfileName><lines><line><index>1</index><label>Label</label><asciiLabel>label</asciiLabel><display>DisplayName</display><dirn><pattern>122</pattern><routePartitionName>All-IP-Phones</routePartitionName></dirn><displayAscii>DisplayAsciiName</displayAscii><e164Mask>0123456789</e164Mask><busyTrigger>1</busyTrigger></line></lines><phoneTemplateName>Standard 7965 SCCP</phoneTemplateName><softkeyTemplateName>Standard User</softkeyTemplateName><subscribeCallingSearchSpaceName>SUBSCRIBE-BLF-CSS</subscribeCallingSearchSpaceName><isActive>f</isActive></phone></ns2:addPhone></soap:Body></soap:Envelope>
    I also tried with "false" value but nothing has changed, devide is created with flag Active set to true.

    But looking for in the log files, i find the query:
    insert into Device ( fkCallingSearchspace_restrict,Description,tkDeviceProtocol,fkCommonDeviceConfig,tkStatus_MLPPIndicationStatus,tkProtocolSide,fkDevicePool,fkPhoneTemplate,fkLocation,Name,fkCallingSearchSpace,tkClass,tkdndoption,isprotected,pkid,fkSecurityProfile,fkSoftkeyTemplate,tkProduct ) values ( 'ce6d30e7-1281-f77a-c1e8-5e0c60c55fd2','BAT123012301231','0','d50b9801-53a0-1940-041c-82cbec8f06e4','2','1','1b1b9eb6-7803-11d3-bdf0-00108302ead1','1f1c33ec-e8cb-406c-a0ab-e03b28d5bf7a','c7e2c026-54b3-55dd-a0a2-d649501f9929','BAT123012301231','52df0533-3783-38b8-4936-f210b522a042','1','2','f','90b1a671-62ac-f31c-e5d9-98bfbcc3ea2e','779bd0d1-95f2-46dd-8ccf-bb0c034e7297','72f64050-7ad5-4b47-9bfa-5e9ad9cd4aa9','335' ) 

    Flag IsActive doesn't appear.
    I've attacched the log file.

    Subject: RE: flag IsActive when Adding a phone
    Replied by: Stefania Oliviero on 06-11-2013 05:57:33 AM
    David Staudt:
    It would also be good to understand the license situation for the cluster, i.e. are the sufficient user/device licenses to cover the provisioning of this next device?  What is the full error message that you receive?
    If system licenses have been exhausted, is the expectation that additional devices should be able to be provisioned via AXL as long as they are inactive..?
    The full AXL request/response (as well as additional internal AXL request processing details) can be viewed in the AXL service logs via RTMT:
    http://developer.cisco.com/web/axl-developer/gather-axl-logs
    Feel free to attach here if you don't spot anything.

    Licenses are sufficient and are not the problem. I don't receive any error, simply after I provisioned thephone with my tool, I see on CUCM Admin interface that phones is active even if I created it with flag set to false.
    I'm developing a provisioning tool, so my customer asked me to create phones with flag active =  false and then they manually activate after some checks.
    Any ideas ?

    Subject: RE: flag IsActive when Adding a phone
    Replied by: David Staudt on 06-11-2013 04:22:18 PM
    Spent awhile researching this item, and can confirm your observations.  I believe what is happening is that the 'isActive' status can be set to False when the phone is created only if it is provisioned via the UCM Bulk Administration Tool (BAT) using a dummy MAC address. 

    It appears that an analogous 'inactive provisioning' is not currently possible via AXL.