<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><a href="sip:172.21.0.14:5060" class="">sip:172.21.0.14:5060</a> is the local address of the server, it seems like a bug in http_client, as I don't have such http_query call anywhere :/ <div class="">just re-checked<div class="">Also the fact that it works perfectly on 4.4.6 tells that it's not a configuration issue<br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">________________________________</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">Alexandru Covalschi</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">VoIP Engineer and System Administrator<br class="">tel: +373 673 98 493</div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">23 нояб. 2017 г., в 16:59, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="">miconda@gmail.com</a>> написал(а):</div><br class="Apple-interchange-newline"><div class="">
  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
  
  <div text="#000000" bgcolor="#FFFFFF" class=""><p class="">There was a mistake in the exports structure, the name of the
      function with 4 parameter was http_query instead of
      http_client_query. I pushed a patch to fix it.<br class="">
    </p>
    Then, related to the issue with cannot resolve the host, the debug
    messages show an invalid http url being used:<br class="">
    <br class="">
    <pre style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;" class="">Nov 21 04:18:20 ast1 /usr/sbin/kamailio[20804]: DEBUG: http_client [functions.c:146]: curL_query_url(): ****** ##### CURL URL [<a class="moz-txt-link-freetext" href="sip:172.21.0.14:5060">sip:172.21.0.14:5060</a>]
