AXL : Some attributes are not return from listSipTrunk request

Version 1
    This document was generated from CDN thread

    Created by: cedric conte on 04-11-2013 04:49:51 AM
    Hi Folks,
     
    I’m currently designing an application which needs to show the list of sip trunk with the “name”, “description”, “destinationAddress” and “destinationport” attributes.
    I’m using the following code to do it.
     1[size=1]ListSipTrunkReq listSipTrunkReq = new ListSipTrunkReq();
     2                listSipTrunkReq.searchCriteria = new ListSipTrunkReqSearchCriteria();
     3                listSipTrunkReq.searchCriteria.description = "%";
     4                listSipTrunkReq.returnedTags = new LSipTrunk();
     5                listSipTrunkReq.returnedTags.name = "";
     6                listSipTrunkReq.returnedTags.description = "";
     7                listSipTrunkReq.returnedTags.destinationAddress = "";
     8                listSipTrunkReq.returnedTags.destinationport = "";
     9                ListSipTrunkRes listSipTrunkRes = axlApiService.listSipTrunk(listSipTrunkReq);
    10                int noOfSipTrunksListed = listSipTrunkRes.@return.Length;
    11                int i = 0;
    12                while (i < noOfSipTrunksListed)
    13                {
    14                    LSipTrunk obj = listSipTrunkRes.@return[i];
    15                    Console.WriteLine("name: {0} - DestinationAddress: {1} - {2} ", obj.name, obj.destinationAddress, obj.destinationport);
    16                    i++;
    17                }[/i][/size]
    Unfortunatly, the destinationAddress and destinationport attributs seems to be not process by the CUCM. Actually, I have checked on the cucm server the axl log file, and found out that the soap request includes these attributes <destinationAddress /><destinationport /> but the soap answer do not return them.
     
     1[i]2013-10-31 10:29:53,041 INFO  [http-bio-443-exec-24] servletRouters.AXLFilter - Received request 1383130526252 from snef at IP 10.0.1.1
     22013-10-31 10:29:53,043 INFO  [http-bio-443-exec-24] servletRouters.AXLFilter - AXL REQUEST :
     3
     4 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><listSipTrunk xmlns="http://www.cisco.com/AXL/API/9.1"><searchCriteria xmlns=""><name>%</name></searchCriteria><returnedTags xmlns=""><name /><description /><destinationAddress /><destinationport /><callerName /></returnedTags></listSipTrunk></soap:Body></soap:Envelope>
     5
     62013-10-31 10:29:53,050 INFO  [http-bio-443-exec-24] servletRouters.AXLAlpha - SOAPAction : "CUCM:DB ver=9.1 listSipTrunk"
     72013-10-31 10:29:53,050 INFO  [http-bio-443-exec-24] servletRouters.AXLAlpha - Going to axis--->
     82013-10-31 10:29:53,064 INFO  [http-bio-443-exec-24] servletRouters.AXLAlpha - Request processed by AXIS
     92013-10-31 10:29:53,064 INFO  [http-bio-443-exec-24] servletRouters.AXLFilter - <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:listSipTrunkResponse xmlns:ns="http://www.cisco.com/AXL/API/9.1"><return><sipTrunk uuid="{4360BB79-657F-6831-886F-ED976988DD9F}"><name>SIP001</name><description>TFNG Partoch;130927155024;{38C27FB9-0CCA-CF23-7903-EDF0A344928E}</description><callerName>SIP001</callerName></sipTrunk><sipTrunk uuid="{B7E4F9EE-97AC-0F6F-DDAF-A00AFBC54192}"><name>DEMO089</name><description>TFNG Partoch;130719083089;{C10D6AC2-0944-EFBF-192A-B17A9226C8DB}</description><callerName>DEMO089</callerName></sipTrunk><sipTrunk uuid="{A507F977-F454-9926-8375-AB83D1DCB39F}"><name>DEMO08</name><description>TFNG V2Partoch;130719083008;</description><callerName>DEMO08</callerName></sipTrunk><sipTrunk uuid="{CB229AA0-1130-B209-06AD-EAEC601F95AB}"><name>DEMO088</name><description>TFNG Partoch;130719083088;{403E20CC-6EDE-7142-791A-14FF8BDA1495}</description><callerName>DEMO088</callerName></sipTrunk><sipTrunk uuid="{D9A69A37-A79D-64D6-48C6-4B0D1DC8135A}"><name>DEMO090</name><description>TFNG Partoch;130719083090;{852DCE68-13E3-849C-89CC-FB8FF7B0CC8D}</description><callerName>DEMO090</callerName></sipTrunk><sipTrunk uuid="{23C8E570-9808-B16B-C7C7-91D45365964F}"><name>TFNG-CCO-UPD</name><description>CCO - Updating sipTrunk thru .Net Client</description><callerName/></sipTrunk></return></ns:listSipTrunkResponse></soapenv:Body></soapenv:Envelope>
    102013-10-31 10:29:53,065 INFO  [http-bio-443-exec-24] servletRouters.AXLFilter - Request 1383130526252 was process in 24ms
    1120[/i]
    Any help would be highly appreciated.

    Thanks in advance,

    Cedric


    Subject: RE: AXL : Some attributes are not return from listSipTrunk request
    Replied by: cedric conte on 04-11-2013 09:24:17 AM
    issue update :
    According the documentation (http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/devguide/9_1_1/axl.html) destinationAddress tag ans destinationport tag are deprecated since cucm 8.5. Henceforth, we have to use the destinations tag instead but it seem doesn’t work as well. Below, you will find the trace from the cucm 9.1 server. The request answser doesnt include the destinations tag.

    Is someone has already face this issue ?
     
    1 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><getSipTrunk xmlns="http://www.cisco.com/AXL/API/9.1"><uuid xmlns="">4360bb79-657f-6831-886f-ed976988dd9f</uuid><returnedTags uuid="" xmlns=""><name /><description /><product /><model /><class /><protocol /><protocolSide /><devicePoolName /><locationName /><versionStamp /><preemption /><securityProfileName /><sipProfileName /><geoLocationName /><presenceGroupName /><destinationAddress /><destAddrIsSrv /><destinationport /><sigDigits /><routeClassSignalling /><destinations /></returnedTags></getSipTrunk></soap:Body></soap:Envelope>
    22013-11-04 15:48:06,054 INFO  [http-bio-443-exec-13] servletRouters.AXLAlpha - SOAPAction : "CUCM:DB ver=9.1 getSipTrunk"2013-11-04 15:48:06,054 INFO  [http-bio-443-exec-13] servletRouters.AXLAlpha - Going to axis--->2013-11-04 15:48:06,137 INFO  [http-bio-443-exec-13] servletRouters.AXLAlpha - Request processed by AXIS2013-11-04 15:48:06,137 INFO  [http-bio-443-exec-13] servletRouters.AXLFilter - <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getSipTrunkResponse xmlns:ns="http://www.cisco.com/AXL/API/9.1"><return><sipTrunk uuid="{4360BB79-657F-6831-886F-ED976988DD9F}"><name>MP1</name><description>TFNG Partoch;130927155024;{38C27FB9-0CCA-CF23-7903-EDF0A344928E}</description><product>SIP Trunk</product><model>SIP Trunk</model><class>Trunk</class><protocol>SIP</protocol><protocolSide>Network</protocolSide><devicePoolName uuid="{1B1B9EB6-7803-11D3-BDF0-00108302EAD1}">Default</devicePoolName><locationName uuid="{C7E2C026-54B3-55DD-A0A2-D649501F9929}">Phantom</locationName><versionStamp>{1383572628-79A32354-C843-41BD-A21C-18791BDAE597}</versionStamp><preemption>Disabled</preemption><securityProfileName uuid="{0FD98C54-30BA-4BFD-83E7-EACFE1A2BEAE}">Non Secure SIP Trunk Profile</securityProfileName><sipProfileName uuid="{FCBC7581-4D8D-48F3-917E-00B09FB39213}">Standard SIP Profile</sipProfileName><geoLocationName/><presenceGroupName uuid="{AD243D17-98B4-4118-8FEB-5FF2E1B781AC}">Standard Presence group</presenceGroupName><destinationAddress /><destAddrIsSrv>false</destAddrIsSrv><destinationport /><sigDigits enable="false">99</sigDigits><destinationAddressIpv6 /><routeClassSignalling>Default</routeClassSignalling></sipTrunk></return></ns:getSipTrunkResponse></soapenv:Body></soapenv:Envelope>2013-11-04 15:48:06,138 INFO  [http-bio-443-exec-13] servletRouters.AXLFilter - Request 1383130526306 was process in 91ms
    Thanks in advance,

    Cedric

    Subject: RE: AXL : Some attributes are not return from listSipTrunk request
    Replied by: cedric conte on 04-11-2013 09:49:13 AM
    issue update :
    I'm wondering id this  soap request is well formed.
    Cause, like i said in the previous post, I got answer to this request but without <destinations /> tag.
    Is someone has already got the  <destinations /> from an getSipTrunk  request ?
     1<soap:Body>
     2 <getSipTrunk xmlns="http://www.cisco.com/AXL/API/9.1"> <uuid xmlns="">4360bb79-657f-6831-886f-ed976988dd9f</uuid>
     3 <returnedTags uuid="" xmlns="">
     4  <name />
     5  <description />
     6  <protocol />
     7  <destinations />
     8 </returnedTags>
     9</getSipTrunk>
    10</soap:Body></soap:Envelope>

    Thanks in advance,

    Cedric

    Subject: RE: AXL : Some attributes are not return from listSipTrunk request
    Replied by: Adrienne Moherek on 04-11-2013 10:47:02 AM
    Hi Cedric,

    Try including the child tags in destinations, like this:
     1<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.0">
     2   <soapenv:Header/>
     3   <soapenv:Body>
     4      <ns:getSipTrunk sequence="?">
     5         <name>SIPTrunk</name>
     6         <returnedTags>
     7            <name></name>
     8            <description></description>
     9            <protocol></protocol>
    10            <destinations>
    11               <destination uuid="?">
    12                  <addressIpv4></addressIpv4>
    13                  <addressIpv6></addressIpv6>
    14                  <port></port>
    15                  <sortOrder></sortOrder>
    16               </destination>
    17            </destinations>
    18         </returnedTags>
    19      </ns:getSipTrunk>
    20   </soapenv:Body>
    21</soapenv:Envelope>


    Subject: RE: AXL : Some attributes are not return from listSipTrunk request
    Replied by: cedric conte on 05-11-2013 02:19:58 AM
    Thx a lot Adrienne. Now I know what i didnt get the destinations data.
    Below, a sample of CSharp code to get the destionations (and childs) from GetSipTrunkReq method.

    Hope this could be helpful for someone else

     1GetSipTrunkReq getSipTrunkReq = new GetSipTrunkReq();          
     2getSipTrunkReq.ItemElementName = ItemChoiceType154.uuid;          
     3getSipTrunkReq.Item = "9677f488-f1ec-e376-ab2a-13a0378b2b50";          
     4getSipTrunkReq.returnedTags = new RSipTrunk();          
     5getSipTrunkReq.returnedTags.@class = "";          
     6getSipTrunkReq.returnedTags.uuid = "";          
     7getSipTrunkReq.returnedTags.name = "";          
     8getSipTrunkReq.returnedTags.description = "";          
     9RSipTrunkDestination rSipTrunkDestination = new RSipTrunkDestination();          
    10rSipTrunkDestination.uuid = "";          
    11rSipTrunkDestination.addressIpv4 = "";          
    12rSipTrunkDestination.port = "";          
    13rSipTrunkDestination.sortOrder = "";          
    14RSipTrunkDestination[] arraySipTrunkDestination = new RSipTrunkDestination[1];          
    15arraySipTrunkDestination[0] = rSipTrunkDestination;          
    16getSipTrunkReq.returnedTags.destinations = arraySipTrunkDestination;          
    17GetSipTrunkRes getResponse = axlApiService.getSipTrunk(getSipTrunkReq);