Skip to content

Instantly share code, notes, and snippets.

@siniypin
Created November 16, 2013 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siniypin/7504504 to your computer and use it in GitHub Desktop.
Save siniypin/7504504 to your computer and use it in GitHub Desktop.
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