cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
598
Views
0
Helpful
1
Replies

updatePhone - missing validation on Index property on Line on CUCM 11.5

stephan.steiner
Spotlight
Spotlight

When you're updating a phone, you can use the addLines and removeLines tags to add/remove lines.

According to the documentation, there are three mandatory fields for a Line in this case.. dirn, index and recordingMediaSource.

Due to a bug in my code I was sending index = 0, which CUCM happily processed. The subsequent getPhone yielded the expected result.

But, in ccmadmin, you'd get an error because index 0 is not valid.. and so the line would not be displayed.

I think AXL should enforce a valid value on index.

And for some reason, despite recordingMediaSource being declared mandatory, it works just fine when you leave it out. I guess the doc should says it is optional after all.

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

Defect CSCvb26465 has been opened to track the <index> value validation issue.

The 11.5 schema here appears to show <recordingMediaSource> as optional:

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

<xsd:element name="recordingMediaSource" type="axlapi:XPreferredMediaSource" default="Gateway Preferred" minOccurs="0" maxOccurs="1"/>