<p>The code on master branch is <em>almost</em> done. What's missing is this:</p>

<p>/**</p>

<ul>
<li>functions.c</li>
<li>
<p>curL_query_url() <br>
*/</p>

<p>if (default_http_proxy != NULL) {<br>
    res |= curl_easy_setopt(curl, CURLOPT_PROXY, default_http_proxy);<br>
}</p>

<p>if (default_http_proxy_port > 0) {<br>
    res |= curl_easy_setopt(curl, CURLOPT_PROXYPORT, default_http_proxy_port);<br>
}</p>
</li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/541">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZcxrtRSgjUhr5OvlQFDUW84hwJ1Pks5psSwkgaJpZM4HufkW.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/541"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>