cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
351
Views
0
Helpful
4
Replies
Highlighted
Enthusiast

CUCM AXL AddVG224 - Can it be used to add newer analog gateways?

I currently have a shell script that builds BAT import files for analog gateways (VG310,VG320,VG350,VG450), but I was looking at redoing this in python so it could add it directly to CUCM via AXL. I see a macro/stored procedure called AddVg224, but I wasn't sure if this could be used for other high density analog gateways like the ones I mentioned earlier.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
VIP Advocate

I  have tried MGCP gateway using python and  AXL library. it worked as expected with isr 4321 router. AddVG224 for (VG310,VG320,VG350,VG450)  I am doubtful. I think u can try  addGateway.

 

gateway code

 

gateway = {
'domainName': 'XX.test.local',
'description': 'XX gateway',
'product': 'Cisco ISR 4321',
'protocol': 'MGCP',
'callManagerGroupName': 'Default',
'units': {
'unit': []
}
}
 
unit_name = {
'index': '0',
'product': 'ISR-2NIM-MBRD',
'subunits': {
'subunit': []
}
}

subunit_name= {
'index' : '1',
'product' : 'NIM-1MFT-T1E1-E1',
'beginPort': '0'
}
unit_name['subunits']['subunit'].append( subunit_name )
gateway['units']['unit'].append( unit_name )
 
try:
resp = service.addGateway( gateway )
=>>>If this answered your question, please click "ACCEPT AS SOLUTION"<<<=
=>>>If you find this response useful, please mark it as "HELPFUL"<<<=

View solution in original post

4 REPLIES 4
Highlighted
VIP Advocate

I  have tried MGCP gateway using python and  AXL library. it worked as expected with isr 4321 router. AddVG224 for (VG310,VG320,VG350,VG450)  I am doubtful. I think u can try  addGateway.

 

gateway code

 

gateway = {
'domainName': 'XX.test.local',
'description': 'XX gateway',
'product': 'Cisco ISR 4321',
'protocol': 'MGCP',
'callManagerGroupName': 'Default',
'units': {
'unit': []
}
}
 
unit_name = {
'index': '0',
'product': 'ISR-2NIM-MBRD',
'subunits': {
'subunit': []
}
}

subunit_name= {
'index' : '1',
'product' : 'NIM-1MFT-T1E1-E1',
'beginPort': '0'
}
unit_name['subunits']['subunit'].append( subunit_name )
gateway['units']['unit'].append( unit_name )
 
try:
resp = service.addGateway( gateway )
=>>>If this answered your question, please click "ACCEPT AS SOLUTION"<<<=
=>>>If you find this response useful, please mark it as "HELPFUL"<<<=

View solution in original post

Highlighted

OK, thanks. I'll give that a try.
Highlighted

I combined that with some code fragments in axl.py from the CLAUTO class (Collaboration Automation), and that worked. Now I just need to sort out adding the individual ports. Thanks!

Highlighted

 

Follow Cisco Unified CM AXL Schema Reference. 

 

https://developer.cisco.com/docs/axl-schema-reference/

=>>>If this answered your question, please click "ACCEPT AS SOLUTION"<<<=
=>>>If you find this response useful, please mark it as "HELPFUL"<<<=
Content for Community-Ad