title: Hang up the call after x seconds after the called party has answered the call using ARI in Asterisk
body: <p>We've been using Asterisk's Dial plans for quite some time and now we've decided to switch to <code>ARI</code>. I'm wondering is there a way to hang up the call after x seconds after the called party has answered the call using <code>originate</code> or any other method from <code>/channels</code> resource in <code>ARI</code>. 
  Note that I can do this using dial plan with <code>L(x:y:z)</code> or <code>S(duration)</code> functions but unfortunately can not find a way to use this feature in <code>Stasis</code> mode. here is a part of my dial plan in <code>extensions.conf</code></p>
  
  <pre><code>exten =&gt; 8952XXXX,1,NoOp(${CALLERID(num)})
  same =&gt; n,Set(ENDPOINT=${SIP_HEADER(X-Endpoint)})
  same =&gt; n,Stasis(myapp,incoming,${EXTEN},unknown,unknown,none)
  same =&gt; n,Hangup()
  </code></pre>