Hi Pete,

Looking to the logs, I see only one line :

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]

The "reg_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 :-/ .....

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).

So, are you sure that the 401 is actually received ? maybe the second REGISTER is actually a retransmission of the first one ?

Best regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 04/21/2017 11:14 AM, Peter Baines (lists) wrote:
Hello,

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.

It does work with UDP so I get:

REGISTER -> 401 (with WWW-Authenticate) -> REGISTER (with Authorization) -> 200 OK

However when I tell it to use TCP it doesn't add the Authorization header:

UPDATE registrant SET forced_socket = 'tcp:1.2.3.4:5060 <http://1.2.3.4:5060>';

REGISTER -> 401 (with WWW-Authenticate) -> REGISTER (no Authorization) -> 403 Forbidden

I've included the debug log for the failing TCP REGSITER attempt: https://pastebin.com/gigJkWZX

Regards,
Peter


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to