01-07-2016 10:28 PM
I am new to AXL need some help. We face issue in contact center of Agents login failure with error 12005 . Usual trick is to dis-assoicate the phone from PG user and re-associate. Need to develop a script (AXL) to perform the same. which method should be used for this ?.
Thanks in Advance.
01-17-2016 07:53 PM
Hi Raghavendra,
You can use AXL addUser,updateUser to associate or disassociate a device.
I hope this would help you.
Regards
Thuy Doan
01-18-2016 08:25 AM
I think update user lets you add device to users but not remove. If I have to use that then I have to delete user then add user and update user with all the device name. I can not do this as I need to run this script during prod hours at contact center. I can not delete the PG User which would result in all the phones to dis-associate.
01-18-2016 09:30 AM
<updateUser> allows you to specify a new list of <associatedDevices> (wherein you can have added or removed individual devices), however I believe the way this gets implemented is that the system first removes all associated devices, and then immediately re-associates all the devices in the newly provied list. This could have undesired effects, though might bear some testing.
One other possibility would be to use <executeSqlUpdate> to directly remove and re-add just the single desired user<->device association from the 'enduserdevicemap' table. (Generally, database triggers will cause the system to affect the real-time changes needed to reflect such direct database manipulations, however sometimes those notifications are handled in the AXL layer - you may need to test to see this behaves as desired.)
04-20-2016 05:54 AM
I would built the XMl like this:
<userid>$UserID</userid>
<associatedDevices><device>$CSF/Jabber</device></associatedDevices>
<phoneProfiles>
<profileName>$userDeviceProfile</profileName>
</phoneProfiles>
<ctiControlledDeviceProfiles>
<profileName>$userDeviceProfile</profileName>
</ctiControlledDeviceProfiles>
If you leave the part $CSF/Jabber or $userDeviceProfile empty it will be disassociated
If you recall the XML with the correct parameter set to this tags it will be associated again
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide