How to create a SIP Trunk

Version 1
    This document was generated from CDN thread

    Created by: Chandan Agrawal on 12-05-2009 02:54:44 PM
    Hi,
     
    I am trying to create a SIP trunk using the AXL API. But I am not able to get the xml right. Can anyone help me with a correct xml that works?
     
    Regards,
    Chandan

    Subject: RE: How to create a SIP Trunk
    Replied by: Anitha V on 13-05-2009 04:25:28 AM
    The sample XML request for adding a SIP Trunk is as follows:

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
        <SOAP-ENV:Body>
            <axlapi:addSIPTrunk sequence="1" xmlns:axlapi="http://www.cisco.com/AXL/API/1.0" xmlns:axl="http://www.cisco.com/AXL/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cisco.com/AXL/API/1.0 axlsoap.xsd">
                <trunk>
                    <name>AXL-STsbt</name>
                    <description>This is a sample SIP Trunk</description>
                    SIP Trunk
                    <model>SIP Trunk</model>
                    <class>Trunk</class>
                    SIP
                    Network
                    <callingSearchSpaceName>AXL-CSS</callingSearchSpaceName>
                    <devicePoolName>Default</devicePoolName>
                    <networkLocation>OffNet</networkLocation>
                    <locationName>Hub_None</locationName>
                    <mediaResourceListName>AXL-MRL</mediaResourceListName>
                    <!--<networkHoldMOHAudioSourceId>12</networkHoldMOHAudioSourceId>
                    <userHoldMOHAudioSourceId>10</userHoldMOHAudioSourceId>-->
                    <automatedAlternateRoutingCSSName>AXL-CSS</automatedAlternateRoutingCSSName>
                    <aarNeighborhoodName>AXL-AAR</aarNeighborhoodName>
                    <loadInformation special="true">abcd</loadInformation>
                    <vendorConfig><A></A></vendorConfig>
                    <versionStamp>{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}</versionStamp>
                    <traceFlag>true</traceFlag>
                    <mlppDomainId>1</mlppDomainId>
                    <mlppIndicationStatus>Off</mlppIndicationStatus>
                    Disabled
                    <retryVideoCallAsAudio>false</retryVideoCallAsAudio>           
                    <subscribeCallingSearchSpaceName>AXL-CSS</subscribeCallingSearchSpaceName>
                    <rerouteCallingSearchSpaceName>AXL-CSS</rerouteCallingSearchSpaceName>
                    <referCallingSearchSpaceName>AXL-CSS</referCallingSearchSpaceName>
                    <mtpRequired>false</mtpRequired>
                    <destinationaddress>10.77.31.216</destinationaddress>
                    <destAddrIsSRV>false</destAddrIsSRV>
                    <destinationport>1027</destinationport>
                    <incomingport>1025</incomingport>
                    <securityProfileName>Non Secure SIP Trunk Profile</securityProfileName>
                    <tkSipCodec>711alaw</tkSipCodec>
                    <OutgoingTransportType>UDP</OutgoingTransportType>
                    <sigDigits enable="true">3</sigDigits>
                    <connectedNamePresentation>Restricted</connectedNamePresentation>
                    <connectedPartyIdPresentation>Restricted</connectedPartyIdPresentation>
                    <callingPartySelection>First Redirect Number</callingPartySelection>
                    <callingname>Allowed</callingname>
                    <callingLineIdPresentation>Restricted</callingLineIdPresentation>
                    2
                    <callerName>check</callerName>
                    <callerIdDN>2</callerIdDN>
                    <acceptInboundRDNIS>true</acceptInboundRDNIS>
                    <acceptOutboundRDNIS>true</acceptOutboundRDNIS>
                </trunk>
            </axlapi:addSIPTrunk>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Hope this helps.
     
    Thanks and Regards,
    Anitha

    Subject: RE: How to create a SIP Trunk
    Replied by: Chandan Agrawal on 13-05-2009 09:45:10 AM
    Hi Anitha,
     
    Thanks for your reply. However I am still getting the follwoing error:
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'model'. One of '{product, productInfo}' is expected.
     
    Regards,
    Chandan

    Subject: RE: How to create a SIP Trunk
    Replied by: Chandan Agrawal on 03-06-2009 12:13:58 PM
    This is what worked for me finally:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
        <SOAP-ENV:Body>
            <axlapi:addSIPTrunk sequence="1" xmlns:axlapi="http://www.cisco.com/AXL/API/7.0" xmlns:axl="http://www.cisco.com/AXL/7.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <trunk >
        <name>TServer_Johannesburg</name>
        <description>test desc</description>
        SIP Trunk
        <model>SIP Trunk</model>
        <class>Trunk</class>
        SIP
        Network
        <destAddrIsSRV>false</destAddrIsSRV>
        <callingSearchSpaceName></callingSearchSpaceName>
        <devicePoolName>Default</devicePoolName>
        <commonDeviceConfigName></commonDeviceConfigName>
        <mediaResourceListName></mediaResourceListName>
        <networkLocation></networkLocation>
        <locationName>Hub_None</locationName>
        <automatedAlternateRoutingCSSName></automatedAlternateRoutingCSSName>
        <aarNeighborhoodName></aarNeighborhoodName>
        <mlppDomainId>-1</mlppDomainId>
        <retryVideoCallAsAudio>true</retryVideoCallAsAudio>
        <securityProfileName>Genesys SIP Trunk Profile</securityProfileName>
        <sipProfileName>Standard SIP Profile</sipProfileName>
        <unattendedPort>false</unattendedPort>
        <subscribeCallingSearchSpaceName></subscribeCallingSearchSpaceName>
        <rerouteCallingSearchSpaceName></rerouteCallingSearchSpaceName>
        <referCallingSearchSpaceName></referCallingSearchSpaceName>
        <mtpRequired>false</mtpRequired>
        <destinationaddress>joh</destinationaddress>
        <destinationport>5060</destinationport>
        <tkSipCodec>711alaw</tkSipCodec>
        <sigDigits enable="false">99</sigDigits>
        <connectedNamePresentation>Restricted</connectedNamePresentation>
        <connectedPartyIdPresentation>Restricted</connectedPartyIdPresentation>
        <callingPartySelection>First Redirect Number</callingPartySelection>
        <callingname>Restricted</callingname>
        <callingLineIdPresentation>Restricted</callingLineIdPresentation>
        
        <callerName></callerName>
        <callerIdDN></callerIdDN>
        <acceptInboundRDNIS>false</acceptInboundRDNIS>
        <acceptOutboundRDNIS>false</acceptOutboundRDNIS>
        Standard Presence group
        <DTMFSignalingMethod>RFC 2833</DTMFSignalingMethod>
        <DTMFSignalingMethodSpecified>true</DTMFSignalingMethodSpecified>
        <srtpAllowed>false</srtpAllowed>
        <unknownPrefix>Default</unknownPrefix>
        <isPaiEnabled>true</isPaiEnabled>
        <isRpidEnabled>true</isRpidEnabled>
        <sipAssertedType>PPI</sipAssertedType>
        <sipPrivacy>None</sipPrivacy>
        <cgpnTransformationCSSName></cgpnTransformationCSSName>
        <useDevicePoolCgpnTransformCSS>true</useDevicePoolCgpnTransformCSS>
        <cdpnTransformationCSSName></cdpnTransformationCSSName>
        <useDevicePoolCdpnTransformCSS>true</useDevicePoolCdpnTransformCSS>
       </trunk>
           </axlapi:addSIPTrunk>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>