<div dir="ltr">Hello,<div><br></div><div>Running into odd behaviour in Kamailio 5.0.2 and I'm hoping to clarify.  I have a simple route that uses the textops functions subst and remove_hf.  Other than that, there is nothing else done within the route.  In some cases, the remove_hf function returns false as there are no matching headers.</div><div><br></div><div>Documentation in <a href="https://www.kamailio.org/wiki/cookbooks/5.0.x/core#return">https://www.kamailio.org/wiki/cookbooks/5.0.x/core#return</a> seems to show that if there are no explicit return statements, the route should return 1.  However, this route appears to be returning -1.  </div><div><br></div><div>My question is: if a function within a route returns a negative value, and there are no explicit return statements, will the entire route return -1 (as it appears is happening), or should the route return 1 as the core cookbook indicates?</div><div><br></div><div>Thanks in advance,<br clear="all"><div><br></div><div class="gmail_signature">Jeff</div>
</div></div>