Hi, i me again. I tried to store in the DB the avp with i:15 from the avpops module itself and when i try to get it again from the DB and check it against the original value it come back to me with the same:
0(31008) ERROR:avpops:check_avp: value types don't match 0(31008) DEBUG:avpops:check_avp: no match
I cannot understand why the avp types doesn't match if the value and name is exactly identical and cannot understand why it have flags=A . Can someone help me please or point me to some documentation on it? Thanks, Bye, Marcello
Alle 16:19, martedì 3 gennaio 2006, Marcello Lupo ha scritto:
Hi, abviously was a stupid question. I was missing the function avp_printf to put pseudo variables into AVP.
Now there is another issue. When i make this code:
avp_printf("i:16","$au")
if(!avp_check("i:15","eq/i:16")) { avp_print(); xlog("L_NOTICE","--- Not allowed caller ---\n"); }
the code give me: 0(30332) ERROR:avpops:check_avp: value types don't match 0(30332) DEBUG:avpops:check_avp: no match 0(30332) DEBUG:avpops:print_avp: p=0x2a97969ed0, flags=2 0(30332) DEBUG: id=<16> 0(30332) DEBUG: val_str=<123456> 0(30332) DEBUG:avpops:print_avp: p=0x2a97969e10, flags=A 0(30332) DEBUG: id=<15> 0(30332) DEBUG: val_str=<123456>
The avp i:15 i load it from DB in the avp table but it return flags=A instead of flags=2 as it should give.
The DB entry is : mysql> select * from usr_preferences; +------+------------+--------+-----------+------+------------+
| uuid | username | domain | attribute | type | value |
+------+------------+--------+-----------+------+------------+
| | 123456 | | 15 | 2 | 123456 |
Can you help me with this?? What does it mean flags=A? Thanks, Bye, Marcello
Alle 15:15, martedì 3 gennaio 2006, Marcello Lupo ha scritto:
Hi, yes i do.
if (!proxy_authorize("","subscriber")) { if(isflagset(FLAG_DEBUG)) { xlog("L_NOTICE","--- User without credential $fu
username $au realm $ar from $si:$sp ---\n"); } proxy_challenge("","0"); return; } thanks, Bye, Marcello
Alle 15:07, martedì 3 gennaio 2006, Klaus Darilion ha scritto:
Just a guess: Do you proxy_authenticate before using $ua ? I guess this is necessary to parse the Authentication header.
regards klaus
Marcello Lupo wrote:
Hi, probably a stupid question, but how to write the auth username passed on authentication to an AVP?? I tried to access $ua pseudo variable in openser to get it in to the AVP but it failed, obviously.As the docs says the pseudo variables are accessible only for avp_print function. Any help? Thanks, Bye, Marcello
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Serusers mailing list Serusers@iptel.org http://mail.iptel.org/mailman/listinfo/serusers