Set following modparam, and all AVPs will be visible in reply route as well,<div><br></div><div>modparam("tm", "onreply_avp_mode", 1)<br><div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">
On Mon, Sep 10, 2012 at 2:41 PM, Dragomir Haralambiev <span dir="ltr"><<a href="mailto:goup2010@gmail.com" target="_blank">goup2010@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hello, </div><div><br>I need to change accounted AVPs values on onreply_route.<br>How to do that?<br></div><div>Here is example:</div><p>modparam("acc", "detect_direction", 1)<br>modparam("acc", "log_level", 1)<br>
modparam("acc", "cdr_flag", 2) <br>modparam("acc", "failed_transaction_flag", 1)<br>modparam("acc", "log_flag", 1)<br>modparam("acc", "log_missed_flag", 1)</p>
<p>modparam("acc", "aaa_url", "radius:/etc/radiusclient-ng/radiusclient.conf")<br>modparam("acc", "aaa_extra", ".......<br> Billing-Info=$avp(bill_info);<br> .......")<br>
modparam("acc", "aaa_flag", 2) <br>modparam("acc", "aaa_missed_flag", 2)</p><p>....<br>$avp(bill_info)="set init value";<br>setflag(1); setflag(2);<br>t_relay(); </p><p>.....</p>
<div>onreply_route {<br> .....<br> $avp(bill_info)="new bill value";<br> ...<br>}</div><div> </div><div>Best regards,</div><div>PlayMen</div><div> </div><div> </div>
<br>_______________________________________________<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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Muhammad Shahzad<br>-----------------------------------<br>CISCO Rich Media Communication Specialist (CRMCS)<br>CISCO Certified Network Associate (CCNA)<br>
Cell: +92 334 422 40 88<br>MSN: <a href="mailto:shari_786pk@hotmail.com">shari_786pk@hotmail.com</a><br>Email: <a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><br>
</div></div>