Hello!
Nobody has an idea? Thanks!
Regards,
Igor.
De : Igor Potjevlesch <igor.potjevlesch(a)gmail.com>
Envoyé : vendredi 20 septembre 2024 11:38
À : sr-users(a)lists.kamailio.org
Objet : t_next_contacts fails with 1 contact
Hello!
I'm parsing 302 with, most of the time, multi contacts returned.
I do it like this:
get_redirects("*");
t_load_contacts();
and, finally, a test on !t_next_contacts().
This test fails when only one contact is present in 302.
Is it the expected behaviour?
From the documentation I understand that following t_load_contacts we must
use t_next_contacts.
If so, I believe that I shouldn't exit on !t_next_contacts() and do an
additional test to see if there is, at least, one attempt to do toward the
only contact returned?
Thanks for your feedback.
Regards,
Igor.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai
gn=sig-email&utm_content=emailclient>
Sans virus.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai
gn=sig-email&utm_content=emailclient>
www.avast.com
--
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com