Created by: Abhishek Goud on 07-10-2009 09:23:43 AM I am trying to add another line to an existing phone, while the line configuration is successfully changing from 2L 4S (2 Lines 4 Speed Dials) to 3L 3S (3 Lines 3 Speed Dials), I am unable to add my new extension number to the THIRD LINE. It throws an Exception Error message : "No UPDATE Permission". This is my code for Updating the Phone : (After querying the existing lines of the phone) AXLAPIService oXL = new AXLAPIService(_host, _axlUsername, _axlPassword);<font size="2"> </font> UpdatePhoneReq uPhone = new UpdatePhoneReq(); <font size="2"> </font> UpdatePhoneReqLines _lines = new UpdatePhoneReqLines(); <font size="2"> uPhone.ItemElementName = </font> ItemChoiceType28.name; uPhone.Item = maci.ToString(); <font size="2"> uPhone.Item8ElementName = I </font>
tem8ChoiceType.phoneTemplateName;<font size="2"> uPhone.Item8 = </font> "7960 3L 3S";<font size="2"> </font> XLine Linedetails = new XLine(); oXL.updatePhone(uPhone); <font size="2"> Response.Write( </font> "The Phone has 3 lines NOW");<font size="2"> Response.Write( </font>
Subject: RE: Error : "No UPDATE Permission" - AXL API Service Replied by: Stephan Steiner on 07-10-2009 01:16:39 PM with all the font tags it's pretty hard to read what you're doing. I'm wondering though.. are you changing the phone button template concurrently with adding the third line (that I presume you have already created)? I could imagine this not being supported since you cannot do it via ccmadmin either. Does it work when you first change the phone button template and add the line thereafter? Also, if you look at the axl logs from the CCM (set it to debug mode) what do you see? You should see a bunch of SQL statements followed by one or multiple exceptions before the error is being sent back to you.
Subject: RE: Error : "No UPDATE Permission" - AXL API Service Replied by: Abhishek Goud on 14-10-2009 07:13:48 AM Hi Stephen ... sorry to have included all those tags ... I really didn't know how to get rid of them ... anyway, I am successful in adding a 3rd Line to the phone ... as in changing the configuration from "2L 4S" to "3L 3S" ( I do this first ... invoking a separate service ) ... but when I want to assign a directory number to the 3rd line (this is a later separate service request), I am getting the error exception message "No UPDATE Permission" ... now, I am assuming that apparently the service is still active and is still querying ("keep alive") so that is why, maybe (again this is an assumption), I haven't got the right to update the line details. I am using first the following code to change the phone button template: AXLAPIService oxl = new AXLAPIService(_host, _axlusername, _axlpassword); UpdatePhoneReq uPhone = new UpdatePhoneReq(); UpdatePhoneReqLines _lines = new UpdatePhoneReqLines(); uPhone.ItemElementName = ItemChoiceType28.name; uPhone.Item = mac.ToString(); //I pass the mac address of the phone that I want updated here uPhone.Item8ElementName = Item8ChoiceType.phoneTemplateName; uPhone.Item8 = "7960 3L 3S"; oxl.updatePhone(uPhone); This happens successfully and the template is changed. Then, in the second loop, after this is completed, I try running the code for adding a directory number for third line. This is where the problem occurs: UpdatePhoneReq upPhone = new UpdatePhoneReq(); UpdatePhoneReqLines _lines1 = new UpdatePhoneReqLines(); XLine line = new XLine(); XNPDirectoryNumber newnum = new XNPDirectoryNumber(); upPhone.Item = mac.ToString(); line.index = "3"; newnum.pattern = TextBox2.Text; line.Item = newnum; object itemsfield1 = new object; itemsfield1.SetValue(line, 3); lines1.Items = itemsfield1; upPhone.lines = lines1; oxl.updatePhone(upPhone);
Greetings, Using CUPI on Unity Connection 11.5 I need to change the Unified Messaging service for users as they move from one email system to another. I am not finding an API call to do that. Any help would be appreciated. Thanks, Mike
Hi,I am doing test on Test Case B.2.3 Call Forward Always with Diversion Inhibitor and I found there is no Diversion Inhibitor from Call Center call. See capture attachedI checked Call Center Diversion Inhibitor service assigned. Is there othe...
Hi Guys,I want to automate Jabber device creation on my environment and I'm just getting started on AXL. I found some AXL example code to add new directory number into CUCM, but it lacks some of the attributes like alerting name, call forward all, etc. Ca...
Hello, For a customer , we want to integrate the cucm telephony presence status into a web application (sort of phonebook).In DEVNET I found out that there are many ways to do this.Can anyone help me what the best way of working is to get this info?