<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 30/04/15 12:46, Yuriy Gorlichenko
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABSP_Vchm_eGKgrmQNiyqodiTgo5QrW+ZzmhPaA4Zu_W5P+W3A@mail.gmail.com"
      type="cite">
      <div dir="ltr">This happens only with one trunk. We also have
        plivo trunks and it works fine.<br>
        <br>
        Syslog show nothing when this message comes<br>
        <br>
        Started with debug mode and saw that realms didn't mach. Sorry
        for stupid questions. All works fine.</div>
    </blockquote>
    <br>
    Note that if you don't set the realm value in database, then the one
    from 401 is used. So, unless you want to enforce the realm, you
    better leave it empty in the database.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CABSP_Vchm_eGKgrmQNiyqodiTgo5QrW+ZzmhPaA4Zu_W5P+W3A@mail.gmail.com"
      type="cite">
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-04-30 13:24 GMT+03:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</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>
              does that happen in all cases or just for some records?
              Can you rung with debug=3 and check the syslog messages
              for what happens at that moment when 401 is processed?<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 30/04/15 11:37, Yuriy Gorlichenko wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hello. We have an issue with REGISTER
                      to Provider. When Provider answers 401 Kamailio
                      don't send any REGISTER with digest auth<br>
                      <br>
                      <div>IP ourservice.com.5068 >
                        provider.dev.5060: UDP, length 468</div>
                      <div><a moz-do-not-send="true"
                          href="mailto:E...U...@.3" target="_blank">E...U...@.3</a>'</div>
                      <div>..............AREGISTER <a
                          moz-do-not-send="true">sip:provider.dev</a>
                        SIP/2.0</div>
                      <div>Via: SIP/2.0/UDP
ourservice.com:5068;branch=z9hG4bK4238.45a4a626000000000000000000000000.0</div>
                      <div>To: <a moz-do-not-send="true"><sip:login@provider.dev></a></div>
                      <div>From: <a moz-do-not-send="true"><sip:login@provider.dev></a>;tag=6a39af2190f8b2c99cc63bfeb3a3959c-1ff8</div>
                      <div>CSeq: 10 REGISTER</div>
                      <div>Call-ID: <a moz-do-not-send="true"
                          href="mailto:1b3f9f5d5822eca2-16804@ourservice.com"
                          target="_blank">1b3f9f5d5822eca2-16804@ourservice.com</a></div>
                      <div>Max-Forwards: 70</div>
                      <div>Content-Length: 0</div>
                      <div>User-Agent: kamailio (4.3.0-dev5
                        (x86_64/linux))</div>
                      <div>Contact: <<a moz-do-not-send="true"
                          href="http://sip:login@ourservice.com:5068"
                          target="_blank">sip:login@ourservice.com:5068</a>></div>
                      <div>Expires: 360</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>IP provider.dev.5060 >
                        ourservice.com.5068: UDP, length 572</div>
                      <div>E..XC...-.W.....</div>
                      <div>........DkJSIP/2.0 401 Unauthorized</div>
                      <div>Via: SIP/2.0/UDP
ourservice.com:5068;branch=z9hG4bK4238.45a4a626000000000000000000000000.0;received=23.100.24.250</div>
                      <div>From: <a moz-do-not-send="true"><sip:login@provider.dev></a>;tag=6a39af2190f8b2c99cc63bfeb3a3959c-1ff8</div>
                      <div>To: <a moz-do-not-send="true"><sip:login@provider.dev></a>;tag=as6ad61d4a</div>
                      <div>Call-ID: <a moz-do-not-send="true"
                          href="mailto:1b3f9f5d5822eca2-16804@ourservice.com"
                          target="_blank">1b3f9f5d5822eca2-16804@ourservice.com</a></div>
                      <div>CSeq: 10 REGISTER</div>
                      <div>Server: FastTel SoftSwitch</div>
                      <div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,
                        REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</div>
                      <div>Supported: replaces</div>
                      <div>WWW-Authenticate: Digest algorithm=MD5,
                        realm="provider.dev", nonce="63fc6951"</div>
                      <div>Content-Length: 0</div>
                      <div><br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a moz-do-not-send="true" href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
              target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </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 World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>