<div dir="ltr">I'm not suggesting that t_next_contacts deviates from the README. I'm looking for its specific use case when combined with the outbound module. At the very least, the example registrar configuration here: <a href="http://www.kamailio.org/docs/modules/4.4.x/modules/outbound.html">http://www.kamailio.org/docs/modules/4.4.x/modules/outbound.html</a> is incomplete, in that it will always result in this error when there's only one binding in the registrations table.<div><br></div><div>I suppose it's just a matter of checking for t_next_contacts() == -1 in the initial fork, and then check for < 0 in subsequent failure routes. I apologize if my original message was unclear, but this was a request for clarification, not a bug report - though I will try to make a PR for the outbound documentation page when I get this working.</div><div><br></div><div>Best,</div><div>Colin</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jul 24, 2016 at 12:51 PM Juha Heinanen <<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Colin Morelli writes:<br>
<br>
> When there's one registration binding in the locations table,<br>
> t_load_contacts doesn't seem to do anything and as a result<br>
> t_next_contacts fails.<br>
<br>
t_next_contacts() does work as specified in README:<br>
<br>
  Function returns 1 if contacts_avp was not empty and a destination set<br>
  was successfully added, returns -2 if contacts_avp was empty and thus<br>
  there was nothing to do, and returns -1 in case of an error (see<br>
  syslog).<br>
<br>
so you just have to test the return value accordingly.<br>
<br>
-- juha<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>