08-24-2020 02:43 PM
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
Solved! Go to Solution.
08-25-2020 10:10 AM
This note appears in the schema for <destAddrIsSrv>
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>
08-24-2020 11:44 PM
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
08-25-2020 06:17 AM
Thanks!
08-25-2020 10:10 AM
This note appears in the schema for <destAddrIsSrv>
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>
08-25-2020 11:18 AM
Hi David,
You are correct. When <destAddrIsSrv> is set to true then port has to be 0.
Thanks for the help!!
Jung
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide