cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
603
Views
1
Helpful
3
Replies

addPhone via PHP throws Errors

Marcel Brode
Level 1
Level 1

Hi there.

I want to add a Phone via PHP to theCUCM via AXL SOAP. Unfortunately, its not as easy as it was with addUser.

$phone=array("phone"=>array(

     "name"=>"SEP111111111111",

     "product"=>"Cisco 8851",

     "model"=>"Cisco 8851",

     "class"=>"phone",

     "protocol"=>"SCCP",

     "protocolSide"=>"User",

     "commonPhoneConfigName"=>"Standard Common Phone Profile",

     "locationName"=>"LO_231",

     "useTrustedRelayPoint"=>"Default",

     "builtInBridgeStatus"=>"Default",

     "packetCaptureMode"=>"None",

     "certificatedOperation"=>"No Pending Operation",

     "deviceMobilityMode"=>"Default"));

$client->addPhone($phone);

Thats my only code. I found Documents telling me that just "name" is required and figured via Errors that lots of properties where missing, so that i ended up with that List. Now, after $phone is like this code, it tells me something different_

"SoapFault: SoapFault exception: [soapenv:Server] ENUM for phone not found in TypeClass in <Path>:16 Stack trace: #0 <Path>(16): SoapClient->__call('addPhone', Array) #1 <AnotherPath>(78): require_once(<AnotherPath>) #2 {main}"

I had to type the exception myself, so changed the 2 different Paths like you can see.

I'm a Newb to this, googled a lot and need this information for my final project. Can Anyone help me?

1 Accepted Solution

Accepted Solutions

3 Replies 3

dstaudt
Cisco Employee
Cisco Employee

Can you try with class as 'Phone' instead of 'phone'..?

If that will work tomorrow, i'll go crazy... Thanks for the hint! Hope that will solve everything!

Sorry, I meant line 5:

"class"=>"phone",

You can get the full list here:

https://developer.cisco.com/media/axl-schema-11-5/Files/AXLSoap_XClass.html#Link96