Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

AXL query

Hello,

I have a problem, I want to display on my form the phone's description instead of the SEP address.

This is my code :

<%

var phones = axlquery("listPhoneByDescription", "<searchString>%richard%</searchString>", callManager, callManagerUserId, callManagerPassword);

//var phones = axlquery("listPhoneByName", "<searchString>SEP%</searchString>", callManager, callManagerUserId, callManagerPassword);

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");

xmlDoc.loadXML(phones);

var objNodeList = xmlDoc.selectNodes("//name");

for (i=0; i<objNodeList.length; i++)

{

Response.Write("<option>"+objNodeList.item(i).text+"</option>");

}

%>

I think that this line can be the problem but I'm not sure :

xmlDoc.selectNodes("//name");

Somebody can help me?

1 REPLY
New Member

Re: AXL query

I think the problem is both listPhoneBy methods above return the same info, neither actually return the phone description. You'll probably need to loop through the results and do a getPhone to pull the actual description.

This response is returned by the listPhoneByXXX methods. It includes the phone GUID, name, and product.

142
Views
0
Helpful
1
Replies
CreatePlease to create content