</pre>
    <br class="">
    The it fails to do the dns stuff with it...<br class="">
    <br class="">
    Cheers,<br class="">
    Daniel<br class="">
    <br class="Apple-interchange-newline">
    <div class="moz-cite-prefix">On 22.11.17 22:38, Alexandru Covalschi
      wrote:<br class="">
    </div>
    <blockquote type="cite" cite="mid:78A0894C-F7B3-4C38-90A4-2336019A613C@gmail.com" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
      Just wanted to ask if you need my help to test/check/etc.<br class="">
      <div class="">
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">
          ________________________________</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Alexandru Covalschi</div>
        <div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">VoIP Engineer and System Administrator<br class="">
          tel: +373 673 98 493</div>
      </div>
      <br class="">
      <div style="" class="">
        <blockquote type="cite" class="">
          <div class="">21 нояб. 2017 г., в 11:58, Alexandru Covalschi
            <<a href="mailto:568691@gmail.com" class="" moz-do-not-send="true">568691@gmail.com</a>>
            написал(а):</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <meta http-equiv="Content-Type" content="text/html;
              charset=utf-8" class="">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;" class="">
              <div class="">Kamailio is actually starting, please take a
                look at that debug=4 log file: <a href="https://filebin.net/r54y3jkmzdyk9zak/syslog_http_client_query_failed.txt" class="" moz-do-not-send="true">https://filebin.net/r54y3jkmzdyk9zak/syslog_http_client_query_failed.txt</a></div>
              <div class="">at line 1042 http_client module is
                successfully loading, but at line 12785 it fails to load
                http_client_query</div>
              <div class=""><br class="">
              </div>
              <div class="">Also please check line 50385 in <a href="https://filebin.net/352vff41fwx7uowg/syslog_http_query_curl_6.txt" class="" moz-do-not-send="true">https://filebin.net/352vff41fwx7uowg/syslog_http_query_curl_6.txt</a> <br class="">
                <div class="">
                  <div class="">
                    <div style="font-family: Helvetica; font-size: 12px;
                      font-style: normal; font-variant-caps: normal;
                      font-weight: normal; letter-spacing: normal;
                      text-align: start; text-indent: 0px;
                      text-transform: none; white-space: normal;
                      word-spacing: 0px; -webkit-text-stroke-width:
                      0px;" class="">I'm using http_query here with
                      5.0.4 http_client, you can see that http_client
                      makes a request, but afterwards it returns curl
                      error 6, but the weirdest thing is - at line 19887
                      I request token from the very same IP address,
                      only url is changed, and it actually works fine.<br class="Apple-interchange-newline">
                      ________________________________</div>
                    <div style="font-family: Helvetica; font-size: 12px;
                      font-style: normal; font-variant-caps: normal;
                      font-weight: normal; letter-spacing: normal;
                      text-align: start; text-indent: 0px;
                      text-transform: none; white-space: normal;
                      word-spacing: 0px; -webkit-text-stroke-width:
                      0px;" class="">Alexandru Covalschi</div>
                    <div style="font-family: Helvetica; font-size: 12px;
                      font-style: normal; font-variant-caps: normal;
                      font-weight: normal; letter-spacing: normal;
                      text-align: start; text-indent: 0px;
                      text-transform: none; white-space: normal;
                      word-spacing: 0px; -webkit-text-stroke-width:
                      0px;" class="">VoIP Engineer and System
                      Administrator<br class="">
                      tel: +373 673 98 493</div>
                  </div>
                  <br class="">
                  <div class="">
                    <blockquote type="cite" class="">
                      <div class="">21 нояб. 2017 г., в 10:44,
                        Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="" moz-do-not-send="true">miconda@gmail.com</a>>
                        написал(а):</div>
                      <br class="Apple-interchange-newline">
                      <div class="">
                        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
                        <div text="#000000" bgcolor="#FFFFFF" class=""><p class="">But then kamailio is not starting,
                            or?</p><p class="">Can you provide all the error
                            message as they are printed in syslog file?
                            File, line and other details are part of the
                            logs message, allowing to identify the
                            location in the source code where that
                            happens ...</p><p class="">Cheers,<br class="">
                            Daniel<br class="">
                          </p>
                          <br class="">
                          <div class="moz-cite-prefix">On 21.11.17
                            09:38, Alexandru Covalschi wrote:<br class="">
                          </div>
                          <blockquote type="cite" cite="mid:7A449203-537D-4682-A819-7F02E84E0369@gmail.com" class="">
                            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
                            It is still one of the issues<br class="">
                            <div class="">
                              <div style="font-family: Helvetica;
                                font-size: 12px; font-style: normal;
                                font-variant-caps: normal; font-weight:
                                normal; letter-spacing: normal;
                                text-align: start; text-indent: 0px;
                                text-transform: none; white-space:
                                normal; word-spacing: 0px;
                                -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">
                                ________________________________</div>
                              <div style="font-family: Helvetica;
                                font-size: 12px; font-style: normal;
                                font-variant-caps: normal; font-weight:
                                normal; letter-spacing: normal;
                                text-align: start; text-indent: 0px;
                                text-transform: none; white-space:
                                normal; word-spacing: 0px;
                                -webkit-text-stroke-width: 0px;" class="">Alexandru Covalschi</div>
                              <div style="font-family: Helvetica;
                                font-size: 12px; font-style: normal;
                                font-variant-caps: normal; font-weight:
                                normal; letter-spacing: normal;
                                text-align: start; text-indent: 0px;
                                text-transform: none; white-space:
                                normal; word-spacing: 0px;
                                -webkit-text-stroke-width: 0px;" class="">VoIP Engineer and System
                                Administrator<br class="">
                                tel: +373 673 98 493</div>
                            </div>
                            <br class="">
                            <div style="" class="">
                              <blockquote type="cite" class="">
                                <div class="">21 нояб. 2017 г., в 9:40,
                                  Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" class="" moz-do-not-send="true">miconda@gmail.com</a>>
                                  написал(а):</div>
                                <br class="Apple-interchange-newline">
                                <div class="">
                                  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
                                  <div text="#000000" bgcolor="#FFFFFF" class=""><p class="">Hello,</p><p class="">in your email in this
                                      thread, you said:</p><p class="">> When I try to
                                      change http_query
                                      to http_client_query it fails to
                                      load with  error "failed to find
                                      command http_client_query".</p>
                                    Is it still the case, or that was
                                    sorted out?<br class="">
                                    <br class="">
                                    Cheers,<br class="">
                                    Daniel<br class="">
                                    <br class="">
                                    <div class="moz-cite-prefix">On
                                      20.11.17 22:43, Alexandru
                                      Covalschi wrote:<br class="">
                                    </div>
                                    <blockquote type="cite" cite="mid:7ACF9B3B-E421-4111-AEC2-B9D45CD3C9F2@gmail.com" class="">
                                      <meta http-equiv="Content-Type" content="text/html;
                                        charset=utf-8" class="">
                                      Works ok on 4.4.6. So I suppose
                                      it's a weird 5.0.4 + my
                                      environment bug. I'm rolling back
                                      to 4.4.6 right now, will keep one
                                      5.0.4 machine for testing (on
                                      debian 9)
                                      <div class="">Let me know if I can
                                        provide any dumps/cores etc.<br class="">
                                        <div class="">
                                          <div style="font-family:
                                            Helvetica; font-size: 12px;
                                            font-style: normal;
                                            font-variant-caps: normal;
                                            font-weight: normal;
                                            letter-spacing: normal;
                                            text-align: start;
                                            text-indent: 0px;
                                            text-transform: none;
                                            white-space: normal;
                                            word-spacing: 0px;
                                            -webkit-text-stroke-width:
                                            0px;" class=""><br class="Apple-interchange-newline">
