Attached:<div><br></div><div><div>   if(is_uri_host_local()) {</div><div>                if(!allow_trusted()) {</div><div>                        </div><div>                        if(!proxy_authorize(&quot;&quot;, &quot;subscriber&quot;)) {</div>
<div>                                proxy_challenge(&quot;&quot;, &quot;1&quot;);</div><div>                                exit;</div><div>                        }</div><div><br></div><div>                        else if(!check_from()) {</div>
<div>                                sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);</div><div>                                exit;</div><div>                        }</div><div>                }</div><div><br></div>
<div>                else {</div><div>                        sl_send_reply(&quot;403&quot;, &quot;Forbidden&quot;);</div><div>                        exit;</div><div>                }</div><div>        }</div><div><br></div>
<div>        append_rpid_hf();</div><div><br></div><div>        consume_credentials();</div><div><br></div><br><div class="gmail_quote">On 25 March 2010 21:51, 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;">Can you paste the (relatively complete) code block in which all this takes place in order to provide context?<div class="im">
<br>
<br>
On 03/25/2010 05:49 PM, dotnetdub wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Alex,<br>
<br><div class="im">
I moved it to before the consume_credentials() in my route script:<br>
<br>
The sequence:<br>
<br>
if(!proxy_authorize(&quot;&quot;  {<br>
<br>
SCRIPT SCRIPT<br>
<br>
         append_rpid_hf();<br>
<br>
         consume_credentials();<br>
<br>
<br>
Still getting:<br>
<br>
sip[6820]: DEBUG: auth [rpid.c:177]: no rpid AVP<br>
<br>
This worked perfectly in kamailio 1.x.x<br>
<br>
<br>
Stephen.<br>
<br>
<br>
<br>
<br>
On 25 March 2010 21:33, Alex Balashov &lt;<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a><br></div><div><div></div><div class="h5">
&lt;mailto:<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>&gt;&gt; wrote:<br>
<br>
    On 03/25/2010 05:32 PM, dotnetdub wrote:<br>
<br>
        Hi Alex,<br>
<br>
        Do I need to do something different in the script to 1.5.3 ? As<br>
        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<br>
        subscriber.<br>
<br>
<br>
    Those AVPs are only loaded when www_authorize()/proxy_authorize() is<br>
    called.  Make sure you are doing append_rpid_hf() before<br>
    consume_credentials(), also.<br>
<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>
<br>
<br>
</div></div></blockquote><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>