07-27-2018 02:00 AM
Hi guys,
I'm trying to add a new TCT device by AXL. Basically it work for me but I cannot figure out how to set the emergency numbers.
If I create the device manually on CUCM via GUI and read then the phone by AXL
echo "vendorConfig ".$response->return->phone->vendorConfig->any;
I get this result 0100110000999,911,112,01
The string reflect this settings:
1 Allow End User Configuration Editing
1 Cisco Usage and Error Tracking
0 Enable Sip Digest Authentication
0 Dial via Office
1 Enable Voice Dialing Motion
1 Add Voice Dialing to Favorites
0 Sign In Feature
1 Transfer to Mobile Network
0 Enable LDAP User Authentication
0 Enable LDAP SSL
999,911,112 Emergency Numbers
0 Default Ringtone
1 Video Capabilities
Now I try to change the value by AXL
$response = $client->UpdateCommonPhoneConfig(array("name"=>"TCTTEST","description"=>"tes2323t","vendorConfig"=>array("any"=>"0100110000999,911,112,11001")));
The description field will change but the emergency number or any other vendorConfig specific items do not change.
What do I wrong?
Thanks
filip
Solved! Go to Solution.
10-12-2018 06:54 AM
Well, we figured out the right code:
$response = $client->UpdatePhone(array("name"=>"TCTTEST","description"=>"tes2323t","vendorConfig"=>array("any"=>"<dialerEmergencyNumbers>999,911,112,110</dialerEmergencyNumbers>")));
<vendorConfig> <paramEditability>0</paramEditability> <cuetLevel>1</cuetLevel> <cucmUseSipDigest>0</cucmUseSipDigest> <dialViaOffice>0</dialViaOffice> <cucmUseVoiceDialing>1</cucmUseVoiceDialing> <cucmAddVoiceDialingNumberToFavorites>1</cucmAddVoiceDialingNumberToFavorites> <emEnabled>0</emEnabled> <cucmGSMHandoffPreference>1</cucmGSMHandoffPreference> <ldapUseLDAPUserAuthentication>0</ldapUseLDAPUserAuthentication> <ldapUseSSL>0</ldapUseSSL> <dialerEmergencyNumbers>999,911,112</dialerEmergencyNumbers> <Ringtone>0</Ringtone> <videoCapability>1</videoCapability> </vendorConfig>
Regards
filip
07-27-2018 07:50 AM
I think the real XML sent from the Call Manager has the Vendorconfig represented as XML , I think the vendorconfig is read as a concatenated string of values cause you are requesting what is inside the tag as text but it is really in XML form so you should get the XML form and do the change on it and send it back
10-12-2018 06:54 AM
Well, we figured out the right code:
$response = $client->UpdatePhone(array("name"=>"TCTTEST","description"=>"tes2323t","vendorConfig"=>array("any"=>"<dialerEmergencyNumbers>999,911,112,110</dialerEmergencyNumbers>")));
<vendorConfig> <paramEditability>0</paramEditability> <cuetLevel>1</cuetLevel> <cucmUseSipDigest>0</cucmUseSipDigest> <dialViaOffice>0</dialViaOffice> <cucmUseVoiceDialing>1</cucmUseVoiceDialing> <cucmAddVoiceDialingNumberToFavorites>1</cucmAddVoiceDialingNumberToFavorites> <emEnabled>0</emEnabled> <cucmGSMHandoffPreference>1</cucmGSMHandoffPreference> <ldapUseLDAPUserAuthentication>0</ldapUseLDAPUserAuthentication> <ldapUseSSL>0</ldapUseSSL> <dialerEmergencyNumbers>999,911,112</dialerEmergencyNumbers> <Ringtone>0</Ringtone> <videoCapability>1</videoCapability> </vendorConfig>
Regards
filip
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