Hi Alex,<div><br></div><div>Do I need to do something different in the script to 1.5.3 ? As you can see from my first mail I am loading the avp from the DB as before.</div><div><br></div><div>I just did this in my route:</div>
<div><br></div><div>xlog("L_INFO", "[ROUTE-4 ->] rpid test: $avp(s:rpid) ");</div><div><br></div><div>Result:</div><div><br></div><div>INFO: <script>: [ROUTE-4 ->] rpid test: <null></div>
<div><br></div><div>Not sure what I'm missing here:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div class="im" style="color: rgb(80, 0, 80); ">
# auth<br><br>modparam("auth", "rpid_avp", "$avp(s:rpid)")<br></div></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
</span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; ">My subscriber table has column rpid and value is valid for this subscriber.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; "><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; ">Thanks,</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; ">Stephen</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; "><br>
</span></font></div><br><div class="gmail_quote">On 25 March 2010 12:57, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Sounds like $avp(s:rpid) is not set at the time that you're calling append_rpid_hf().<div class="im"><br>
<br>
On 03/25/2010 08:46 AM, dotnetdub wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi List,<br>
<br>
I have Kamailio 3.0.1 running from GIT with my old 1.5.3 config file.<br>
Everything seems fine except the RPID.<br>
<br>
I'm not getting any RPID sent in the SIP message and if I put debug=3 I see:<br>
<br>
DEBUG: auth [rpid.c:177]: no rpid AVP<br>
<br>
My config:<br>
<br>
# auth<br>
<br>
modparam("auth", "rpid_avp", "$avp(s:rpid)")<br>
modparam("auth", "rpid_prefix", "<sip:")<br>
modparam("auth", "rpid_suffix","@<a href="http://asterisk.ie" target="_blank">asterisk.ie</a><br></div>
<<a href="http://asterisk.ie" target="_blank">http://asterisk.ie</a>>;party=calling;id-type=subscriber;privacy=off;screen=yes>")<div class="im"><br>
<br>
# auth_db<br>
<br>
modparam("auth_db", "db_url", "mysql://openser:XSXXXX@localhost/openser")<br>
modparam("auth_db", "calculate_ha1", 1)<br>
modparam("auth_db", "password_column", "password")<br>
modparam("auth_db", "load_credentials", "$avp(s:rpid)=rpid")<br>
<br>
in my route:<br>
<br>
append_rpid_hf();<br>
<br>
Probably missing something very simple. Any help would be appreciated.<br>
<br>
Thanks,<br>
Stephen.<br>
<br>
<br>
<br></div>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
<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>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>