Hi Brett,
Brett Nemeroff wrote:
Hello All,
I'm using someone elses redirect server which is responding with
several choices. None of which have a listed q-value. Now I'm told
that I'm supposed to try these "in order" and one at a time. It seems,
however, because the q-value is the same (missing) that they all get
tried at once. Can I override this behavior somehow?
That's what the RFC says - if the contacts have the same q, use all in
the same time.
I tried something like this (ugly):
$(branch(q)[0])=100;
$(branch(q)[1])=90;
$(branch(q)[2])=80;
$(branch(q)[3])=70;
$(branch(q)[4])=60;
$(branch(q)[5])=50;
and then serializing the branches.. but that didn't really work right
(did for the first one)
if all have the same q, makes no sense to use serialize function. Better
load all the contacts (after get_redirect() ) into an AVP and to serial
forking based on AVP looping.
Regards,
Bogdan
Any ideas?
Thanks,
Brett
------------------------------------------------------------------------
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users