DiversionContext.GetAllDivertedDestinations Method
Gets all the diverted destinations.
Namespace: Microsoft.Rtc.Collaboration
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function GetAllDivertedDestinations As Collection(Of DivertedDestination)
'Usage
Dim instance As DiversionContext
Dim returnValue As Collection(Of DivertedDestination)
returnValue = instance.GetAllDivertedDestinations()
public Collection<DivertedDestination> GetAllDivertedDestinations()
Return Value
Type: System.Collections.ObjectModel.Collection<DivertedDestination>
Collection of all diverted destinations. This collection can be empty if no diverted destinations are received.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when the signaling headers containing the diversion information could not be parsed successfully. |
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.