01-24-2020 03:47 AM
Hi,
I'm developping a web based softphone using Jabber SDK 11.8.3 and a CUCM (version 12.5 to support multi lines).
How can I select active line through SDK? I found selectLine method in Deskphone class but nothing in Softphone class.
If it is not possible through Jabber SDK is there another way?
Regards,
Beaudequin Bastian
01-24-2020 10:38 AM - edited 01-24-2020 10:49 AM
It should work for soft phones the same as for desk phones. As per the docs:
// For the sake of this example we'll assume that we have 3 available lines [1111, 1112, 1113]
var telephonyLines = deskphone.lineDirectoryNumbers;
// We'll select line 1112.
var telephonyLineToSelect = telephonyLines[1]
deskphone.selectLine(telephonyLineToSelect);
You should be able to use softphone.selectLine instead, since both softphone and deskphone extend TelephonyDevice but since only deskphone is documented, it may not be available for softphone. I'll check with the Jabber developers.
Based on the sample app, it looks like it does NOT work for softphones. There's no option to select a line when you select the softphone, but there is an option if you select a deskphone.
02-06-2020 03:28 PM
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