Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Transferring active call to another destination
public class TransferCommand : ICommand
{
private ISipUserAgent _userAgent;
private TransferArguments _arguments;
public TransferCommand(ISipUserAgent userAgent, TransferArguments transferArguments)
{
_userAgent = userAgent;
_arguments = transferArguments;
}
public void Execute()
{
_userAgent.CallManager.GetCallById(int.Parse(_arguments.CallId)).Transfer(_arguments.Destination);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.