cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
370
Views
0
Helpful
0
Replies

CUCM AXL API addPhone failed with "Product Does Not support Activatio"

wang-yu
Level 1
Level 1

I'm using AXL API 12.5 with C# and ASP.NET Core.

Trying to add phone by calling the method addPhoneAsync.

Step 1): construct the XPhoneLine object with all necessary information

var phoneLine = new XPhoneLine
        {...

Step 2): construct the XPhone object with all necessary information

 XPhone phoneToAdd = new()
        {...

Step 3): construct the AddPhoneReq object

        AddPhoneReq addPhoneReq = new() { phone = phoneToAdd };

Step 4): calling addPhoneAsync with the above as input

var addPhoneResp = await _client.addPhoneAsync(addPhoneReq);

the proxy added this <mraServiceDomain/> in the request body, which is causing the following error

- "Product Does Not support Activation Code Based Registration feature".

Tried the same request body in Postman and explicitly deleted the <mraServiceDomain/> tag, it worked fine.

If I call getPhone on the same phone added, i can see <mraServiceDomain/> in the response (together with a lot of other tags).

There seems no way I can control how the proxy forms the request body. Any suggestion how I can get the addPhoneAsync to work?

Thank you

0 Replies 0