[SR-Users] Switching form UDP to TCP causes authentication errors

Daniel Tryba d.tryba at pocos.nl
Tue May 29 14:45:03 CEST 2018

On Tue, May 29, 2018 at 11:08:06AM +0000, Wilkins, Steve wrote:
> Thank you for your response.  
> I do not have this issue with UDP, it is when I switch to TCP that an INVITE is sending the Unauthorized.
> If I attempt something like , the code below, the INVITE is not sent out again (as I thought it would be).  I see the ACK being relayed after the Authentication error, and that is it.
> if (t_check_status("401")) {
>     if (!auth_check("$fd", "sipusers", "1")) {
>               auth_challenge("$fd", "0");
>               exit;
>     }
> }  
> I did attempt the uac_auth() as you suggested, but I got no further.

auth_check/auth_challenge are functions to use when you want to
authenticate (for kamailio) incoming requests. 

But isn't the goal to fix asterisk to accept the INVITEs over TCP
without authentication? Maybe something simple like adding 
works (no idea what the pjsip equiv is).

More information about the sr-users mailing list