<div dir="ltr">Juha,<div><br></div><div>I changed the message between when I copied the code and the logs. Those lines are the lines that produce the error message.</div><div><br></div><div>As I mentioned in the original message - I'm aware that there's only one branch in the set. That is the case that this doesn't work. When there's one registration binding in the locations table, t_load_contacts doesn't seem to do anything and as a result t_next_contacts fails. Presumably I could add a special case to detect when there's only a single binding by looking at $branch(count), and not run this code, but that feels like a case that t_load_contacts <i>should</i> handle itself, no?</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:35 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>
>  8(27) DEBUG: tm [t_serial.c:191]: t_load_contacts(): nr_branches is 0<br>
>  8(27) DEBUG: tm [t_serial.c:194]: t_load_contacts(): nothing to do - only<br>
> one contact!<br>
>  8(27) DEBUG: tm [t_serial.c:455]: t_next_contacts(): no contacts in<br>
> contacts_avp - we are done!<br>
>  8(27) ERROR: <script>: t_next_contacts() failed<br>
<br>
you "relevant part of the config" does not produce the above error<br>
message.<br>
<br>
t_load_contacts(): nothing to do - only one contact! tells that there is<br>
only one branch in the set.<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>