Zakos
Zakos

Reputation: 1509

Lync 2010 UCMA 3.0 SDK - Call Forwarding

How can I use the Lync API to change current user "call forwarding" option to another SIP or a number?

Thanks

Upvotes: 0

Views: 806

Answers (1)

Zakos
Zakos

Reputation: 1509

private void OnIncomingAudioVideoCallReceived(object sender, CallReceivedEventArgs<AudioVideoCall> e)
    {
        // Forward incoming Audio calls OR accept call
        try
        {
            _logger.Info("Incoming call from " + e.RemoteParticipant.Uri);
             e.Call.Forward("sip:..");
        }
        catch (InvalidOperationException ioex)
        {
            _logger.Error("Failed forwarding incoming call", ioex);
        }
    }

Upvotes: 1

Related Questions