On Oct 07, 2010 at 15:28, Juha Heinanen <j...@tutpro.com> wrote:
> does www_challenge(realm, flags) know to send its challenge reply
> statefully or statelessly depending on if t_newtran() has been called or
> not?


No, you need to send it by hand.
At least with ser auth_db, I would:
if (!www_authenticate(....)){
...
    if ($digest_challenge != "")
        append_to_reply("%$digest_challenge");
    sl_reply("401", "Unauthorized");
}


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

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to