/sipsorcery-core/SIPSorcery.Web.Services/CallManager/CallManagerProxy.cs

https://github.com/thecc4re/sipsorcery-mono · C# · 42 lines · 35 code · 7 blank · 0 comment · 0 complexity · 4cde9810ddb7d123ae4f12674b5afc04 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.ServiceModel;
  6. using System.ServiceModel.Channels;
  7. using System.Text;
  8. using System.Threading;
  9. namespace SIPSorcery.Web.Services {
  10. public partial class CallManagerProxy : ClientBase<ICallManagerServices>, ICallManagerServices
  11. {
  12. public CallManagerProxy()
  13. : base()
  14. { }
  15. public CallManagerProxy(Binding binding, EndpointAddress address)
  16. : base(binding, address)
  17. { }
  18. public bool IsAlive()
  19. {
  20. return base.Channel.IsAlive();
  21. }
  22. public string WebCallback(string username, string number)
  23. {
  24. return base.Channel.WebCallback(username, number);
  25. }
  26. public string BlindTransfer(string username, string destination, string replaceCallID)
  27. {
  28. return base.Channel.BlindTransfer(username, destination, replaceCallID);
  29. }
  30. public string DualTransfer(string username, string callID1, string callID2)
  31. {
  32. return base.Channel.DualTransfer(username, callID1, callID2);
  33. }
  34. }
  35. }