<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><div><font size="2">Hi,</font></div><div><font size="2"><br></font></div><div><font size="2">I'm trying to use avp_db_load to check for some IPs but I'm getting bad avp flags errors. As far as I understand, the syntax is correct.&nbsp;</font></div><div><font size="2"><br></font></div><div><font size="2">TableName: labservers</font></div><div><font size="2">uuid &nbsp; username &nbsp; &nbsp;domain &nbsp; &nbsp; &nbsp;attribute &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;value &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;type</font></div><div><font size="2">"" &nbsp; &nbsp; &nbsp;"" &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span> &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;"domain1" &nbsp; &nbsp;"lab1" &nbsp; &nbsp; &nbsp;"192.168.55.1" &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp;</font></div><div><font
 size="2">"" &nbsp; &nbsp; &nbsp;"" &nbsp; &nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;"domain1" &nbsp; &nbsp;"lab1" &nbsp; &nbsp; &nbsp;"192.168.55.2" &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp;</font></div><div><font size="2">"" &nbsp; &nbsp; &nbsp;"" &nbsp; <span class="Apple-tab-span" style="white-space:pre">                </span>&nbsp;"domain2" &nbsp; &nbsp;"lab2" &nbsp; &nbsp; &nbsp;"192.168.55.3" &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp;</font></div><div><font size="2">"" &nbsp; &nbsp; &nbsp;"" &nbsp; <span class="Apple-tab-span" style="white-space:pre">                </span>&nbsp;"domain2" &nbsp; &nbsp;"lab2" &nbsp; &nbsp; &nbsp;"192.168.55.4" &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp;</font></div><div><font size="2"><br></font></div><div><font size="2">if ((avp_db_load("$ruri/domain","s:lab1/labservers") &amp;&amp; avp_check("s:lab1", "eq/$Ri/gi"))) {</font></div><div><span style="font-size: 13px; "># Do something</span><br></div><div><span style="font-size:
 13px; ">}</span><br></div><div><font size="2"><br></font></div><div><font size="2"><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2857]: RV fixing type 3</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2857]: RV fixing type 2</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2865]: RV is str: "REGISTER"</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [route.c:506]: right EXP optimized: op10(O51, _ST22_) =&gt; op10(O51, _ST1_)</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2857]: RV fixing type 4</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [route.c:929]: fixing avp_db_load()</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: avpops [avpops_parse.c:129]: error - bad avp
 flags</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: avpops [avpops.c:299]: parse failed</div><div>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: &lt;core&gt; [route.c:1216]: fixing failed (code=-1) at cfg:/usr/local/etc/kamailio//kamailio.cfg:71</div><div><br></div><div>Line 71 is the "if" statement above. Could someone see could be the issue?</div><div><br></div><div>Thanks,</div><div>Simpson</div></font></div></div>  </div></body></html>