<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Pete,<br>
<br>
Looking to the logs, I see only one line :<br>
<br>
Apr 21 09:58:56 dev01 /usr/local/opensips_2.2/sbin/opensips[4766]:
DBG:uac_registrant:reg_tm_cback: tm [0x7f2ceb70b2f0] notification
cb for FAKED_REPLY [408] reply at [1492761536]<br>
<br>
The "r</tt><tt><tt>eg_tm_cback" is the TM callback used to report
back to the uac_registrant module the reply code for the sent
REGISTER. And I see there a 408 timeout :-/ .....<br>
<br>
Even more, the "run_reg_tm_cback" function (that triggers the
build of the auth hdr) does not show up logging anything (and
there are some debug over there).<br>
<br>
So, are you sure that the 401 is actually received ? maybe the
second REGISTER is actually a retransmission of the first one ?<br>
<br>
</tt>Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit May 2017 Amsterdam
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
<div class="moz-cite-prefix">On 04/21/2017 11:14 AM, Peter Baines
(lists) wrote:<br>
</div>
<blockquote
cite="mid:CADNsZnV2KMKZa=3_eNpiVzTod=j5NqUzNAbQc7Pgeo1RqghtOw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hello,<br>
<br>
</div>
I am trying to use the uac_registrant module (2.2)
to register via TCP but when it recieves the 401 it
is not adding the Authorization header.<br>
<br>
</div>
It does work with UDP so I get:<br>
<br>
</div>
REGISTER -> 401 (with WWW-Authenticate) ->
REGISTER (with Authorization) -> 200 OK<br>
<br>
</div>
However when I tell it to use TCP it doesn't add the
Authorization header:<br>
<br>
UPDATE registrant SET forced_socket = 'tcp:<a
moz-do-not-send="true" href="http://1.2.3.4:5060"
target="_blank">1.2.3.4:5060</a>';<br>
<br>
</div>
REGISTER -> 401 (with WWW-Authenticate) -> REGISTER
(no Authorization) -> 403 Forbidden<br>
<br>
</div>
<div>I've included the debug log for the failing TCP REGSITER
attempt: <a moz-do-not-send="true"
href="https://pastebin.com/gigJkWZX">https://pastebin.com/gigJkWZX</a><br>
<br>
</div>
Regards,<br>
</div>
Peter</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>