________________________________</div>
                                          <div style="font-family:
                                            Helvetica; font-size: 12px;
                                            font-style: normal;
                                            font-variant-caps: normal;
                                            font-weight: normal;
                                            letter-spacing: normal;
                                            text-align: start;
                                            text-indent: 0px;
                                            text-transform: none;
                                            white-space: normal;
                                            word-spacing: 0px;
                                            -webkit-text-stroke-width:
                                            0px;" class="">Alexandru
                                            Covalschi</div>
                                          <div style="font-family:
                                            Helvetica; font-size: 12px;
                                            font-style: normal;
                                            font-variant-caps: normal;
                                            font-weight: normal;
                                            letter-spacing: normal;
                                            text-align: start;
                                            text-indent: 0px;
                                            text-transform: none;
                                            white-space: normal;
                                            word-spacing: 0px;
                                            -webkit-text-stroke-width:
                                            0px;" class="">VoIP Engineer
                                            and System Administrator<br class="">
                                            tel: +373 673 98 493</div>
                                        </div>
                                        <br class="">
                                        <div class="">
                                          <blockquote type="cite" class="">
                                            <div class="">20 нояб. 2017
                                              г., в 23:29, Alexandru
                                              Covalschi <<a href="mailto:568691@gmail.com" class="" moz-do-not-send="true">568691@gmail.com</a>>
                                              написал(а):</div>
                                            <br class="Apple-interchange-newline">
                                            <div class="">
                                              <meta http-equiv="Content-Type" content="text/html;
                                                charset=utf-8" class="">
                                              <div style="word-wrap:
                                                break-word;
                                                -webkit-nbsp-mode:
                                                space;
                                                -webkit-line-break:
                                                after-white-space;" class="">So the weirdest
                                                thing is Kamailio
                                                actually sends the
                                                request, but it returns
                                                curl error 6 in the
                                                answer variable. I have
                                                a plenty of clonned
                                                servers and same
                                                behaviour is on all of
                                                them, also just now
                                                tried on a fresh debian
                                                9 - same result. I'm
                                                inside a virtual machine
                                                (vmware), but not sure
                                                it matters...<br class="">
                                                <div class="">
                                                  <div style="font-family:
                                                    Helvetica;
                                                    font-size: 12px;
                                                    font-style: normal;
                                                    font-variant-caps:
                                                    normal; font-weight:
                                                    normal;
                                                    letter-spacing:
                                                    normal; text-align:
                                                    start; text-indent:
                                                    0px; text-transform:
                                                    none; white-space:
                                                    normal;
                                                    word-spacing: 0px;
                                                    -webkit-text-stroke-width:
                                                    0px;" class=""><br class="Apple-interchange-newline">
________________________________</div>
                                                  <div style="font-family:
                                                    Helvetica;
                                                    font-size: 12px;
                                                    font-style: normal;
                                                    font-variant-caps:
                                                    normal; font-weight:
                                                    normal;
                                                    letter-spacing:
                                                    normal; text-align:
                                                    start; text-indent:
                                                    0px; text-transform:
                                                    none; white-space:
                                                    normal;
                                                    word-spacing: 0px;
                                                    -webkit-text-stroke-width:
                                                    0px;" class="">Alexandru
                                                    Covalschi</div>
                                                  <div style="font-family:
                                                    Helvetica;
                                                    font-size: 12px;
                                                    font-style: normal;
                                                    font-variant-caps:
                                                    normal; font-weight:
                                                    normal;
                                                    letter-spacing:
                                                    normal; text-align:
                                                    start; text-indent:
                                                    0px; text-transform:
                                                    none; white-space:
                                                    normal;
                                                    word-spacing: 0px;
                                                    -webkit-text-stroke-width:
                                                    0px;" class="">VoIP
                                                    Engineer and System
                                                    Administrator<br class="">
                                                    tel: +373 673 98 493</div>
                                                </div>
                                                <br class="">
                                                <div class="">
                                                  <blockquote type="cite" class="">
                                                    <div class="">20
                                                      нояб. 2017 г., в
                                                      22:37, Alexandru
                                                      Covalschi <<a href="mailto:568691@gmail.com" class="" moz-do-not-send="true">568691@gmail.com</a>>
                                                      написал(а):</div>
                                                    <br class="Apple-interchange-newline">
                                                    <div class="">
                                                      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
                                                      <div style="word-wrap:
                                                        break-word;
                                                        -webkit-nbsp-mode:
                                                        space;
                                                        -webkit-line-break:
