Thanks a lot guys, this was my problem:
if (is_method("REGISTER")) { ... } else { - if (from_uri==myself) + if (is_uri_host_local()) { if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "0"); exit; } stupid mistake and i didn't quite understand how load_credentials suppose to work. now i think i do understand ;) Thanks Dubravko ----- Original Message ---- From: Klaus Darilion <klaus.mailingli...@pernau.at> To: Alex Balashov <abalas...@evaristesys.com> Cc: users@lists.kamailio.org Sent: Thu, February 4, 2010 5:55:00 PM Subject: Re: [Kamailio-Users] load_credentials problem Am 04.02.2010 17:24, schrieb Alex Balashov: > On 02/04/2010 11:22 AM, Dubravko Caric wrote: >> Hi all, >> >> i have a problem when using AVPs which are loaded on client >> registration by the "load_credentials". >> >> in the "subscriber" table i have "rpid" column (value 12345), "email >> address" (b...@example.com) and "acl" (value 3). when client registers, >> these three AVPs are loaded as you can see in debug. But when i want >> to use these AVPs it seems that they are empty. >> >> i don't understand if they are ready for use or do i need to load them >> and how? i'm not doing any actions on AVPs so i could by mistake >> delete or replace the original ones... >> >> version of kamailio is 1.5.1 > > You're not trying to use them after calling consume_credentials(), or > before calling www_authorize(), are you? Or in other words: make sure you call one of the [www|proxy]_authorize functions before accessing the AVPs. klaus _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users