09-13-2017 03:05 AM
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?
Solved! Go to Solution.
09-13-2017 03:17 PM
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
09-13-2017 07:51 AM
Can you try with class as 'Phone' instead of 'phone'..?
09-13-2017 02:53 PM
If that will work tomorrow, i'll go crazy... Thanks for the hint! Hope that will solve everything!
09-13-2017 03:17 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide