cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4576
Views
5
Helpful
1
Replies

CUCM - AddPhone AXL

Hello all,

 

I am trying to automate the user creation process. Actually it is more the device creation that are associated with the users, since the actual users are automatically added to CUCM DB through LDAP integration. Each user has a UDP, and 3 Devices (TCT,CSF,BOT)

 

At the moment, I am using CSV files, which I upload to the Call Manager, and based on themplates that I have specified, I can get the devices/profiles for each user.

 

When the first CSV file runs with the  BULK Administraton tool, a phone device is created, a line is assigned into it and also a user is associated with the phone.

 

I am trying to find a simpler way if possibly by using SOAP APIs. My dev skills are below zero.
I have followed the AXL Cookbook and I have managed to create phones and lines.


Is it possible to have a template phone where I can simply reference to it and create new phones based on that or actually what is the best approach, from where shall I start :)

 

Any feedback would be highly appreaciated

Thank you

 

1 Reply 1

Mamdouh Elgamal
Level 1
Level 1

I've done something similar to automate phone creation process.

 

script did something like that:

- start off creating the line or lines needed per phone

      - construct the xml soap message

      - use a https library to send the a POST request xml data

      - wait for a response back from cucm that request was successful

- create the phone object

     - construct xml

     - use https library to send request

     - wait for response back

     - if the phone already eixists, send a removePhone request and add phone (personal preference)

- if this is a user phone, send a updateUser request to associate the user with devices

     - same as above, construct xml.. etc..

 

i would recommend spending sometime understanding SOAP and https POST/GET etc

 

what you're looking to do will mostly use the addPhone, addLine, updateUser objects in axl api.

 

SOAPUI can be a good way to learn the API requests. it requires no programming, but teaches you the request/response process. this is very helpful before writing any code.

 

next step is picking a programming language and build a script.

 

technically, any language can get the job done. but a potentially easier way to get started, is to learn some java, extract the AXL wsdl in eclipse IDE and use the generated code to send requests.

 

if you need to t-shoot, check axl logs in RTMT. it will show exactly what you are sending CUCM.

 

hope that helps