addPhone - major issues with busyLampField and directedCallParks

Version 1
    This document was generated from CDN thread

    Created by: Stephan Steiner on 30-09-2013 12:36:07 PM
    Let's start with the latter

    For a getPhone, CUCM returns

    <blfDirectedCallParks><blfDirectedCallPark><label>test-callpark</label><directedCallParkId>ed284fa9-aacf-24cd-e6b6-dbb9836a9d6e</directedCallParkId><labelAscii>test</labelAscii><index>1</index></blfDirectedCallPark></blfDirectedCallParks>

    The documentation however says that a XPhone/blfDirectedCallParks/blfDirectedCallPark contains either a directedCallParkId which is of type XUUID, or a directedCallParkDnAndPartition (which again consists of a dnPattern and optional routePartitionName).
    So if I add the exact same string to an addPhone, I get this error from the database layer:

    Description: No directedCallParkId or directedCallParkDNAndPartition tag found, Error Code: DBL error

    Umm.. say what is missing?

    For BLFs, it's a different story... I have a phone that needs one blf that contists of a destination, and another that has a dirn and partition. getPhone returns it as

    <busyLampFields><busyLampField> <blfDest/> <blfDirn>7303</blfDirn> <routePartition>p_internal</routePartition> <label/> <asciiLabel/><associatedBlfSdFeatures> <feature>Pickup</feature> </associatedBlfSdFeatures> <index>1</index> </busyLampField><busyLampField> <blfDest>7503</blfDest> <blfDirn/> <routePartition/> <label>blf 7305</label> <asciiLabel>blf 7305</asciiLabel> <associatedBlfSdFeatures/> <index>2</index> </busyLampField> </busyLampFields>

    If I send this, CUCM returns this error:
    Description: Either an existing internal DN or an external destination can be specified for BLF Speed Dial, but not both.

    I eventually managed to get rid of the blf error by not sending blfDest when I have a blfDirn, and vice versa (also leaving out routePartition if I have a blfDest), but I'm still trying and erroring to find a workable solution for the directed call park.

    Here's the full request as seen by the CUCM (taken from the AXL trace):

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body> <axl:addPhone xmlns:axl="http://www.cisco.com/AXL/API/9.1"  xsi:schemaLocation="http://www.cisco.com/AXL/API/9.1 http://ccmserver/schema/axlsoap.xsd" sequence="1234"> <phone><name>SEP110000000012</name><description>an updated phone</description><product>Cisco 7975</product><class>Phone</class><protocol>SIP</protocol><protocolSide>User</protocolSide><callingSearchSpaceName uuid="{3AAA1E94-19B3-8A53-EDD0-B42D01A2E851}">c_all</callingSearchSpaceName><devicePoolName uuid="{1B1B9EB6-7803-11D3-BDF0-00108302EAD1}">Default</devicePoolName><commonDeviceConfigName></commonDeviceConfigName><commonPhoneConfigName uuid="{AC243D17-98B4-4118-8FEB-5FF2E1B781AC}">Standard Common Phone Profile</commonPhoneConfigName><networkLocation>Use System Default</networkLocation><locationName uuid="{C7E2C026-54B3-55DD-A0A2-D649501F9929}">Phantom</locationName><mediaResourceListName uuid="{50A85154-76A5-9B9E-5778-D60BFBFF1058}">MRGL_all_sw</mediaResourceListName><networHoldMohAudioSourceId>1</networHoldMohAudioSourceId><userHoldMohAudioSourceId>1</userHoldMohAudioSourceId><automatedAlternateRoutingCssName uuid="{6B060A31-A952-FB93-EC47-E9151488BCC9}">c_internal</automatedAlternateRoutingCssName><aarNeighborhoodName></aarNeighborhoodName><loadInformation special="false">SIP75.9-3-1SR1-1S</loadInformation><versionStamp>{1380559011-99339414-C6F1-44A6-858C-D40DD672839E}</versionStamp><traceFlag>false</traceFlag><mlppIndicationStatus>Off</mlppIndicationStatus><preemption>Disabled</preemption><useTrustedRelayPoint>Default</useTrustedRelayPoint><retryVideoCallAsAudio>true</retryVideoCallAsAudio><securityProfileName uuid="{5186F831-CC5B-4D35-B057-6FF607F162D4}">Cisco 7975 - Standard SIP Non-Secure Profile</securityProfileName><sipProfileName uuid="{FCBC7581-4D8D-48F3-917E-00B09FB39213}">Standard SIP Profile</sipProfileName><cgpnTransformationCssName></cgpnTransformationCssName><useDevicePoolCgpnTransformationCss>true</useDevicePoolCgpnTransformationCss><geoLocationName></geoLocationName><geoLocationFilterName></geoLocationFilterName><sendGeoLocation>false</sendGeoLocation><lines><line><index>1</index><label>läinetextläibel</label><asciiLabel>linetextlabel</asciiLabel><display>displäi</display><dirn uuid="{851FEF20-AAB9-FA3D-0798-713589ED8AA8}"/><ringSetting>Ring</ringSetting><consecutiveRingSetting>Disable</consecutiveRingSetting><ringSettingIdlePickupAlert>Disable</ringSettingIdlePickupAlert><ringSettingActivePickupAlert>Beep Only</ringSettingActivePickupAlert><displayAscii>display</displayAscii><e164Mask>058777XXXX</e164Mask><mwlPolicy>Light and Prompt</mwlPolicy><maxNumCalls>4</maxNumCalls><busyTrigger>3</busyTrigger><callInfoDisplay><callerName>true</callerName><callerNumber>false</callerNumber><redirectedNumber>false</redirectedNumber><dialedNumber>true</dialedNumber></callInfoDisplay><recordingProfileName></recordingProfileName><monitoringCssName></monitoringCssName><recordingFlag>Call Recording Disabled</recordingFlag><audibleMwi>Default</audibleMwi><speedDial></speedDial><partitionUsage>General</partitionUsage><missedCallLogging>true</missedCallLogging></line></lines><phoneTemplateName uuid="{C3838894-0929-476E-8E13-5077FE55FD1C}">Standard 7975 SIP</phoneTemplateName><speeddials><speeddial><dirn>7300</dirn><label>sd-test</label><asciiLabel>sd-test-ascii</asciiLabel><index>1</index></speeddial><speeddial><dirn>7301</dirn><label>sd-test2</label><asciiLabel>7301</asciiLabel><index>2</index></speeddial></speeddials><busyLampFields><busyLampField><blfDirn>7303</blfDirn><routePartition>p_internal</routePartition><label></label><asciiLabel></asciiLabel><associatedBlfSdFeatures><feature>Pickup</feature></associatedBlfSdFeatures><index>1</index></busyLampField><busyLampField><blfDest>7503</blfDest><label>blf 7305</label><asciiLabel>blf 7305</asciiLabel><index>2</index></busyLampField></busyLampFields><primaryPhoneName></primaryPhoneName><ringSettingIdleBlfAudibleAlert>Default</ringSettingIdleBlfAudibleAlert><ringSettingBusyBlfAudibleAlert>Default</ringSettingBusyBlfAudibleAlert><blfDirectedCallParks><blfDirectedCallPark><label>test-callpark</label><directedCallParkId>ed284fa9-aacf-24cd-e6b6-dbb9836a9d6e</directedCallParkId><labelAscii>test</labelAscii><index>1</index></blfDirectedCallPark></blfDirectedCallParks><addOnModules><addOnModule><loadInformation special="false">SIP75.9-3-1SR1-1S</loadInformation><model>7914 14-Button Line Expansion Module</model><index>1</index></addOnModule></addOnModules><userLocale>German Germany</userLocale><networkLocale>Germany</networkLocale><idleTimeout></idleTimeout><authenticationUrl></authenticationUrl><directoryUrl>http://myappserver/Directory</directoryUrl><idleUrl></idleUrl><informationUrl>gugus</informationUrl><messagesUrl></messagesUrl><proxyServerUrl></proxyServerUrl><servicesUrl></servicesUrl><services><service><telecasterServiceName uuid="{7786EC86-6B85-1837-BA91-5118A57DEA13}">CiscoPhonebook</telecasterServiceName><name>CiscoPhonebook</name><url>http://10.145.6.210:8009/Default.aspx</url><urlButtonIndex>0</urlButtonIndex><urlLabelAscii></urlLabelAscii><serviceNameAscii>CiscoPhonebook</serviceNameAscii></service><service><telecasterServiceName uuid="{27F92F3C-11ED-45F3-8400-FE06431C0BFC}">Intercom Calls</telecasterServiceName><name>Intercom Calls</name><url>Application:Cisco/IntercomCalls</url><urlButtonIndex>0</urlButtonIndex><urlLabelAscii></urlLabelAscii><serviceNameAscii>Intercom Calls</serviceNameAscii></service><service><telecasterServiceName uuid="{78C54ECF-8AFF-9332-3A8D-1BA4DDE34396}">HuntGroupManager</telecasterServiceName><name>HuntGroupManager</name><url>http://10.145.18.28:8084/HuntGroupManager/index.jsp?device=#DEVICENAME#&defaultGroup=test</url><urlButtonIndex>0</urlButtonIndex><urlLabelAscii></urlLabelAscii><serviceNameAscii>HuntGroupManager</serviceNameAscii></service></services><softkeyTemplateName uuid="{72F64050-7AD5-4B47-9BFA-5E9AD9CD4AA9}">Standard User</softkeyTemplateName><defaultProfileName></defaultProfileName><enableExtensionMobility>true</enableExtensionMobility><singleButtonBarge>Default</singleButtonBarge><joinAcrossLines>Default</joinAcrossLines><builtInBridgeStatus>On</builtInBridgeStatus><callInfoPrivacyStatus>On</callInfoPrivacyStatus><hlogStatus>On</hlogStatus><ownerUserName></ownerUserName><ignorePresentationIndicators>false</ignorePresentationIndicators><packetCaptureMode>None</packetCaptureMode><packetCaptureDuration>0</packetCaptureDuration><subscribeCallingSearchSpaceName></subscribeCallingSearchSpaceName><rerouteCallingSearchSpaceName></rerouteCallingSearchSpaceName><allowCtiControlFlag>true</allowCtiControlFlag><presenceGroupName uuid="{AD243D17-98B4-4118-8FEB-5FF2E1B781AC}">Standard Presence group</presenceGroupName><unattendedPort>false</unattendedPort><requireDtmfReception>false</requireDtmfReception><rfc2833Disabled>false</rfc2833Disabled><certificateOperation>No Pending Operation</certificateOperation><upgradeFinishTime></upgradeFinishTime><deviceMobilityMode>Off</deviceMobilityMode><remoteDevice>false</remoteDevice><dndOption>Call Reject</dndOption><dndRingSetting>Disable</dndRingSetting><isActive>true</isActive><isDualMode>false</isDualMode><mobilityUserIdName></mobilityUserIdName><phoneSuite>Enabled</phoneSuite><phoneServiceDisplay>Both</phoneServiceDisplay><isProtected>false</isProtected><mobileSmartClientProfileName></mobileSmartClientProfileName><mtpRequired>false</mtpRequired><mtpPreferedCodec>711ulaw</mtpPreferedCodec><dialRulesName></dialRulesName><sshUserId></sshUserId><digestUser></digestUser><outboundCallRollover>No Rollover</outboundCallRollover><hotlineDevice>false</hotlineDevice><secureInformationUrl></secureInformationUrl><secureDirectoryUrl></secureDirectoryUrl><secureMessageUrl></secureMessageUrl><secureServicesUrl></secureServicesUrl><secureAuthenticationUrl></secureAuthenticationUrl><secureIdleUrl></secureIdleUrl><alwaysUsePrimeLine>Default</alwaysUsePrimeLine><alwaysUsePrimeLineForVoiceMessage>Default</alwaysUsePrimeLineForVoiceMessage><featureControlPolicy></featureControlPolicy><deviceTrustMode>Not Trusted</deviceTrustMode><requireOffPremiseLocation>false</requireOffPremiseLocation></phone></axl:addPhone> </SOAP-ENV:Body> </SOAP-ENV:Envelope>