cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
541
Views
5
Helpful
4
Replies

CUCM 12.5SU6 getLine not returning associated devices

tozzy52
Level 1
Level 1

Hello,


I'm facing an issue since upgrading from 10.6 -> 12.5 that when I use getLine, I am getting a result of "None" under 'associatedDevices', when I know this particular directory number is attached to a number of phones. Anyone have any ideas what's going on?

 

getLine_data = {
'pattern': ''71911,
'routePartitionName': 'PAR_YORK_ONNET'
}

 

try:
getLine_resp = service.getLine(**getLine_data)

 

RESPONSE:

'return': {
        'line': {
            'pattern': '71911',
            'description': None,
            'usage': 'Device',
            'routePartitionName': {
                '_value_1': 'PAR_YORK_ONNET',
                'uuid': '{2AC30C60-DC10-4794-BF22-E6A022AF2740}'
.............
'associatedDevices': None,
'useEnterpriseAltNum': None,
'useE164AltNum': None,
'active': None,
 

 

1 Accepted Solution

Accepted Solutions

Can you try the request in SoapUI and see what the response returns? That's a way to determine if the problem is with AXL or if it's with either your code or the Python library.

View solution in original post

4 Replies 4

npetrele
Cisco Employee
Cisco Employee

You have an open double-quote:

 

'pattern': ''71911,

 

 

Apologies, that's a typo in my post, the actual code is correct though. Here's what the original looks like

 

USERDATA = input("Enter the UserID of the person you are setting up: ")

 

getLine_data = {
'pattern': USERDATA,
'routePartitionName': 'PAR_YORK_ONNET'
}

try:
getLine_resp = service.getLine(**getLine_data)

Can you try the request in SoapUI and see what the response returns? That's a way to determine if the problem is with AXL or if it's with either your code or the Python library.

Great idea! Sometimes I forget the basics.

I'm getting better results on SOAP UI so I'll retake a look at my python environment, thanks alot!