cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1313
Views
0
Helpful
1
Replies

AXL - Associating device line to User

mgowland
Beginner
Beginner

Hey good people,

I cant work out how to associate a line to a device as I do using the web interface.  In the web gui under a device -> line, down the bottom you have "Users Associated with Line"  How Can I set this to a users id in axl?

Im using cucm v11.5. I have tried updatePhone soap call and providing the lines property with the user id under associatedEndusers (see my php payload below).  No error is thrown.  I can only assume I need to make the association via a different method.  Any ideas?


$lineAsocPayload = array(

                "name" => $phone["name"],

                "lines" => ["line" =>

                    [

                        "index" => 1,

                        "dirn"=> ["pattern" => $this->user->ipPhone, "routePartitionName"=>USER_ROUTE_PARTITION],

                        "associatedEndusers" => [

                            "enduser" => ["userId" => $this->user->id]

                        ]

                    ]

]);

$soapClient->updatePhone($lineAsocPayload);

1 ACCEPTED SOLUTION

Accepted Solutions

mgowland
Beginner
Beginner

Just realised if I associate the end user when adding the phone then it works.  Still not sure why it doesnt work when calling updatePhone.

View solution in original post

1 REPLY 1

mgowland
Beginner
Beginner

Just realised if I associate the end user when adding the phone then it works.  Still not sure why it doesnt work when calling updatePhone.

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: