<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
@font-face
        {font-family:"Lucida Console \;color\:\#BBBB00";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="NL" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><a name="_MailEndCompose"><span lang="EN-US" style="color:black">Where can I obtain the fixed version, Is it this one? Appeared today at 12:10
</span></a><span lang="EN-US" style="font-family:Wingdings;color:black">J</span><span lang="EN-US" style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://opensips.org/pub/opensips/1.10.0/src/opensips-1.9.1-svn10260_src.tar.gz"><span lang="EN-US">http://opensips.org/pub/opensips/1.10.0/src/opensips-1.9.1-svn10260_src.tar.gz</span></a><span lang="EN-US" style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Thanks a lot for looking into it!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Regards,<o:p></o:p></span></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="706" style="width:529.15pt">
<tbody>
<tr>
<td width="706" style="width:529.15pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:13.5pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";mso-fareast-language:NL">Met vriendelijke groet,</span><span style="font-size:13.5pt;mso-fareast-language:NL"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="706" style="width:529.15pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:13.5pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#A1C31F;mso-fareast-language:NL">Rik Broers</span></b><span lang="EN-US" style="font-size:13.5pt;mso-fareast-language:NL"><br>
</span><b><i><span lang="EN-US" style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";mso-fareast-language:NL">Voice engineer</span></i></b><span lang="EN-US" style="font-size:13.5pt;mso-fareast-language:NL"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US" style="color:black;mso-fareast-language:NL"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="color:black"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:NL">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:NL"> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org]
<b>On Behalf Of </b>Liviu Chircu<br>
<b>Sent:</b> vrijdag 27 september 2013 11:24<br>
<b>To:</b> users@lists.opensips.org<br>
<b>Subject:</b> Re: [OpenSIPS-Users] avp not saved or restored. Usrloc/Registrar module<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hello Rik,<br>
<br>
Both issues happened because of a bug in the contact-DB translation function. It is now fixed. Thank you for reporting!<br>
<br>
Best regards,<br>
<br>
<span style="font-size:12.0pt;mso-fareast-language:NL"><o:p></o:p></span></p>
<pre style="margin-left:35.4pt">Liviu Chircu<o:p></o:p></pre>
<pre style="margin-left:35.4pt">OpenSIPS Developer<o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<p class="MsoNormal" style="margin-left:35.4pt">On 09/27/2013 09:08 AM, Rik Broers wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">The problem of getting the Variable into the database is now solved!</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">The was some integer and char mismatch in the database. Putting every used column on the same type (char) it worked!</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">But I am still struggling to get the AVP filled after a lookup, I have a successful match according to logging. But the AVP is not there.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Regards,</span><o:p></o:p></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="706" style="width:529.15pt;margin-left:35.4pt">
<tbody>
<tr>
<td width="706" style="width:529.15pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:13.5pt"><span style="font-size:10.0pt">Met vriendelijke groet,</span><o:p></o:p></p>
</td>
</tr>
<tr>
<td width="706" style="width:529.15pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:13.5pt"><b><span lang="EN-US" style="font-size:10.0pt">Rik Broers</span></b><span lang="EN-US" style="font-size:13.5pt;mso-fareast-language:NL"><br>
</span><b><i><span lang="EN-US" style="font-size:8.0pt">Voice engineer</span></i></b><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:70.8pt"><b><span lang="EN-US" style="mso-fareast-language:NL">From:</span></b><span lang="EN-US" style="mso-fareast-language:NL">
<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org">mailto:users-bounces@lists.opensips.org</a>]
<b>On Behalf Of </b>Rik Broers<br>
<b>Sent:</b> donderdag 26 september 2013 11:37<br>
<b>To:</b> <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
<b>Subject:</b> [OpenSIPS-Users] avp not saved or restored. Usrloc/Registrar module</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:70.8pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">Hello List,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">I’m having trouble getting $avp(attr) filled after the lookup(“location”)</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">I do the following:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">On incoming register</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console ;color:#BBBB00","serif"">modparam("auth_db", "load_credentials", "$avp(type)</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">=</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:#BB0000">type")</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">modparam("registrar", "attr_avp", "$avp(attr)")</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">modparam("usrloc", "attr_column", "attr")</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">if (is_method("REGISTER"))</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> {</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> xlog("Register incoming")</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua"># authenticate the REGISTER requests</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> if (!www_authorize("", "subscriber"))</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> {</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> www_challenge("", "0")</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> exit</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> }</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> ……</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console ;color:#BBBB00","serif""> $avp(attr)</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">=</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:#BB0000">$avp(type)</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> xlog("attr avp : $avp(attr) ... type avp : $avp(type)")</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> if (!save("location"))</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> sl_reply_error()</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> exit</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console""> }</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US" style="font-size:9.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">This works. It prints nicely both values in the Log but when I check the location table the ATTR column is still NULL.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">Also when I put it by hand on a value in the DB after Lookup(“location”) the AVP is still not filled..</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">I’m trying to have a custom value ready from DB on every incoming INVITE so I can decide on different scenario’s.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">During invite I do the following:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">lookup("location","m", "$fu")</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console";color:aqua">;</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">If I understand the documentation the $avp(attr) should be filled with the value provided during save.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">In testing I got the value during every invite with proxy_authorize (which filled $avp(type) ). Unfortunately it seems that the other end is incapable of authorizing on invites so I have to
save the value during register..</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">What’s going wrong? And is there maybe an easier module to achieve what I want?</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt;text-autospace:none"><span lang="EN-US">I’m using
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Lucida Console"">version: opensips 1.10.0-notls (x86_64/linux)</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US">Kind regards,</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="706" style="width:529.15pt;margin-left:70.8pt">
<tbody>
<tr>
<td width="706" style="width:529.15pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:13.5pt"><span style="font-size:10.0pt">Met vriendelijke groet,</span><o:p></o:p></p>
</td>
</tr>
<tr>
<td width="706" style="width:529.15pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:13.5pt"><b><span lang="EN-US" style="font-size:10.0pt">Rik Broers</span></b><span lang="EN-US" style="font-size:13.5pt;mso-fareast-language:NL"><br>
</span><b><i><span lang="EN-US" style="font-size:8.0pt">Voice engineer</span></i></b><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US" style="mso-fareast-language:NL"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:70.8pt"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:NL"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre style="margin-left:35.4pt">_______________________________________________<o:p></o:p></pre>
<pre style="margin-left:35.4pt">Users mailing list<o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:NL"><o:p> </o:p></span></p>
</div>
</body>
</html>