Return to Snippet

Revision: 20222
at November 10, 2009 04:46 by wearetherock


Initial Code
// Protocol Pattern
/*
Action: Originate
Channel: Local/2222@from-internal
Exten: 3333
Priority: 1
Callerid: Nuria      
#CallId=4208196 <2222>
Context: from-internal
Variable: originating=2222
ActionID: 2
Timeout: 30000
Async: 1
*/

// Asterisk.NET (sourceforgce)
OriginateAction originate = new OriginateAction();

originate.Channel = "Local/2222@from-internal";
//originate.Channel = "SIP/2222";
originate.Exten = "3333";
originate.Priority = 1;
originate.CallerId = "Nuria";
originate.Context = "from-internal";
//originate.Variable = "originating=2222";
originate.SetVariable("originating", "2222");
originate.ActionId = "2";
originate.Timeout = 30000;
originate.Async = true;

ManagerResponse response = manager.SendAction(originate);

Initial URL

                                

Initial Description

                                

Initial Title
Make call from 2222 to 3333

Initial Tags

                                

Initial Language
C#