<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Thanks Barry,<br>
You are right. I mixed up theĀ priority.<br>
Lowest q-value has less priority that highest q-values.<br>
<br>
Regarding floating point, yes, it is indeed. But from the panel, if
you set integer value, like 1, it will store the corresponding
floaintg value 1.0. As it is a floating point, you can set values
from 0.1 till 1.0.<br>
<br>
Daniel<br>
<br>
<br>
<br>
On 05/25/2018 10:00 AM, Barry Flanagan wrote:<br>
<blockquote type="cite"
cite="mid:CALJb549JgNwT-y_=noqUD96yJgWSuTTnfxUcX+HNsxR-75SWzQ@mail.gmail.com">
<div dir="ltr">On Fri, 25 May 2018 at 08:35, Daniel Grotti <<a
href="mailto:dgrotti@sipwise.com" moz-do-not-send="true">dgrotti@sipwise.com</a>>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
><br>
> Is this possible? I can imagine registering a 2nd IP
address in the <br>
> subscriber, but don't know how to prioritize one over
the other.<br>
<br>
You could theoretically define the q value in the permanent
registration with value 0 for the highest priority. Then
create another permanent registration with q set to 1.<br>
Then in the subscriber preferences you select the option to
fork calls based on q value.<br>
The calls will go first to ip with q value 0. If fails or no
reply, call will fall back to ip with q value 1.<br>
<br>
</blockquote>
<div><br>
</div>
<div>Hi</div>
<div>I think this is slightly wrong. q-value should be a
floating point number in a range 0 to 1.0 with 1.0 being the
highest priority. So the call will go to an endpoint with a
q-value of 1 first, and only use the endpoint with a q-value
of 0 if the first is unavailable.</div>
<div><br>
</div>
<div>This is also nicely documented at <a
href="https://www.sipwise.com/serial-forking-based-sip-provider/"
moz-do-not-send="true">https://www.sipwise.com/serial-forking-based-sip-provider/</a></div>
<div><br>
</div>
<div>Hope this helps.</div>
<div><br>
</div>
<div>-Barry</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>