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

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

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 )


Response Signature


View solution in original post

4 Replies 4

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 )


Response Signature


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

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!

 

Follow Cisco Unified CM AXL Schema Reference. 

 

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



Response Signature


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: