<div dir="ltr">Hi i use opensips 2.3 (<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">OpenSIPS (2.3.3 (x86_64/linux)) drouting</span></span><div><span style="font-family:monospace"><font color="#000000">And I need rule_id variable to store in CDR.</font></span></div><div><span style="font-family:monospace"><font color="#000000"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">modparam("drouting", "use_partitions", 1)
</span><br>modparam("drouting", "carrier_id_avp", '$avp(carrier_id)')
<br>modparam("drouting", "partition_id_pvar", "$var(matched_partition)")
<br>modparam("drouting", "rule_id_avp", '$avp(dr_rule_id)')<br>
<br></span><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">if(!do_routing("*:1","W",,,"$avp(gateway_attr)","$avp(dr_rule_from)")) {
</span><br> xlog("do_routing: No rules matching the URI/n");
<br> send_reply("503","No rules matching the URI");
<br> exit;
<br> } else {
<br> xlog("do_routing: to operator $avp(carrier_id)/n"); <br> xlog("L_INFO", "get_route: rule_id $avp(dr_rule_id)\n");<br></span>}</font></span></div><div><span style="font-family:monospace"><font color="#000000">But in output</font></span></div><div><span style="font-family:monospace"><font color="#000000"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Opensips: May 21 18:06:18 [26575] get_route: rule_id - <null></span><br>
<br></span><br></font>
<br></span></div></div>