[SR-Users] Issue with avp

Amit Nepal amit.n at phoenixinternet.net
Mon Feb 14 20:40:03 CET 2011


could someone help me on this please ?
I have been trying to load rpid while loading credentials.

modparam("auth_db", "load_credentials", "$avp(i:123)=rpid")

Now, I am trying to do a check in my routing logic.

xlog("L_NOTICE","The avp is :$avp(i:123)");  (I dont get the value here 
either, i can't see the value when i do avp_print()
if($avp(i:123)<5)
     {
     sl_send_reply("408","Message Here");
     }

I dont get the value of avp at that place.  And this is after successful 
www/proxy_authenticate()

Thank you
Amit

On 2/10/2011 11:46 AM, Amit Nepal wrote:
> Yes it is after successful www/proxy_authenticate()
>
> Thank You
> Amit Nepal
> Systems Administrator
> Phoenix Internet
> Phone: 602-385-0731
>        602-234-0917#112
> http://www.phoenixinternet.net
>
>
> On 2/9/2011 11:54 PM, Daniel-Constantin Mierla wrote:
>> Hello,
>>
>>
>> On 2/9/11 10:35 PM, Amit Nepal wrote:
>>> Hi,
>>> I have been trying to load rpid while loading credentials.
>>>
>>> modparam("auth_db", "load_credentials", "$avp(i:123)=rpid")
>>>
>>> Now, I am trying to do a check in my routing logic.
>>>
>>> xlog("L_NOTICE","The avp is :$avp(i:123)");  (I dont get the value 
>>> here either, i can't see the value when i do avp_print()
>>> if($avp(i:123)<5)
>>>     {
>>>     sl_send_reply("408","Message Here");
>>>     }
>>>
>>> I dont get the value of avp at that place. Any guidance please.
>> Is this piece of config after a successful www/proxy_authenticate()?
>>
>> Cheers,
>> Daniel
>>



More information about the sr-users mailing list