<div dir="ltr">Hi all,<div><br></div><div>What's the most efficient way to check if an xavp is set? </div><div><br></div><div>I have tried- </div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)">is_avp_set() from avpops module</span></div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)">which resulted in-</span></div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)"><br></span></div><div><font color="#000000">ERROR: avpops [avpops.c:915]: fixup_is_avp_set(): bad attribute name <$xavp(tm_contacts)></font><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)"> </span></div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)">and </span></div><div><span style="color:rgb(0,0,0);background-color:rgb(254,254,238)"><br></span></div><div><span style="background-color:rgb(254,254,238)"><font color="#000000"><div style="">if ($xavp(tm_contacts)) {}</div><div style=""><br></div><div style="">which resulted in -</div><div style=""><br></div><div style=""><div><div>WARNING: <core> [rvalue.c:1007]: rval_get_int(): automatic string to int conversion for "<<xavp:0x7feac74cfcb8>>" failed</div></div><div><br></div><div>To give a little background, I am using the UAC_redirect module and t_next_contacts() in conjunction with 302 redirects .However if there is only a single contact, $xavp(tm_contacts) is not created and t_next_contacts() fails, hence why I'd like to check if it exists first.</div><div><br></div><div>Thanks</div><div><br></div></div></font></span></div></div>