<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 27/01/14 01:33, Nick Cameo wrote:<br>
</div>
<blockquote
cite="mid:CAGWRaZajGLNJ-jM5ptVqfhUxBt9gfMRkT+cpyewqYdLJ-9xryQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello Everyone,
<div><br>
</div>
<div>We are currently using the DR module for routing and
failover, and would like to replace it with</div>
<div>equivalent functionality using perl script. What we would
like is to:</div>
<div><br>
</div>
<div>* Order the gateways in a strict list given some
constraints (Completed)</div>
<div>* Build the RURI with the gateway IP, and prefix from the
dr_gateways table (Similar to what do_routing does with the
FROM tag and dr_gateways information)</div>
<div>* Failover to the next gateway in strict order.</div>
<div><br>
</div>
<div><br>
</div>
<div>I would really like to know what our options are, and the
most graceful/scalable way of implementing</div>
<div>this.</div>
</div>
</blockquote>
<br>
all you need is to put the most preferred gateway in the request uri
and the rest of the options in a list of avps. Then use failure
route to send to the addresses stored in avps in the case the most
preferred fails to answer.<br>
<br>
Not a user of Perl API, but I think you have the methods to set
values to r-uri and avps.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:CAGWRaZajGLNJ-jM5ptVqfhUxBt9gfMRkT+cpyewqYdLJ-9xryQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>PS An example would be highly appreciated!</div>
<div><br>
</div>
<div>Kind Regards,</div>
<div><br>
</div>
<div>Nick</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>