[OpenSER-Users] OpenSER: AVP script flag bugs in 1.3 and trunk

Daniel-Constantin Mierla daniel at voice-system.ro
Mon Dec 17 22:48:53 CET 2007


Hello,

I have tried:
    $avp(i1:22) = 22;
    $avp(i2:33) = 33;

resulting in:

Dec 17 23:40:43 [13418] INFO:avpops:ops_print_avp: p=0xb5b98fa8, 
flags=0x0200
Dec 17 23:40:43 [13418] INFO:avpops:ops_print_avp:                      
id=<33>
Dec 17 23:40:43 [13418] INFO:avpops:ops_print_avp:                      
val_int=<33>
Dec 17 23:40:43 [13418] INFO:avpops:ops_print_avp: p=0xb5b98f90, 
flags=0x0100
Dec 17 23:40:43 [13418] INFO:avpops:ops_print_avp:                      
id=<22>
Dec 17 23:40:43 [13418] INFO:avpops:ops_print_avp:                      
val_int=<22>

And it is correct. The part with aliases does not work, as aliases were 
defined for names, not for flags, I sent you a reply:
http://lists.openser.org/pipermail/users/2007-November/014472.html

I have it in the todo list to extend the aliases for avp flags as well.

Cheers,
Daniel


On 12/17/07 13:12, Helmut Kuper wrote:
> Hi Daniel,
>
>
> here are the config parts:
>
>
> avp_aliases="A_status=i1:10; B_status=i2:10"
>
> route{
>
>         $avp(i1:11)=111;
>         $avp(i2:11)=222;
>         $avp(A_status)=333;
>         $avp(B_status)=444;
>
>         xlog("L_INFO", "$avp(A_status), $avp(B_status), $avp(i1:11), 
> $avp(i2:11)\n");
>
>                  if(!avp_db_load("$fu","i1"))
>                 {
>                         sl_send_reply("404", "Not Found - caller");
>                         exit;
>                 }
>
>                  if(!avp_db_load("$ru","i2"))
>                 {
>                         sl_send_reply("404", "Not Found - callee");
>                         exit;
>                 }
>       
>        avp_print();
>
> }
>
>
>
>
>
> Daniel-Constantin Mierla schrieb:
>   
>> Hello,
>>
>> can you send me the relevant parts of the configuration file? I want to 
>> reproduce the issue, maybe there are other side effects.
>>
>> Cheers,
>> Daniel
>>
>>   
>>     
>
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the sr-users mailing list