Gets all the diverted destinations.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Function 
GetAllDivertedDestinations 
As 
Collection(
Of 

DivertedDestination)
C#
public 
Collection<

DivertedDestination> 
GetAllDivertedDestinations()
Visual C++
public:
Collection<

DivertedDestination^>^ 
GetAllDivertedDestinations()
JavaScript
function 
getAllDivertedDestinations();

Return Value

Collection of all diverted destinations. This collection can be empty if no diverted destinations are received.

Remarks

This method returns a collection of all diverted destinations in a sorted order based on the diversion context source used Source.

If the source is HistoryInfo, all of the headers are sorted in ascending order, based on the index value of the History-Info header - in accordance with RFC 4244. Typically, for a History-Info header based collection, the last entry will contain information that matches the information in the Request-URI of the incoming INVITE.

If the source is Diversion, all of the incoming headers are sorted in the reverse of incoming order. Thus the last Diversion/CC-Diversion header we receive on the wire will contain the first DivertedDestination details.

Exceptions

Exception Condition
InvalidOperationException Thrown when the signaling headers containing the diversion information could not be parsed successfully.

See Also