Hi
I'm stuck trying to add hundreds of Analog Phones to VG224s. I have already created the requests for adding lines and phones (and partitions, CSS, ...) but when it comes to the VG224 I'm stuck. If I add the gateway manually as an SCCP entity and do not add the subunit from the CUCM interface and then run this request:
<addMGCPSubunit>
<domainName>SKIGW1F9E40095F</domainName>
<unit index="2"/>
<subunit index="0">
<product>24FXS-SCCP</product>
<endpoints max="24">
<endpoint index = "5">
<name>AN1F9E40095F405</name>
<description>71912 BjV - Distriktssköterska </description>
<product>Analog Phone</product>
<model>Analog Phone</model>
<class>Phone</class>
<protocol>Cisco-station</protocol>
<protocolSide>User</protocolSide>
<callingSearchSpaceName>LUV_A_devices_css</callingSearchSpaceName>
<devicePoolName>LUV_A_dp</devicePoolName>
<locationName>LUV_A_loc</locationName>
<lines>
<line index="1">
<label/>
<display>BjV - Distriktssköterska</display>
<dirn>
<pattern>71912</pattern>
<usage>Device</usage>
<routePartitionName>LUV_A_phones_pt</routePartitionName>
<alertingName>BjV - Distriktssköterska </alertingName>
</dirn>
<ringSetting>Use System Default</ringSetting>
<consecutiveRingSetting>Use System Default</consecutiveRingSetting>
<busyTrigger>2</busyTrigger>
<callInfoDisplay>
<callerName>true</callerName>
<callerNumber>true</callerNumber>
<redirectedNumber>true</redirectedNumber>
<dialedNumber>true</dialedNumber>
</callInfoDisplay>
</line>
</lines>
</endpoint></endpoints>
</subunit>
</addMGCPSubunit>
The subunit is added but I get this response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>
<![CDATA
]http://The product type specified is not a Gateway.]></faultstring>
<detail xmlns:axl="http://www.cisco.com/AXL/API/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cisco.com/AXL/API/1.0
http://SUSCCM01/CCMApi/AXL/V1/axlsoap.xsd">
<axl:error sequence="0">
<code>5003</code>
<message>
<![CDATA
]http://The product type specified is not a Gateway.]></message>
<request>addMGCPSubunit</request>
</axl:error>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
If I take away the endpoint config I still add the subunit but do not get an error so the problem is with the <product> tag of the endpoint itself.
Maybe I'm mistaken, maybe you can only add MGCP endpoints this way, which would make sense but if that is the case, is there any other way of doing this via AXL or am I stuck having to create them manually. I know I can do this by clicking on each port, giving them a devicepool and button template and then updating the devices through AXL but I'd much rather find an automated way of doing this. This week I have to do 4 VG224s with approx 80 ports, I can do this manually but in a couple of months we will do 30 VG224s with 600 ports and I don't want to do this if I really don't have to...
/Peter