title: how to use OriginateAction class in asterisk java to originate a call to a PSTN number
body: <p>I am new to asterisk, I am trying to originate a call from java application. I found OriginateAction is the class to originate a call to SIP or PSTN number, I tried to use this class but could not find any way how it helps me. Can any one suggest me how to use this class in order to meet my requirement.</p>
  
  <p>I tried following</p>
  
  <pre><code>OriginateAction oa=new OriginateAction();
  oa.setAccount(getName());
  oa.setActionId(getName());
  oa.setChannel("SIP/1000");
  oa.setContext("default");
  oa.setExten("120");
  oa.setCallerId("2233");
  </code></pre>