[OpenSIPS-Devel] Error in script
Dan Pascu
dan at ag-projects.com
Thu Apr 18 13:07:54 EDT 2019
I get this error reported in script:
Apr 18 20:02:02 [21404] ERROR:acc:pv_parse_acc_extra_name: tag <username> not declared in modparam section!
Apr 18 20:02:02 [21404] ERROR:core:pv_parse_spec: pvar "acc_extra" has an invalid name param [username]
Apr 18 20:02:02 [21404] ERROR:core:pv_parse_spec: wrong char [)/41] in [$acc_extra(username)] at [19 (5)]
Apr 18 20:02:02 [21404] Traceback (last included file at the bottom):
Apr 18 20:02:02 [21404] 0. o.cfg
Apr 18 20:02:02 [21404] CRITICAL:core:yyerror: parse error in o.cfg:2288:5-25: unknown script variable
Apr 18 20:02:02 [21404] #
Apr 18 20:02:02 [21404] route[SETUP_ACCOUNTING] {
Apr 18 20:02:02 [21404] $acc_extra(username) := $Au;
Apr 18 20:02:02 [21404] ^~~~~~~~~~~~~~~~~~~~~
Apr 18 20:02:02 [21404] $acc_extra(asserted_identity) := $avp(asserted_identity);
Apr 18 20:02:02 [21404] $acc_extra(billing_party) := $avp(billing_party);
Apr 18 20:02:02 [21404] ERROR:acc:pv_parse_acc_extra_name: tag <asserted_identity> not declared in modparam section!
Apr 18 20:02:02 [21404] ERROR:core:pv_parse_spec: pvar "acc_extra" has an invalid name param [asserted_identity]
Apr 18 20:02:02 [21404] ERROR:core:pv_parse_spec: wrong char [)/41] in [$acc_extra(asserted_identity)] at [28 (5)]
Apr 18 20:02:02 [21404] CRITICAL:core:yyerror: parse error in o.cfg:2289:5-34: unknown script variable
Apr 18 20:02:02 [21404] ERROR:acc:pv_parse_acc_extra_name: tag <billing_party> not declared in modparam section!
Apr 18 20:02:02 [21404] ERROR:core:pv_parse_spec: pvar "acc_extra" has an invalid name param [billing_party]
Apr 18 20:02:02 [21404] ERROR:core:pv_parse_spec: wrong char [)/41] in [$acc_extra(billing_party)] at [24 (5)]
However username is declared in extra fields (this worked fine in 2.4):
modparam("acc", "extra_fields", "aaa: \
username -> User-Name; \
asserted_identity -> Sip-RPid; \
billing_party -> Billing-Party; \
...")
--
Dan
More information about the Devel
mailing list