Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Redirect the audiovideo call to a different target URI.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub Forward ( _
targetUri As String, _
forwardOptions As CallForwardOptions _
)
'Usage
Dim instance As AudioVideoCall
Dim targetUri As String
Dim forwardOptions As CallForwardOptions
instance.Forward(targetUri, forwardOptions)
public void Forward(
string targetUri,
CallForwardOptions forwardOptions
)
Parameters
- targetUri
Type: System.String
The forward target URI.
- forwardOptions
Type: Microsoft.Rtc.Collaboration.CallForwardOptions
Optional parameters to forward the audiovideo call. This includes using a specific response code for forwarding the audiovideo call.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when the targetUri parameter is null, empty or invalid. |
| InvalidOperationException | Thrown when the call is not in valid state to perform this operation. |
| RealTimeException | Thrown when the forward operation failed to complete successfully. |
Remarks
When the forwardOptions parameter is null, this call will be forwarded with a response code of 303. Redirects the audiovideo call to a different target. Depending on the response code, the forward is either carried out by the proxy when supported or by the user agent client that sent the invite request.