<br>Hi Julian.<br><br>Are you using the syntax you pasted for modparam?<br><br>Try the following syntax:<br><br>modparam("auth|lcr", "rpid_avp", "$avp(i:302)")<br><br>Regards.<br><br>Sergio G.<br>
<br><br><div class="gmail_quote">On Sun, Feb 22, 2009 at 7:36 AM, Julian Yap <span dir="ltr"><<a href="mailto:julianokyap@gmail.com">julianokyap@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I'm intending on loading rpid_avp from auth. This will be used with a<br>
P-Asserted-Identity header. I am storing the RPID in the 'rpid' of<br>
the subscriber column of my database.<br>
<br>
I believe that s:rpid should then get loaded during authentication but<br>
I think I'm missing something.<br>
<br>
Here is my module load line:<br>
modparam("^auth$|lcr", "rpid_avp", "$avp(i:302)")<br>
<br>
Then later on, setting the $avp(i:302) manually works:<br>
$avp(i:302) = "<<a href="mailto:sip%3A8085331000@mysip.server.com">sip:8085331000@mysip.server.com</a>>";<br>
append_hf("P-Asserted-Identity: $avp(i:302)\r\n");<br>
<br>
Any clues here? Basically I want to eliminate the line where I'm<br>
hard-coding in the $avp(i:302) value. I'm kinda confused with the<br>
documentation and haven't found any examples.<br>
<br>
Thanks,<br>
Julian<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sergio Gutiérrez<br>