McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 595

↗ View in doc context
page
595
source
cucm/v15/jtapi-dev-guide/jtapi-dev-guide.md
chunk_id
cucm::v15::jtapi-dev-guide::jtapi-dev-guide::596

Description Method Interface Selects one or more possible destinations for routing the Call. This method takes as an argument a string array of destination telephone address names, in prioritized order, and a string array for the PreferredOriginalCalled number. PreferedOriginalCalled number gets selected based on the index of the destination telephone names array. If the index corresponding to the destination array is not found in the PreferedOriginalCalled number array, preferedOriginalCalled gets set to the destination. The highest-priority destination is the first element in the given array, and the system attempts to route with this destination first. The system attempts each given destination address in succession until the call gets successfully routed. The system delivers a RouteUsedEvent event to the application when a successful routing destination has been selected and the Call has been routed to that destination. Pre-conditions • this.getRouteAddress().getProvider().getState() =

• Provider.IN_SERVICE this.getState() = = RouteSession.ROUTE or • RouteSession.RE_ROUTE Post-conditions • this.getRouteAddress().getProvider().getState() =

• Provider.IN_SERVICE this.getState() = = • RouteSession.ROUTE_USED (if the Call was successfully routed.) A RouteUsedEvent gets delivered for this RouteSession if a successful destination was selected. Parameters • routeSelected—Possible destinations for the call. • preferedOriginalCalledNumber—List with each item corresponding to a route at the matching array index in the routeSelected list. • preferedOriginalCalledOption—List of options, each corresponding to routeSelected list. The option specifies whether to set OriginalCalled to preferedOriginalCalledNumber. The option values Cisco Unified JTAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 531 Cisco Unified JTAPI Extensions Methods

Page 595 diagram