<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28 Mar 2016, at 20:20, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">miconda@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Hello,<br class="">
    <br class="">
    have you tried with empty string in between quotes?<br class="">
    <br class="">
    httpproxy=“”</div></div></blockquote>That did the job. Thanks!</div><div><br class=""></div><div>Added it to the README.</div><div><br class=""></div><div>/O<br class=""><blockquote type="cite" class=""><div class=""><div bgcolor="#FFFFFF" text="#000000" class="">
    <br class="">
    Alternative is to use boolean in this case.<br class="">
    <br class="">
    httpproxy=no<br class="">
    <br class="">
    Of course, there is always to patch the code and add support for
    empty value (or eventual 'null' value).<br class="">
    <br class="">
    Cheers,<br class="">
    Daniel<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 28/03/16 19:31, Olle E. Johansson
      wrote:<br class="">
    </div>
    <blockquote cite="mid:ED792DCA-9607-4E82-939F-AE688B1B00B3@edvina.net" type="cite" class="">
      <pre wrap="" class="">Hi!

Http_client is using the cfg_parser.c core parser to parse the config file. In some cases I would like to set an empty string. Let’s say that I’ve set a default http proxy in modparams and wants to reset it to no proxy in the config file - in this case I would like to write


httpproxy=

on a line in the config file.

In this case I get 

 0(45371) ERROR: <core> [cfg_parser.c:891]: cfg_parse_str(): http_client.cfg:35:0: Invalid string value '
', a string expected.

Is there a way to allow an empty string?

/O</pre>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br class="">
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com/">http://www.kamailioworld.com</a></pre>
  </div>

_______________________________________________<br class="">sr-dev mailing list<br class=""><a href="mailto:sr-dev@lists.sip-router.org" class="">sr-dev@lists.sip-router.org</a><br class="">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev<br class=""></div></blockquote></div><br class=""></body></html>