Posted By

wearetherock on 11/10/09


Tagged

asterisk


Versions (?)

Make call from 2222 to 3333


 / Published in: C#
 

  1. // Protocol Pattern
  2. /*
  3. Action: Originate
  4. Channel: Local/2222@from-internal
  5. Exten: 3333
  6. Priority: 1
  7. Callerid: Nuria
  8. #CallId=4208196 <2222>
  9. Context: from-internal
  10. Variable: originating=2222
  11. ActionID: 2
  12. Timeout: 30000
  13. Async: 1
  14. */
  15.  
  16. // Asterisk.NET (sourceforgce)
  17. OriginateAction originate = new OriginateAction();
  18.  
  19. originate.Channel = "Local/2222@from-internal";
  20. //originate.Channel = "SIP/2222";
  21. originate.Exten = "3333";
  22. originate.Priority = 1;
  23. originate.CallerId = "Nuria";
  24. originate.Context = "from-internal";
  25. //originate.Variable = "originating=2222";
  26. originate.SetVariable("originating", "2222");
  27. originate.ActionId = "2";
  28. originate.Timeout = 30000;
  29. originate.Async = true;
  30.  
  31. ManagerResponse response = manager.SendAction(originate);

Report this snippet  

You need to login to post a comment.