<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Can you add next line before the execution of auth_check() in your
    config file:<br>
    <br>
    xlog("==== handling $rm ($ci) for authorization:
    $hdr(Authorization)\n");<br>
    <br>
    Then test and send again the log messages.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 07/03/16 21:30, Bruno Henrique Gomes
      Gouvêa wrote:<br>
    </div>
    <blockquote
cite="mid:CAFBSE6uucEUgQRKLCuODtYLBe4vAcgwhWwqUAdVjrjoGWm5n6w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Sorry, my mail client change text, correct is
        (without blank space):
        <div><br>
        </div>
        <div>
          <div>   REGISTER sip:<a moz-do-not-send="true"
              href="http://pabx999999.ligou.me">pabx999999.ligou.me</a>;transport=UDP
            SIP/2.0</div>
          <div>        Via: SIP/2.0/UDP
            189.13.125.28:49288;branch=z9hG4bK-d8754z-f96a8271ea34f240-1---d8754z-</div>
          <div>        Max-Forwards: 70</div>
          <div>        Contact:
<a class="moz-txt-link-rfc2396E" href="sip:101_pabx999999.ligou.me@189.13.125.28:49288;rinstance=98fe0089b166bd85;transport=UDP"><sip:101_pabx999999.ligou.me@189.13.125.28:49288;rinstance=98fe0089b166bd85;transport=UDP></a></div>
          <div>        To: <<a moz-do-not-send="true"
              href="mailto:sip%3A101_pabx999999.ligou.me@pabx999999.ligou.me">sip:101_pabx999999.ligou.me@pabx999999.ligou.me</a>;transport=UDP></div>
          <div>        From: <<a moz-do-not-send="true"
              href="mailto:sip%3A101_pabx999999.ligou.me@pabx999999.ligou.me">sip:101_pabx999999.ligou.me@pabx999999.ligou.me</a>;transport=UDP>;tag=9d3ef068</div>
          <div>        Call-ID:
            YWQ5YzU4ZTc4MGU5NWE3OGI3Y2U2YjdmZDA0YTFmZmE.</div>
          <div>        CSeq: 3 REGISTER</div>
          <div>        Expires: 3600</div>
          <div>        Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER,
            MESSAGE, OPTIONS, INFO, SUBSCRIBE</div>
          <div>        Supported: replaces, norefersub, extended-refer,
            timer, X-cisco-serviceuri</div>
          <div>        User-Agent: Z 3.6.25251 r25476</div>
          <div>        Authorization: Digest username="<a
              moz-do-not-send="true"
              href="http://101_pabx999999.ligou.me">101_pabx999999.ligou.me</a>",realm="<a
              moz-do-not-send="true" href="http://pabx999999.ligou.me">pabx999999.ligou.me</a>",nonce="Vt3evVbd3ZGT5CKFEKVFXx3NZHKisGcp",uri="sip:<a
              moz-do-not-send="true" href="http://pabx999999.ligou.me">pabx999999.ligou.me</a>;transport=UDP",response="6b3a6709fa3ec3ad313811a704ffb6d9",algorithm=MD5</div>
          <div>        Allow-Events: presence, kpml</div>
          <div>        Content-Length: 0</div>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr" style="font-size:12.8000001907349px">
                  <div>--------------------------------------------</div>
                  <div><br>
                  </div>
                  <div>Bruno H. G. Gouvêa</div>
                  <div><br>
                  </div>
                  <div>CEO - CiberCloud LTDA</div>
                  <div><a moz-do-not-send="true"
                      href="http://cibercloud.com.br/"
                      style="color:rgb(17,85,204)" target="_blank">http://cibercloud.com.br</a></div>
                  <div><a moz-do-not-send="true" href="http://ligou.me/"
                      style="color:rgb(17,85,204)" target="_blank">http://ligou.me</a><br>
                  </div>
                  <div><br>
                  </div>
                </div>
                <div style="font-size:12.8000001907349px"><br
                    clear="all">
                  <div>--- <br>
                     Bruno H. G. Gouvêa<br>
                    <br>
                    <br>
                     Tel.: <a moz-do-not-send="true"
                      href="tel:%2831%2999554646" value="+553199554646"
                      style="color:rgb(17,85,204)" target="_blank">(31)99554646</a><br>
                    ---</div>
                </div>
                <br>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">2016-03-07 17:27 GMT-03:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
              <br>
              have you mangled the sip message you pasted here? I see a
              white space in front of username in From/To headers, which
              can lead in mismatching the authentication username with
              caller id username.<br>
              <br>
              Cheers,<br>
              Daniel</div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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 Advanced Training, Berlin, March 7-9, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>