Hi, I try your example but get follow ERROR:
May 1 15:48:48 dev opensips: ERROR:core:pv_parse_spec: unknown script var $acc_extra(), maybe a 'loadmodule' statement is missing? May 1 15:48:48 dev opensips: ERROR:core:pv_parse_spec: wrong char [s/115] in [$acc_extra(system_name)] at [11 (5)] May 1 15:48:48 dev opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 818, column 13-36: unknown script variable May 1 15:48:48 dev opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 818, column 62-63: invalid left operand in assignment line 818 in may script: $acc_extra(system_name) = $avp(system_name); 2017-05-01 13:48 GMT+03:00 Ionut Ionita <[email protected]>: > 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 > [email protected]http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
