Hi, Vic!
The acc extra_fields syntax is not ok - just use `carrierid` if the
field has the same name with the column table. Please check the
documentation[1] for more details.
[1] https://opensips.org/docs/modules/3.1.x/acc.html#param_extra_fields
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 7/1/20 7:33 AM, Vic Jolin wrote:
Hi,
I was trying to put the carrier id in the acc extra fields but Im getting
Jul 1 04:00:16 Opensip opensips: #011$acc_extra(carrierid) =
$avp(carrier_id);
Jul 1 04:00:16 Opensip opensips: #011^~~~~~~~~~~~~~~~~~~~~~
Jul 1 04:00:16 Opensip opensips:
Jul 1 04:00:16 Opensip opensips: #011do_accounting("db");
Jul 1 04:00:16 Opensip opensips: ERROR:core:parse_opensips_cfg: bad
config file (1 errors)
Jul 1 04:00:16 Opensip opensips: ERROR:core:main: failed to parse
config file (null)
Jul 1 04:00:16 Opensip opensips: NOTICE:core:main: Exiting....
I have this in the config
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);")
Also, I would like to put the IP address of the gateway that last tried
to make the call, either missed or not, but sometimes I am also getting
the IP address of the originating call
where should I put this?
$acc_extra(dst_ip) = $rd;
_______________________________________________
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