<div dir="ltr">Where can I get the carrier attributes?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 1, 2020 at 2:33 PM Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, Vic!<br>
<br>
The acc extra_fields syntax is not ok - just use `carrierid` if the <br>
field has the same name with the column table. Please check the <br>
documentation[1] for more details.<br>
<br>
[1] <a href="https://opensips.org/docs/modules/3.1.x/acc.html#param_extra_fields" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.1.x/acc.html#param_extra_fields</a><br>
<br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 7/1/20 7:33 AM, Vic Jolin wrote:<br>
> Hi,<br>
> <br>
> I was trying to put the carrier id in the acc extra fields but Im getting<br>
> <br>
> Jul  1 04:00:16 Opensip opensips: #011$acc_extra(carrierid) = <br>
> $avp(carrier_id);<br>
> Jul  1 04:00:16 Opensip opensips: #011^~~~~~~~~~~~~~~~~~~~~~<br>
> Jul  1 04:00:16 Opensip opensips:<br>
> Jul  1 04:00:16 Opensip opensips: #011do_accounting("db");<br>
> Jul  1 04:00:16 Opensip opensips: ERROR:core:parse_opensips_cfg: bad <br>
> config file (1 errors)<br>
> Jul  1 04:00:16 Opensip opensips: ERROR:core:main: failed to parse <br>
> config file (null)<br>
> Jul  1 04:00:16 Opensip opensips: NOTICE:core:main: Exiting....<br>
> <br>
> I have this in the config<br>
> <br>
> modparam("acc", "extra_fields", "db: callerid->callerid; ani->ani; <br>
> prefix->prefix; src_ip->src_ip; dst_ip->dst_ip; acctid->acctid; <br>
> carrierid=$avp(carrier_id);")<br>
> <br>
> Also, I would like to put the IP address of the gateway that last tried <br>
> to make the call, either missed or not, but sometimes I am also getting <br>
> the IP address of the originating call<br>
> <br>
> where should I put this?<br>
> <br>
> $acc_extra(dst_ip) = $rd;<br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>