Hi, Vic!
You are not using the correct provisioning in the extra fields. Please
double check the ACC module documentation[1], where it states that for
the db engine, the log_name represents the column in the acc table where
that value ends up.
According to your specifications, you want to dump the carrierid in the
$avp(carrier_id) table; luckily for the flatstore engine the column is
not relevant, as it is nowhere used.
If you want to get the carrierid and ruleid values in the flatstore, you
have to explicitly set the corresponding tags in your script:
$acc_extra(carrierid) = $avp(carrier_id);
$acc_extra(ruleid) = $avp(rule_id);
Make sure to do that after you call do_routing().
[1] https://opensips.org/docs/modules/3.1.x/acc.html#ACC-extra-id
Best regards,
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 7/2/20 7:13 PM, Vic Jolin wrote:
Hello,
I have this for drouting
loadmodule "drouting.so"
modparam("drouting", "rule_prefix_avp", '$avp(dr_prefix)')
modparam("drouting", "carrier_id_avp", '$avp(carrier_id)')
modparam("drouting", "gw_id_avp", '$avp(gw_id)')
modparam("drouting", "ruri_avp", '$avp(dr_ruri)')
modparam("drouting", "gw_priprefix_avp", '$avp(gw_priprefix)')
modparam("drouting", "rule_id_avp", '$avp(rule_id)')
and for acc
modparam("acc", "extra_fields", "db: callerid->callerid; ani->ani;
prefix->prefix; src_ip->src_ip; dst_ip->dst_ip; acctid->acctid;
carrierid->$avp(carrier_id); ruleid->$avp(rule_id)")
modparam("acc", "db_url", "flatstore:/var/log/acc")
Can anyone tell me why on the flatstore files the carrierid, and ruleid
is empty?
_______________________________________________
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