On 2/4/10 6:09 PM, Dubravko Caric wrote:
Thanks a lot guys,
this was my problem:
if (is_method("REGISTER")) {
...
} else {
- if (from_uri==myself)
+ if (is_uri_host_local())
are you sure you do it right now? You test if the destination domain is
local and authenticate the user. In some cases, if you allow calls from
people registered to other servers (e.g.,
fwd.com) to your users, then
you try to authenticate them.
If you have multi-domains, is_from_local() can be used to test if caller
is using a local domain in URI.
Cheers,
Daniel
{
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.mailinglists(a)pernau.at>
To: Alex Balashov<abalashov(a)evaristesys.com>
Cc: users(a)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" (bob(a)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(a)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(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
--
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
*
http://www.asipto.com/