Hey All,<div>I'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("local","trunk2group_$si",$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("$avp(s:routegroup)");</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've printed out the value of $avp(s:routegroup) and it'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've tried casting to int ie:</div><div>do_routing("$(avp(s:routegroup){<a href="http://s.int">s.int</a>}))</div><div><br></div><div>but that doesn't seem to make anything better.</div>
<div><br></div><div>any ideas? Right now I'm having to bypass my cache or it just won't work.</div><div><br></div><div>Thanks,</div><div>Brett</div><div><br></div>