cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
151
Views
10
Helpful
1
Replies
Highlighted

CUCM SIP trunk details using Postman

We have SolarWinds monitoring solution in our environment. I was trying to configure SIP trunk session monitoring on SolarWinds VNQM, however I did not see any SIP trunks populated in SolarWinds. I opened a ticket with SolarWinds and they did postman query using AXL user to see whether CUCM sending the Trunk  details to VNQM, however they could not get proper info from CUCM. API always return 500 Internal Server error.  if any one have experience on Postman please check the result output and let me know where is the issue.

 

Attached POST URL and Code.

CUCM version 11.5

Everyone's tags (1)
1 REPLY 1
Rising star

Re: CUCM SIP trunk details using Postman

Hi,

I have very little knowledge of Postman and API but I am able to pull the status of SIP Trunks using Postman and API queries. I have tried this on CUCM version 12.0. I have followed RisPort70 API Reference guide to get this working. Below is the code that I used. You can see the information of terms in API reference guide. 

POST Query URL: https://<CUCM IP Address>:8443/realtimeservice2/services/RISService70?wsdl

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">
   <soapenv:Header/>
   <soapenv:Body>
      <soap:selectCmDevice>
         <soap:StateInfo></soap:StateInfo>
         <soap:CmSelectionCriteria>
            <soap:MaxReturnedDevices>1000</soap:MaxReturnedDevices>
            <soap:DeviceClass>SIPTrunk</soap:DeviceClass>
            <soap:Model>255</soap:Model>
            <soap:Status>Any</soap:Status>
            <soap:NodeName></soap:NodeName>
            <soap:SelectBy>Name</soap:SelectBy>
            <soap:SelectItems>
               <soap:item>
                  <soap:Item>*</soap:Item>
               </soap:item>
            </soap:SelectItems>
            <soap:Protocol>Any</soap:Protocol>
            <soap:DownloadStatus>Any</soap:DownloadStatus>
         </soap:CmSelectionCriteria>
      </soap:selectCmDevice>
   </soapenv:Body>
</soapenv:Envelope>

 

