Created
November 16, 2013 19:51
-
-
Save siniypin/7504504 to your computer and use it in GitHub Desktop.
Transferring active call to another destination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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