Hi folks,
I would like to know what to use for the following scenario. I want users to be able to test their registration by sending REGISTER and Kamailio sends them 200 OK if credentials are OK. However I don't want the aor to be stored in location table. This REGISTER should be only used for testing the settings. After some time I would allow the registration to be stored and users will normally receive calls.
I tried to implement this by not doing save(location) when the flag from load_credential is set. Unfortunately it is the function save who sends 200 OK. When it is not being called, a user agent keeps sending REGISTER until SIP triggers fail.
So is there any other common practice how to test registers? Is there any flag that can prevent storing location? Can I send 200 OK to these user in any other way?
Thanks
Efelin
Hi,
On 12/07/2011 09:45 AM, Efelin Novak wrote:
So is there any other common practice how to test registers? Is there any flag that can prevent storing location? Can I send 200 OK to these user in any other way?
You can do sl_send_reply("200", "Auth test ok") after www_authenticate(...) succeeds.
Andreas
Thank you Andreas,
it worked like a charm.
Efelin
2011/12/7 Andreas Granig agranig@sipwise.com:
Hi,
On 12/07/2011 09:45 AM, Efelin Novak wrote:
So is there any other common practice how to test registers? Is there any flag that can prevent storing location? Can I send 200 OK to these user in any other way?
You can do sl_send_reply("200", "Auth test ok") after www_authenticate(...) succeeds.
Andreas
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