POST Query Result:

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns1:selectCmDeviceResponse xmlns:ns1="http://schemas.cisco.com/ast/soap">
            <ns1:selectCmDeviceReturn>
                <ns1:SelectCmDeviceResult>
                    <ns1:TotalDevicesFound>2</ns1:TotalDevicesFound>
                    <ns1:CmNodes>
                        <ns1:item>
                            <ns1:ReturnCode>Ok</ns1:ReturnCode>
                            <ns1:Name>CUCM-PUB.lab.com</ns1:Name>
                            <ns1:NoChange>false</ns1:NoChange>
                            <ns1:CmDevices>
                                <ns1:item>
                                    <ns1:Name>CWMS-PRI-Application</ns1:Name>
                                    <ns1:DirNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:DeviceClass>SIPTrunk</ns1:DeviceClass>
                                    <ns1:Model>131</ns1:Model>
                                    <ns1:Product>0</ns1:Product>
                                    <ns1:BoxProduct>0</ns1:BoxProduct>
                                    <ns1:Httpd>Unknown</ns1:Httpd>
                                    <ns1:RegistrationAttempts>0</ns1:RegistrationAttempts>
                                    <ns1:IsCtiControllable>false</ns1:IsCtiControllable>
                                    <ns1:LoginUserId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:Status>Rejected</ns1:Status>
                                    <ns1:StatusReason>0</ns1:StatusReason>
                                    <ns1:PerfMonObject>0</ns1:PerfMonObject>
                                    <ns1:DChannel>0</ns1:DChannel>
                                    <ns1:Description xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:H323Trunk>
                                        <ns1:ConfigName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:TechPrefix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:Zone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RemoteCmServer1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RemoteCmServer2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RemoteCmServer3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:AltGkList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:ActiveGk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:CallSignalAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RasAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    </ns1:H323Trunk>
                                    <ns1:TimeStamp>0</ns1:TimeStamp>
                                    <ns1:Protocol>Any</ns1:Protocol>
                                    <ns1:NumOfLines>0</ns1:NumOfLines>
                                    <ns1:LinesStatus />
                                    <ns1:ActiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:InactiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:DownloadStatus>Unknown</ns1:DownloadStatus>
                                    <ns1:DownloadFailureReason xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:DownloadServer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:IPAddress>
                                        <ns1:item>
                                            <ns1:IP>10.0.0.1</ns1:IP>
                                            <ns1:IPAddrType>ipv4</ns1:IPAddrType>
                                            <ns1:Attribute>Unknown</ns1:Attribute>
                                        </ns1:item>
                                    </ns1:IPAddress>
                                </ns1:item>
                                <ns1:item>
                                    <ns1:Name>SIPTrunk-To-EXPWY-WebEX</ns1:Name>
                                    <ns1:DirNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:DeviceClass>SIPTrunk</ns1:DeviceClass>
                                    <ns1:Model>131</ns1:Model>
                                    <ns1:Product>0</ns1:Product>
                                    <ns1:BoxProduct>0</ns1:BoxProduct>
                                    <ns1:Httpd>Unknown</ns1:Httpd>
                                    <ns1:RegistrationAttempts>0</ns1:RegistrationAttempts>
                                    <ns1:IsCtiControllable>false</ns1:IsCtiControllable>
                                    <ns1:LoginUserId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:Status>Registered</ns1:Status>
                                    <ns1:StatusReason>0</ns1:StatusReason>
                                    <ns1:PerfMonObject>0</ns1:PerfMonObject>
                                    <ns1:DChannel>0</ns1:DChannel>
                                    <ns1:Description>SIP Trunk for WebEx Hybrid Calling</ns1:Description>
                                    <ns1:H323Trunk>
                                        <ns1:ConfigName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:TechPrefix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:Zone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RemoteCmServer1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RemoteCmServer2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RemoteCmServer3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:AltGkList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:ActiveGk xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:CallSignalAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                        <ns1:RasAddr xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    </ns1:H323Trunk>
                                    <ns1:TimeStamp>0</ns1:TimeStamp>
                                    <ns1:Protocol>Any</ns1:Protocol>
                                    <ns1:NumOfLines>0</ns1:NumOfLines>
                                    <ns1:LinesStatus />
                                    <ns1:ActiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:InactiveLoadID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:DownloadStatus>Unknown</ns1:DownloadStatus>
                                    <ns1:DownloadFailureReason xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:DownloadServer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1" />
                                    <ns1:IPAddress>
                                        <ns1:item>
                                            <ns1:IP>10.0.0.1</ns1:IP>
                                            <ns1:IPAddrType>ipv4</ns1:IPAddrType>
                                            <ns1:Attribute>Unknown</ns1:Attribute>
                                        </ns1:item>
                                    </ns1:IPAddress>
                                </ns1:item>
                    </ns1:CmNodes>
                </ns1:SelectCmDeviceResult>
                <ns1:StateInfo>&lt;StateInfo>&lt;Node Name="CUCM-PUB.lab.com" SubsystemStartTime="1548467860" StateId="48" TotalItemsFound="16" TotalItemsReturned="16"/>&lt;Node Name="CUCM-SUB01.lab.com" SubsystemStartTime="1548475375" StateId="48" TotalItemsFound="16" TotalItemsReturned="16"/>&lt;Node Name="IMPS-PUB.lab.com" SubsystemStartTime="0" StateId="0" TotalItemsFound="0" TotalItemsReturned="0"/>&lt;Node Name="IMPS-SUB01.lab.com" SubsystemStartTime="0" StateId="0" TotalItemsFound="0" TotalItemsReturned="0"/>&lt;/StateInfo></ns1:StateInfo>
        </ns1:selectCmDeviceReturn>
    </ns1:selectCmDeviceResponse>
</soapenv:Body>
</soapenv:Envelope>

 

You can use specific POST queries to get the results you needed. 

 

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards