<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Try:<br>
<br>
if(defined $xavp(tm_contacts))<br>
<br>
or:<br>
<br>
if($xavp(tm_contacts) != $null)<br></blockquote><div><br></div><div>Both of the above worked, Thanks!</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I do wish "truthiness" of various sorts were better defined in Kamailio.<br></blockquote><div><br></div><div>I don't quite follow what you mean here, but I probably agree with you. In particular for <span style="color:rgb(0,0,0);font-family:Helvetica,Arial">t_load_contacts() -</span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">     If the destination set contains only one branch, the function does nothing.</span><span style="color:rgb(0,0,0);font-family:Helvetica,Arial"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">     </span><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">Function returns 1 if loading of contacts succeeded or there was nothing to do. In case of an error, function returns -1 (see syslog).</span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">I guess in my mind it might be worthwhile to return a different return code if the destination set contains only one branch.</span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">Thanks again.</span></div><div> </div></div></div></div>