Using Phone Templates

Version 1
    This document was generated from CDN thread

    Created by: Jacob Munson on 02-07-2012 09:49:01 AM
    Hello all,
     
    I am just starting to play with AXL and an idea I have had for a while for phone administration. I am wondering if its posible to reference phone templates in the BAT secion of CCM admin when adding a phone through AXL?

     
    Also as I said I am new to this so I am still trying to understand the CUCM admin XML Interface Spec. Is there a document somewhere that explains how to use it. for example what's the difference between Elements, Complex types, and Simple types?
     
    Thank you for the help
    Jacob.

    Subject: RE: Using Phone Templates
    Replied by: David Staudt on 11-09-2012 06:21:08 PM
    It looks like the BAT templates of each type (e.g. phone) are stored in their respective tables in UCM, but marked as template types.  For example:
     
    >run sql select name from device where tkclass = 253
     
    will return all of the BAT phone templates.  ('253' in the 'typeclass' table is 'Phone Template')
     
    You could then use AXL GetPhone to retrieve the details of a particular template, and use those settings in an AXL addPhone request.
     
    There is no way to 'shortcut' filling out the addPhone fields by just specifying the template name...

    Subject: RE: Using Phone Templates
    Replied by: Pradeep P V N on 07-12-2012 09:01:42 AM
    How to add phone using Phone Template in CUCM 9 using C#?

    Subject: RE: Using Phone Templates
    Replied by: Fouad Mouffok on 14-12-2012 10:42:36 AM
    Hi,
    I'm trying to achieve the same thing. I'm not using a BAT phone template but a simple device. The idea is to create a new device by copying another one, just changing some properties like DN, MAC, ...
    Using C# and the Proxy class, I'm unable to fill my new device (XPhone) with the properties of the device template which I got from an AXL Getphone Request(RPhone). Explicit and Implicit Casting isn't working between XPhone and RPhone. :-(
    E.g: Xphone.Xbusylampfieds=RPhone.Xbusylampfields or Xphone.lines=RPhone.lines
    How are you handling this in your code?
    any example is welcome
    Regards,
    ./WM

    Subject: RE: Using Phone Templates
    Replied by: David Staudt on 14-12-2012 01:51:53 PM
    Crossposted: http://developer.cisco.com/web/axl/community/-/message_boards/view_message/9382619