[OpenSIPS-Users] Carrier ID for accounting

Vic Jolin adjolin at gmail.com
Wed Jul 1 04:33:10 EST 2020


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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200701/b6e3c722/attachment.html>


More information about the Users mailing list