after-white-space;" class="">I often get WARNING: http_client
                                                        [functions.c:281]:
curL_query_url(): Couldn't resolve host, while I don't even use
                                                        hostnames. 
                                                        <div class="">After
                                                          I changed IP
                                                          address to
                                                          hostname
                                                          (which I've
                                                          added into
                                                          /etc/hosts)
                                                          nothing
                                                          changed. It
                                                          seems like a
                                                          weird bug, but
                                                          I've no idea -
                                                          is it CURL or
                                                          kamailio, but
                                                          when I execute
                                                          curl from
                                                          shell it is
                                                          working fine.
                                                          I have google
                                                          dns in
                                                          resolve.conf
                                                          and nslookup
                                                          is also
                                                          working ok.</div>
                                                        <div class="">Can
                                                          anyone help me
                                                          with that?</div>
                                                        <div class=""><br class="">
                                                        </div>
                                                        <div class="">
                                                          <div class="">
                                                          <div style="font-family:
                                                          Helvetica;
                                                          font-size:
                                                          12px;
                                                          font-style:
                                                          normal;
                                                          font-variant-caps:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          -webkit-text-stroke-width:
                                                          0px;" class="">________________________________</div>
                                                          <div style="font-family:
                                                          Helvetica;
                                                          font-size:
                                                          12px;
                                                          font-style:
                                                          normal;
                                                          font-variant-caps:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          -webkit-text-stroke-width:
                                                          0px;" class="">Alexandru
                                                          Covalschi</div>
                                                          <div style="font-family:
                                                          Helvetica;
                                                          font-size:
                                                          12px;
                                                          font-style:
                                                          normal;
                                                          font-variant-caps:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          -webkit-text-stroke-width:
                                                          0px;" class="">VoIP
                                                          Engineer and
                                                          System
                                                          Administrator<br class="">
                                                          tel: +373 673
                                                          98 493</div>
                                                          </div>
                                                          <br class="">
                                                          <div class="">
                                                          <blockquote type="cite" class="">
                                                          <div class="">20
                                                          нояб. 2017 г.,
                                                          в 22:06,
                                                          Alexandru
                                                          Covalschi <<a href="mailto:568691@gmail.com" class="" moz-do-not-send="true">568691@gmail.com</a>>
                                                          написал(а):</div>
                                                          <br class="Apple-interchange-newline">
                                                          <div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal;
                                                          font-variant-caps:
                                                          normal;
                                                          font-weight:
                                                          normal;
                                                          letter-spacing:
                                                          normal;
                                                          text-align:
                                                          start;
                                                          text-indent:
                                                          0px;
                                                          text-transform:
                                                          none;
                                                          white-space:
                                                          normal;
                                                          word-spacing:
                                                          0px;
                                                          -webkit-text-stroke-width:
                                                          0px; float:
                                                          none; display:
                                                          inline
                                                          !important;" class="">t</span></div>
                                                          </blockquote>
                                                          </div>
                                                          <br class="">
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                                <br class="">
                                              </div>
                                            </div>
                                          </blockquote>
                                        </div>
                                        <br class="">
                                      </div>
                                      <br class="">
                                      <fieldset class="mimeAttachmentHeader"></fieldset>
                                      <br class="">
                                      <pre class="" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                                    </blockquote>
                                    <br class="">
                                    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com/" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com/" moz-do-not-send="true">www.kamailioworld.com</a></pre>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                            <br class="">
                          </blockquote>
                          <br class="">
                          <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com/" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com/" moz-do-not-send="true">www.kamailioworld.com</a></pre>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br class="">
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br class="">
    </blockquote>
    <br class="">
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com/">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com/">www.kamailioworld.com</a></pre>
  </div>

</div></blockquote></div><br class=""></div></div></body></html>