<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
This is my first post so bear with me if I leave something out.
<blockquote type="cite"
cite="mid:16a0a95d-46af-a9a3-ca07-b5e2e2390b0d@paladindesigns.com">
<p>I'm attempting to handle a 302 redirect being returned from
another sip switch. The 302 message contacts contains 6
redirect bindings with a different q value for each. I'm using
the UAC_redirect module to handle the redirect. My problem is
that it does not serialize the sip calls. Instead it calls each
in turn without waiting for a response from the previous. I'm
unable to configure the redirect module to serialize the
calls. What am I missing?</p>
<p>I've tried changing the get_redirects call to:</p>
<font face="Courier New, Courier, monospace">get_redirects("*:*",
"redirect");</font><br>
<font face="Courier New, Courier, monospace">get_redirects("1:*",
"redirect");</font><br>
<font face="Courier New, Courier, monospace">get_redirects("*:1",
"redirect");</font><br>
<br>
In debugging, I did notice that the q value seems to be
misinterpreted? The code that follows shows q values of
930,940,950 and 960. Is the module interpreting the decimal point
as a thousands separator?<br>
<font face="Courier New, Courier, monospace"> </font><br>
<p>The contact bindings:</p>
<p>"<a class="moz-txt-link-rfc2396E"
href="mailto:sip:18452259999@192.168.10.125:5060"
moz-do-not-send="true"><sip:18452259999@192.168.10.125:5060></a>;q=0.990"<br>
"<a class="moz-txt-link-rfc2396E"
href="mailto:sip:18452259999@192.168.10.125:5060"
moz-do-not-send="true"><sip:18452259999@192.168.10.125:5060></a>;q=0.980"<br>
"<a class="moz-txt-link-rfc2396E"
href="mailto:sip:18452259999@192.168.10.125:5060"
moz-do-not-send="true"><sip:18452259999@192.168.10.125:5060></a>;q=0.970"<br>
"<a class="moz-txt-link-rfc2396E"
href="mailto:sip:18452259999@192.168.10.125:5060"
moz-do-not-send="true"><sip:18452259999@192.168.10.125:5060></a>;q=0.960"<br>
"<a class="moz-txt-link-rfc2396E"
href="mailto:sip:18452259999@192.168.10.125:5060"
moz-do-not-send="true"><sip:18452259999@192.168.10.125:5060></a>;q=0.950"<br>
"<a class="moz-txt-link-rfc2396E"
href="mailto:sip:18452259999@192.168.10.125:5060"
moz-do-not-send="true"><sip:18452259999@192.168.10.125:5060></a>;q=0.940"<br>
"<a class="moz-txt-link-rfc2396E"
href="mailto:sip:18452259999@192.168.10.125:5060"
moz-do-not-send="true"><sip:18452259999@192.168.10.125:5060></a>;q=0.930"<br>
</p>
<p>the on failure route:</p>
<p><font face="Courier New, Courier, monospace">failure_route[REDIRECT_ACC]
{<br>
xlog("$var(loglevel)","In failure_route[REDIRECT_ACT]");<br>
if(!t_check_status("3[0-9][0-9]")) {<br>
xlog("$var(loglevel)","In
failure_route[REDIRECT_ACT] - NOT 3nn");<br>
exit;<br>
}<br>
get_redirects("*:*", "redirect");<br>
xlog("$var(loglevel)","In failure_route contact branch
index:$branch(count)");<br>
xlog("$var(loglevel)","In failure_route contact branch
q[0]:$(branch(q)[0])");<br>
xlog("$var(loglevel)","In failure_route contact branch
</font><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">q[1]</font>:$(branch(q)[1])");<br>
xlog("$var(loglevel)","In failure_route contact branch
</font><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">q[2]</font>:$(branch(q)[2])");<br>
xlog("$var(loglevel)","In failure_route contact branch
q[3]:$(branch(q)[3])");</font></p>
<p><font face="Courier New, Courier, monospace"> t_relay();<br>
}<br>
</font>The log shows:</p>
<p> INFO: xlog:In failure_route contact branch index:7<br>
INFO: xlog:In failure_route contact branch q[0]:930<br>
INFO: xlog:In failure_route contact branch q[1]:940<br>
INFO: xlog:In failure_route contact branch q[2]:950<br>
INFO: xlog:In failure_route contact branch q[3]:960<br>
<br>
<br>
</p>
<p>Thanks in advance for any help.</p>
<p>Rich</p>
<p><br>
</p>
</blockquote>
<br>
</body>
</html>