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.
Hello!
Nobody has an idea? Thanks!
Regards,
Igor.
De : Igor Potjevlesch igor.potjevlesch@gmail.com Envoyé : vendredi 20 septembre 2024 11:38 À : sr-users@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.
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