title: Asterisk : automatically answer call after originate
body: <p>I have an asterisk 1.8.13 running quite well, and thanks to stackoverflow's questions, I am now able to originate a call via AMI.
  When the call is originated, the SIP phone is ringing, and when I manually answer, it calls the extension.</p>
  <p>I REALLY would like to do the same thing but without the need to answer myself on the SIP phone. (Not only a 'Async: yes' that would call the extension at the same time)</p>
  <p>The goal is that when I send a command to AMI, my SIP phone is automatically answered and the extension called, no need to touch the phone physically.</p>
  <p>I already checked :</p>
  <blockquote>
  <p><a href="https://stackoverflow.com/questions/9360899/originate-a-call-with-asterisk-without-the-originating-extension-ringing">Originate a call with Asterisk - without the originating extension ringing</a></p>
  <p><a href="https://stackoverflow.com/questions/10836466/asterisk-ami-pickup-call">Asterisk AMI - pickup call</a></p>
  </blockquote>
  <p>But both do not work on my configuration (maybe due to me obviously).</p>
  <p>Here my extensions.conf :</p>
  <pre><code>(...)
  [globalcontext](!)
  include =&gt; parkedcalls
  exten =&gt; _X.,1,AGI(agi:async)
  
  exten =&gt; _1XX,1,Dial(SIP/${EXTEN},20,tT)
  exten =&gt; _1XX,2,VoiceMail(${EXTEN}@test)
  
  [nol](globalcontext)
  exten =&gt; _0XXXXXXXXX,1,Dial(SIP/to-ovh/${EXTEN})
  (...)
  </code></pre>
  <p>Here is my sip.conf :</p>
  <pre><code>[template](!)
  type=friend
  host=dynamic
  dtmfmode=rfc2833
  disallow=all
  allow=ulaw
  
  [102](template)
  fullname = John Doe
  defaultuser = john
  secret = sippass
  context = nol
  </code></pre>
  <p>Here is my <strong>working</strong> AMI session for originating call from SIP phone 102 to ext 0101010101:</p>
  <pre><code>Action: Login
  Username: admin
  Secret: mypassword
  
  Action: Originate
  Channel: SIP/102
  Context: nol
  Exten: 0101010101
  Priority: 1
  Callerid: 0101010101
  Timeout: 15000
  ActionID: b4646a6465e546f
  </code></pre>
  <p>I hope it will be clear enough.</p>
  <p>Regards</p>