title: How to call a context and return to the main context in asterisk?
body: <p>Here is my dial plan in asterisk:</p>
  
  <pre><code>[main-context]
  exten =&gt; s,1,Gosub(subcontext,s,1)
  exten =&gt; s,n,NoOp(End Main)
  
  [subcontext]
  exten =&gt; s,1,NoOp(Start subcontext)
  exten =&gt; s,1,NoOp(End subcontext)
  </code></pre>
  
  <p>The problem is that when subcontext finishes, execution doesn't return to main-context and 
  exten => s,n,NoOp(End Main) doesn't execute. How can I solve this?</p>