<div dir="ltr">Hi,<div><br></div><div>I try your example but get follow ERROR:</div><div><br><div>May 1 15:48:48 dev opensips: ERROR:core:pv_parse_spec: unknown script var $acc_extra(), maybe a 'loadmodule' statement is missing?</div><div>May 1 15:48:48 dev opensips: ERROR:core:pv_parse_spec: wrong char [s/115] in [$acc_extra(system_name)] at [11 (5)]</div><div>May 1 15:48:48 dev opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 818, column 13-36: unknown script variable</div><div>May 1 15:48:48 dev opensips: CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 818, column 62-63: invalid left operand in assignment</div><div><br></div><div><br></div>line 818 in may script:<br>$acc_extra(system_name)<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>= $avp(system_name);</div><div><br></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-01 13:48 GMT+03:00 Ionut Ionita <span dir="ltr"><<a href="mailto:ionutionita@opensips.org" target="_blank">ionutionita@opensips.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Read the docs[0] for usage. In 2.3 you define a mapping between a
tag that should be used with<br>
acc_extra/acc_log script variables and a radius avp in your case.
That being said you should have<br>
<br>
modparam("acc","extra_fields", "aaa:system_name->MV-System...<wbr>")<br>
...<br>
route {<br>
...<br>
$acc_extra(system_name) = $avp(system_name);<br>
...<br>
}<br>
<br>
This will translate to $avp(system_name) being sent as radius avp
MV-System.<br>
<p><br>
</p>
<p>[0]
<a class="m_-1175388927588354775moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.3.x/acc#ACC-extra-id" target="_blank">http://www.opensips.org/html/<wbr>docs/modules/2.3.x/acc#ACC-<wbr>extra-id</a><br>
</p>
<pre class="m_-1175388927588354775moz-signature" cols="72">Ionut Ionita
OpenSIPS Developer</pre><div><div class="h5">
<div class="m_-1175388927588354775moz-cite-prefix">On 04/29/2017 01:50 PM, Dragomir
Haralambiev wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I try to move from 2.2.3 to 2.3.<br>
In 2.3 modparam("acc", "aaa_extra",... is removed.<br>
<br>
</div>
<div>In 2.2.3 I use extra data with:<br>
<div>modparam("acc", "aaa_extra",
"MV-System=$avp(system_name);</div>
<div> <span class="m_-1175388927588354775gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>MV-UserName=$fU;</div>
<div> <span class="m_-1175388927588354775gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>MV-Number=$rU;</div>
<span class="m_-1175388927588354775gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>MV-Timestamp=$avp(timestamp)")<wbr> </div>
<div><br>
</div>
<div>For 2.3 I rewrite to:<br>
<div>modparam("acc", "extra_fields",
"aaa:$avp(system_name)->MV-<wbr>System;</div>
<div><span class="m_-1175388927588354775gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>$fU->MV-UserName;</div>
<div><span class="m_-1175388927588354775gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>$rU->MV-Number;</div>
<div><span class="m_-1175388927588354775gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>$avp(timestamp)->MV-Timestamp"<wbr>)</div>
</div>
<div><br>
</div>
<div>When try to start 2.3 I receive follow message:<br>
<br>
</div>
<div>ERROR:acc:init_acc_aaa: acc: can't get code for the
MV-System;.......<br>
<br>
How to use correct extra_fields in 2.3?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Dragomir</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="m_-1175388927588354775mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-1175388927588354775moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-1175388927588354775moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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-<wbr>bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>