<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<br></p></span><div class="gmail_quote">On Wed, Mar 23, 2011 at 8:50 AM, Chris Martineau <span dir="ltr"><<a href="mailto:chris@ghosttelecom.com">chris@ghosttelecom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">If (is_method(“INVITE”)){</p><p class="MsoNormal"> avp_db_load(“$ru”,”$avp(s:maxtime)”);</p><p class="MsoNormal"> $avp(i:10)=$avp(s:maxtime);</p>
<p class="MsoNormal"> setflag(6);</p><p class="MsoNormal">}</p><p class="MsoNormal"> </p><p class="MsoNormal">Doesn’t work. Maxtime being an attribute set in usr_preferences of type 0.</p><p class="MsoNormal">
</p><p class="MsoNormal">Any ideas?</p><p class="MsoNormal"><br></p></div></div></blockquote><div><br></div><meta charset="utf-8">Chris,<div>Just a stab in the dark.. maybe a datatype issue? </div><div><br></div><div>Can you try:</div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
If (is_method(“INVITE”)){</p><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> avp_db_load(“$ru”,”$avp(s:maxtime)”);</p><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
$avp(s:n_maxtime) = $(avp(s:maxtime){<a href="http://s.int">s.int</a>});</p><p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> $avp(i:10)=$avp(s:n_maxtime);</p>
<p class="MsoNormal" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> setflag(6);</p></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">}</span> </div>
<div><br></div><div><br></div></div></div>