[OpenSIPS-Users] Carrier ID for accounting
Vic Jolin
adjolin at gmail.com
Thu Jul 2 03:04:53 EST 2020
Where can I get the carrier attributes?
On Wed, Jul 1, 2020 at 2:33 PM Răzvan Crainea <razvan at opensips.org> wrote:
> 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
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200702/8647eaf2/attachment-0001.html>
More information about the Users
mailing list