<p>Hello.<br>
We use UAC for RGISTER some trunks</p>

<p>After fiew days normally work we have an issue that UAC not respond to 401 reply with WWW-Authenticate with reREGISTER with WWW. We have only 2 packets- REGISTR and 401.</p>

<p>IP 10.0.1.12.5068 > 1.2.3.4.5060: UDP, length 467<br>
<a href="mailto:E.......@..F">E.......@..F</a><br>
...............REGISTER sip:provider.com SIP/2.0<br>
Via: SIP/2.0/UDP my.service.com:5068;branch=z9hG4bKdb22.edd7eac5000000000000000000000000.0<br>
To: sip:login@provider.com<br>
From: sip:login@provider.com;tag=6a39af2190f8b2c99cc63bfeb3a3959c-bfba<br>
CSeq: 10 REGISTER<br>
Call-ID: 5e171580088d170a-9952@10.0.1.12<br>
Max-Forwards: 70<br>
Content-Length: 0<br>
User-Agent: kamailio (4.3.0-dev5 (x86_64/linux))<br>
Contact: sip:login@my.service.com:5068<br>
Expires: 360</p>

<p>IP 1.2.3.4.5060 > 10.0.1.12.5068: UDP, length 571<br>
Q.......-.<br>
........C.NSIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP my.service.com:5068;branch=z9hG4bKdb22.edd7eac5000000000000000000000000.0;received=23.100.24.250<br>
From: sip:login@provider.com;tag=6a39af2190f8b2c99cc63bfeb3a3959c-bfba<br>
To: sip:login@provider.com;tag=as1550511c<br>
Call-ID: 5e171580088d170a-9952@10.0.1.12<br>
CSeq: 10 REGISTER<br>
Server: FastTel SoftSwitch<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>
Supported: replaces<br>
WWW-Authenticate: Digest algorithm=MD5, realm="provider.com", nonce="109104dc"<br>
Content-Length: 0</p>

<p>We have another trunk and reREGISTER is correctly</p>

<p>REGISTER sip:another_prov.com SIP/2.0<br>
Via: SIP/2.0/UDP my.service.com:5068;branch=z9hG4bK7fd1.3d7c2fd7000000000000000000000000.0<br>
To: sip:login_to_another_prov@another_prov.com<br>
From: sip:login_to_another_prov@another_prov.com;tag=6a39af2190f8b2c99cc63bfeb3a3959c-f8ba<br>
CSeq: 10 REGISTER<br>
Call-ID: 5e171580088d1edd-9952@10.0.1.12<br>
Max-Forwards: 70<br>
Content-Length: 0<br>
User-Agent: kamailio (4.3.0-dev5 (x86_64/linux))<br>
Contact: sip:login_to_another_prov@my.service.com:5068<br>
Expires: 360</p>

<p>IP another_prov.com.5060 > 10.0.1.12.5068: UDP, length 544<br>
E..
........(..SIP/2.0 401 Unauthorized<br>
Via: SIP/2.0/UDP my.service.com:5068;branch=z9hG4bK7fd1.3d7c2fd7000000000000000000000000.0;rport=5068;received=23.100.28.126<br>
To: ;tag=04e2a294d0728b89107e081a19babab4.d569<br>
From: sip:login_to_another_prov@another_prov.com;tag=6a39af2190f8b2c99cc63bfeb3a3959c-f8ba<br>
CSeq: 10 REGISTER<br>
Call-ID: 5e171580088d1edd-9952@10.0.1.12<br>
WWW-Authenticate: Digest realm="another_prov.com", nonce="VTifD1U4neNLMSYRoxNlOpD7hPSu3ET3"<br>
Server: kamailio (4.2.1 (x86_64/linux))<br>
Content-Length: 0</p>

<p>IP 10.0.1.12.5068 > another_prov.com.5060: UDP, length 690<br>
<a href="mailto:E...uT..@">E...uT..@</a>...<br>
...6...........REGISTER sip:another_prov.com SIP/2.0<br>
Via: SIP/2.0/UDP my.service.com:5068;branch=z9hG4bK8fd1.ea73d070000000000000000000000000.0<br>
To: sip:login_to_another_prov@another_prov.com<br>
From: sip:login_to_another_prov@another_prov.com;tag=6a39af2190f8b2c99cc63bfeb3a3959c-f8ba<br>
CSeq: 11 REGISTER<br>
Call-ID: 5e171580088d1edd-9952@10.0.1.12<br>
Max-Forwards: 70<br>
Content-Length: 0<br>
User-Agent: kamailio (4.3.0-dev5 (x86_64/linux))<br>
Contact: sip:login_to_another_prov@my.service.com:5068<br>
Expires: 360<br>
Authorization: Digest username="login_to_another_prov", realm="another_prov.com", nonce="VTifD1U4neNLMSYRoxNlOpD7hPSu3ET3", uri="sip:another_prov.com", response="2ee14a437173700e88056279b854749f", algorithm=MD5</p>

<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/140">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZVKrfNFFRnTEfVH451s4T2UBXLGWks5oCU1SgaJpZM4EHRS9.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/140"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>