<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    There is no way to do that. <br>
    Just move your 'line after exec;' to the resume route, or put it in
    a new route that will get called from within the resume route.<br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
</pre>
    <div class="moz-cite-prefix">On 22.10.2015 17:39, Dragomir
      Haralambiev wrote:<br>
    </div>
    <blockquote
cite="mid:CADzurOJQWLOyO9ZXbEgFHTLbBxoAeg82d9Aur0n6cDPsj9hkjw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div>I try to test Exported Asyncronous functions in OpenSips
          2.1.</div>
        <div><br>
        </div>
        <div>What I do to return back in stript (at line after exec)
          when finished route[resume] ?
          <div>
            <pre class="">{

   async( exec("test.sh.","$ru","$avp(return)"), resume );</pre>
            <pre class="">   line after exec;</pre>
            <pre class="">}

route[resume] {
   xlog("Exec return <span style="font-family:arial,sans-serif">$avp(return)</span><span style="font-family:arial,sans-serif">"); </span></pre>
            <pre class=""><span style="font-family:arial,sans-serif">}</span></pre>
            <pre class=""><span style="font-family:arial,sans-serif">
</span></pre>
            <pre class=""><span style="font-family:arial,sans-serif">Best regards,</span></pre>
            <pre class=""><span style="font-family:arial,sans-serif">PlayMen</span></pre>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>