cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
768
Views
0
Helpful
4
Replies

updateSIPTrunk request is not working for <destAddrIsSrv> tag

jdrinkwater
Level 1
Level 1

I am trying to set the destAddrIsSrv tag to either true or false but doesn't get set.

Anyone having same problem?

 

<axl:updateSipTrunk xmlns:axl="http://www.cisco.com/AXL/API/12.5">
<name>SIPTrunkNone</name>
<destAddrIsSrv>false</destAddrIsSrv>
</axl:updateSipTrunk>

 

Thanks,

Jung

1 Accepted Solution

Accepted Solutions

This note appears in the schema for <destAddrIsSrv>

Screenshot-20200825115609-148x114.png

From this it looks like your destination should NOT have a <port > value, or <destAddrIsSrv> will force to false.

In fact, from trial-and-error, it looks like you need to update the <port> value to be '0' (zero), as if you set to null if defaults back to 5060:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:updateSipTrunk sequence="1">
         <name>DummySIPtrunk</name>
         <destAddrIsSrv>true</destAddrIsSrv>
         <destinations>
            <destination>
               <addressIpv4>10.10.10.1</addressIpv4>
               <port>0</port>
               <sortOrder>1</sortOrder>
            </destination>
         </destinations>
      </ns:updateSipTrunk>
   </soapenv:Body>
</soapenv:Envelope>

View solution in original post

4 Replies 4

KiranKL
Cisco Employee
Cisco Employee

Yes. Its not setting to True. It was false before updating the sip trunk. Lets see if anybody has answer for the same. Let me try to identify the reason

Thanks!

This note appears in the schema for <destAddrIsSrv>

Screenshot-20200825115609-148x114.png

From this it looks like your destination should NOT have a <port > value, or <destAddrIsSrv> will force to false.

In fact, from trial-and-error, it looks like you need to update the <port> value to be '0' (zero), as if you set to null if defaults back to 5060:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:updateSipTrunk sequence="1">
         <name>DummySIPtrunk</name>
         <destAddrIsSrv>true</destAddrIsSrv>
         <destinations>
            <destination>
               <addressIpv4>10.10.10.1</addressIpv4>
               <port>0</port>
               <sortOrder>1</sortOrder>
            </destination>
         </destinations>
      </ns:updateSipTrunk>
   </soapenv:Body>
</soapenv:Envelope>

Hi David,

You are correct. When <destAddrIsSrv> is set to true then port has to be 0. 

Thanks for the help!!

Jung

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: