[OpenSIPS-Users] Set Acc Module in 2.3

Ionut Ionita ionutionita at opensips.org
Mon May 1 06:48:55 EDT 2017


Read the docs[0] for usage. In 2.3 you define a mapping between a tag 
that should be used with
acc_extra/acc_log script variables and a radius avp in your case. That 
being said you should have

modparam("acc","extra_fields", "aaa:system_name->MV-System...")
...
route {
...
     $acc_extra(system_name) = $avp(system_name);
...
}

This will translate to $avp(system_name) being sent as radius avp MV-System.


[0] http://www.opensips.org/html/docs/modules/2.3.x/acc#ACC-extra-id

Ionut Ionita
OpenSIPS Developer

On 04/29/2017 01:50 PM, Dragomir Haralambiev wrote:
> Hello,
>
> I try to move from 2.2.3 to 2.3.
> In 2.3 modparam("acc", "aaa_extra",... is removed.
>
> In 2.2.3 I use extra data with:
> modparam("acc", "aaa_extra", "MV-System=$avp(system_name);
> MV-UserName=$fU;
> MV-Number=$rU;
> MV-Timestamp=$avp(timestamp)")
>
> For 2.3 I rewrite to:
> modparam("acc", "extra_fields", "aaa:$avp(system_name)->MV-System;
> $fU->MV-UserName;
> $rU->MV-Number;
> $avp(timestamp)->MV-Timestamp")
>
> When try to start 2.3 I receive follow message:
>
> ERROR:acc:init_acc_aaa: acc: can't get code for the MV-System;.......
>
> How to use correct extra_fields in 2.3?
>
> Regards,
> Dragomir
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170501/1bd73e20/attachment.html>


More information about the Users mailing list