<p>In modules/exec/README:</p>
<pre style='color:#555'>&gt; @@ -243,6 +246,48 @@ exec_getenv(&quot;HOSTNAME&quot;);
&gt;  exec_getenv(&quot;HOSTNAME&quot;, &quot;$avp(localhost)&quot;);
&gt;  ...
&gt;  
&gt; +1.4.5.  exec(command, [output], [input], [envavp])
&gt; +
&gt; +   Executes an external command. The input is passed to the
&gt; +   standard input of the new process, if specified, and the output
&gt; +   is saved in the output variable.
&gt; +
&gt; +   Meaning of the parameters is as follows:
&gt; +     * command - command to be executed.It can include
&gt; +       pseudovariables.
&gt; +     * output - pseudovariable where to store the output from the
&gt; +       standard output of the command. Keep in mind that if this
&gt; +       parameter is set, the async paramater will not be taken in
&gt; +       consideration.
</pre>
<p>I see that it's not supported in your code.</p>

<p>My point was that if you define the function like you do:</p>

<pre><code>exec(command, [output], [input], [envavp])
</code></pre>

<p>it would be quirky to add stderr later:</p>

<pre><code>exec(command, [output], [input], [envavp], [stderr])
</code></pre>

<p>You see how the argument order doesn't make sense.</p>

<p>So, it was less of a question of whether it exists, and more of a suggestion to add it now, while you're still free to define the function in the most logical manner.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/360/files#r19004237">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyOTE0ODYyNCwiZGF0YSI6eyJpZCI6NDU5OTk0NjB9fQ==--30a57b8ebefb6b73e8efd20b65c7e9bdf2bf20ed.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Pull Request on GitHub","action":{"@type":"ViewAction","url":"https://github.com/OpenSIPS/opensips/pull/360/files#r19004237","name":"View Pull Request"}}</script>