cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1272
Views
0
Helpful
3
Replies

How do I Push Phone Templates via AXL

Joseph Jacobs
Level 4
Level 4

Hi all, CUCM 10.5.2SU2a.

I can do a getPhone axl Call and get phone templates out of the database

          <phone ctiid="89" uuid="{83179891-17A2-D718-3A50-79F654881318}">

               <name>joetest</name>

               <description/>

               <product>Cisco 7821</product>

               <model>Cisco 7821</model>

               <class>Phone Template</class>

               <protocol>SIP</protocol>

But when i tried to build an push a Phones as a template via AXL using the addPhone AXL Call I keep getting the following message:

<axlmessage>Security Profile is required for this device</axlmessage>



I have the Security Profile defined.  I keep getting this no matter what I do.  If I even take the getPhone request, clean it up, and just try to add a new Template with a different name, i get the same thing.


Has anybody found a way to push BAT Phone Templates via AXL?

3 Replies 3

dstaudt
Cisco Employee
Cisco Employee

Unfortunately it appears that creating phone templates - or really managing any other kind of BAT-related resource - is not supported by AXL.  Perhaps the assumption is that automated/bulk provisioning is covered by using the regular AXL commands, and that concepts like resource 'templates' are left to the application to implement as higher-level features above AXL.

Note, it may be possible to manipulate phone template device types via raw SQL and <executeSqlQuery/Update>

thedd
Level 1
Level 1

You want to add a Phone via AXL or what?

Have a look at "addPhone" and start buildiung your XML part only with the Tags you need to provide:

  • name
  • product
  • class
  • protocol
  • protolSide
  • devicePoolName
  • commonPhoneConfigName
  • locationName
  • useTrustedRelayPoint
  • phoneTemplateName
  • builtInBridgeStatus
  • packetCaptureMode
  • certificateOperation
  • deviceMobilityMode

If the addPhone request works with the manatory Information you can add more Data to your XML part

The XML should be looking similar to this (I did not check if all required Tags are included):

<phone>

<name>SEP000123456789</name>

<description>SEP000123456789</description>

<product>Cisco 7945</product>

<model>Cisco 7945</model>

<class>Phone</class>

<protocol>SCCP</protocol>

<protocolSide>User</protocolSide>

<callingSearchSpaceName/>

<devicePoolName>Dummy1</devicePoolName>

<commonDeviceConfigName>DE</commonDeviceConfigName>

<commonPhoneConfigNameStandard> Common Phone Profile</commonPhoneConfigName>

<networkLocation>Use System Default</networkLocation>

<locationName>Hub_None</locationName>

<mediaResourceListName/>

<networkHoldMohAudioSourceId/>

<userHoldMohAudioSourceId/>

<automatedAlternateRoutingCssName/>

<aarNeighborhoodName/>

<softkeyTemplateName/>

<loginUserId/>

<defaultProfileName/>

<enableExtensionMobility>true</enableExtensionMobility>

<currentProfileName/>

<loginTime/>

<loginDuration/>

</phone>

I want to add a phoneTemplate via AXL.

If we could push in Phone Templates via AXL, we could automate not just the deployment of our phones, we could also standardize the way we deploy phones as well.

Right now our installers have to build phone templates by hand for each new customer.  Trying to find a way to automate that process along with the rest of the initial UC environment setup.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: