Hey All,<div>I&#39;ve got this problem, that I imagine has something to do with datatypes. So I pull from cache (cache_fetch) the group_id to pass to drouting kinda like:</div><div>cache_fetch(&quot;local&quot;,&quot;trunk2group_$si&quot;,$avp(s:group_temp))</div>

<div><br></div><div>Then for scripting reasons (I promise, there is a good reason) I do:</div><div>$avp(s:routegroup) = $avp(s:group_temp);</div><div><br></div><div>Then I pass it to do_routing like:</div><div>do_routing(&quot;$avp(s:routegroup)&quot;);</div>

<div><br></div><div>and then I get:</div><div>ERROR:drouting:do_routing: failed to get group id <br></div><div><br></div><div>I&#39;ve printed out the value of $avp(s:routegroup) and it&#39;s perfectly valid.. </div><div>

<br></div><div>So I take my cache bits out, and instead I populate $avp(s:group_temp) direct from  avp_db_query. The field comes from MySQL and is an int(11). This works perfectly every time (and returns the same value (which is the number 5).</div>

<div><br></div><div><br></div><div>So any idea what the problem might be? I&#39;ve tried casting to int ie:</div><div>do_routing(&quot;$(avp(s:routegroup){<a href="http://s.int">s.int</a>}))</div><div><br></div><div>but that doesn&#39;t seem to make anything better.</div>

<div><br></div><div>any ideas? Right now I&#39;m having to bypass my cache or it just won&#39;t work.</div><div><br></div><div>Thanks,</div><div>Brett</div><div><br></div>