LIST varPlace= FindConfigObject[CFGPlace, ‘number:extension_dn|switch:switch_extension_dn_defined_on’]
if error something not valid in configuration or extension_dn is incorrect
STRING varPlaceName = TKVListGetStringValue[varPlace, ‘name’]
now it possible route to “directly” on place or get place status and get agent id from it (if somebody logged in on it)
LIST varPlaceStatus = TargetState[Cat[varPlaceName, ‘.AP’]]
STRING varAgentID = TKVListGetStringValue[varPlaceStatus, ‘agent’]
also INTEGER varAgentPlaceState = TKVListGetStringValue[varPlaceStatus, ‘state’] will provide status of the place (and the agent) if needed.