hello,<br>I tried following in route script.<br><br>route{<br>    <br>    if (is_method(&quot;INVITET&quot;))<br>    {<br>    avp_db_query(&quot;select count from load_count where dest=&#39;1&#39;&quot;,&quot;$avp(i:1)&quot;);<br>
   # avp_db_query(&quot;select count from load_count where dest=&#39;2&#39;&quot;,&quot;$avp(i:2)&quot;);<br><br>    if(avp_check(&quot;$avp(i:1)&quot;, &quot;eq/1/i&quot;))<br>    {<br>        avp_db_query(&quot;update load_count set count=&#39;0&#39; where dest=&#39;1&#39;;&quot;);<br>
        <br>        forward(&quot;<a href="http://172.29.9.140:5060">172.29.9.140:5060</a>&quot;);<br>        #forward();<br>        exit();<br>    }<br>    else<br>    {    avp_db_query(&quot;update load_count set count=&#39;1&#39; where dest=&#39;1&#39;;&quot;);<br>
        <br>       # forward();<br>        forward(&quot;<a href="http://172.29.9.136:5060">172.29.9.136:5060</a>&quot;);<br>        exit;<br>    }<br>    }<br>   } <br><br>only else part is working. All calls are forwarded to 136 only.<br>
I think it is not modifying database or its not persistent.<br>Please tell if that update query is correct and anything else i have to do to make db persistent?<br>thank you<br>