[SR-Users] UACREG - answering to 401 on invite

Daniel Tryba d.tryba at pocos.nl
Tue Sep 26 15:27:31 CEST 2017


On Tue, Sep 26, 2017 at 09:08:26AM -0400, Jean CĂ©rien wrote:
> With the UACREG module, I am registering to a remote provider. Register
> goes out, 401 back, Register goes out with nonce & co, OK
> 
> Later, when I send an invite, the provider issues an 401 Unauthorized. I
> guess it expects me to resubmit an INVITE with the authentication data, but
> I dont see how to do that.

Are you saying the 401 doesn't contain a challenge? Otherwise you
should just use uac_auth() (just like you probably already do for the
REGISTER), following URL contains an example for an INVITE:
https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_auth




More information about the sr-users mailing list