Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUCM v12.5 requires "Location" to be defined #47

Open
matrix452 opened this issue Dec 3, 2020 · 3 comments
Open

CUCM v12.5 requires "Location" to be defined #47

matrix452 opened this issue Dec 3, 2020 · 3 comments

Comments

@matrix452
Copy link

When using the script against a CUCM node v12.5 and you attempt to add a phone you get the following error:

WARNING: [13:13:15][Invoke-PSCUCMAxlQuery] Failed to execute AXL entity addPhone. AXL Error: Cannot insert a null into
column (device.fklocation). (-391) | The remote server returned an error: (500) Internal Server Error.

It appears that the "$locationName" variable needs to either be defaulted or have a switch to allow you to add that in order for the command to work.

@corbob
Copy link
Owner

corbob commented Dec 3, 2020

Is this the New-PSCUCMPhone function? Or is this directly calling Invoke-PSCUCMAxlQuery? I'll have to take a look at the code and if Cisco has a sandbox CUCM 12.5 as all my work was for 11.5 as that's the environment I administered.

@matrix452
Copy link
Author

I'm sorry, i forgot to put all the relevent information, it is on a v12.5 SU3 box. The command being run (after connecting) is:
Add-PSCUCMPhone -Name "CSFZBSmith" -Product "Cisco Unified Services Framework" -DevicePoolName "Default" -Protocol "SIP"
Then i get the error above.

@corbob
Copy link
Owner

corbob commented Dec 4, 2020

Once I figured out that the Product needed the word Client in there, I was able to reproduce this in a DevNet SandBox. I found that removing the Location completely allowed the command to add the phone. I've pushed this as a minor release to the Gallery. I'd really like to flesh this command out further and actually handle adding other things, I just haven't had the cycles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants