Hi Alex,<div><br></div><div>I moved it to before the consume_credentials() in my route script:</div><div><br></div><div>The sequence:</div><div><br></div><div>if(!proxy_authorize(&quot;&quot;  {</div><div><br></div><div>SCRIPT SCRIPT </div>
<div><br></div><div><div>        append_rpid_hf();</div><div><br></div><div>        consume_credentials();</div></div><div><br></div><div><br></div><div>Still getting:</div><div><br></div><div>sip[6820]: DEBUG: auth [rpid.c:177]: no rpid AVP</div>
<div><br></div><div>This worked perfectly in kamailio 1.x.x</div><div><br></div><div><br></div><div>Stephen.</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On 25 March 2010 21:33, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 03/25/2010 05:32 PM, dotnetdub wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Alex,<br>
<br>
Do I need to do something different in the script to 1.5.3 ? As you can<br>
see from my first mail I am loading the avp from the DB as before.<br>
<br>
I just did this in my route:<br>
<br>
xlog(&quot;L_INFO&quot;, &quot;[ROUTE-4 -&gt;] rpid test: $avp(s:rpid) &quot;);<br>
<br>
Result:<br>
<br>
INFO: &lt;script&gt;: [ROUTE-4 -&gt;] rpid test: &lt;null&gt;<br>
<br>
Not sure what I&#39;m missing here:<br>
<br>
# auth<br>
<br>
modparam(&quot;auth&quot;, &quot;rpid_avp&quot;, &quot;$avp(s:rpid)&quot;)<br>
<br>
My subscriber table has column rpid and value is valid for this subscriber.<br>
</blockquote>
<br></div>
Those AVPs are only loaded when www_authorize()/proxy_authorize() is called.  Make sure you are doing append_rpid_hf() before consume_credentials(), also.<div><div></div><div class="h5"><br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
<br>
Tel    : +1 678-954-0670<br>
Direct : +1 678-954-0671<br>
Web    : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
</div></div></blockquote></div><br></div>