[SR-Users] www_challenge(realm, flags) question

Andrei Pelinescu-Onciul andrei at iptel.org
Thu Oct 7 15:32:36 CEST 2010


On Oct 07, 2010 at 16:22, Juha Heinanen <jh at tutpro.com> wrote:
> Andrei Pelinescu-Onciul writes:
> 
> > P.S.: changing www_challenge() would be trivial, but requires testing.
> > Only auth_send_reply() would need to be changed to use slb.send_reply()
> > and probably a module param. added to select between forced stateless
> > replies (lower processing) or auto replies.
> 
> i changed return in auth_send_reply() to this:
> 
> 	return slb.send_reply(msg, code, reason);
> 
> but got compile error:
> 
> make modules=modules/auth modules
> CC (cc) [M auth.so]		auth_mod.o
> auth_mod.c: In function ???auth_send_reply???:
> auth_mod.c:569: error: ???sl_api_t??? has no member named ???send_reply???
> make[1]: *** [auth_mod.o] Error 1

Sorry, it's slb.freply(), but you also need to send reason as str
(in auth_send_reply reason is char, but slb.freply() expects a str*
reason).

Andrei



More information about the sr-users mailing list