This document was generated from CDN thread
Created by: Xiaohui Zhou on 17-11-2008 06:03:41 PM
For a device configured with multiple lines, is there a way (or ways) to find out what the "primary" line is for the user who controls the device? Is the order of Address elements in return value of Terminal.getAddresses() indicating the order of "preferences" (e.g., the 0th element is the user's primary line)?
Subject: Re: Any ways to choose "primary" line?
Replied by: David Staudt on 17-11-2008 07:39:45 PM
It's not possible to determine the designated primary line via JTAPI. The first device in the array is not guaranteed to be the primary.
You can use the AXL SOAP API for this, however. The first <line> element in getPhoneResponse/return/device/lines will be the primary line, if one is configured.