<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Kpirlo,<br>
<br>
When sending the call to the dip provider, use a failure route in
order to catch the 3xx reply you get back. In the failure route, use
the uac_redirect module with the get_redirects() function
(<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.7.x/uac_redirect.html#id250367">http://www.opensips.org/html/docs/modules/1.7.x/uac_redirect.html#id250367</a>)
in order to extract the redirect contacts from the reply and push
them as new destinations.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 11/20/2011 08:04 PM, Kpirlo wrote:
<blockquote
cite="mid:CAMTAzNu7-Uh1aRUjWdL33rQjcXYbN+bRyvzgqRqruW14-9hyUQ@mail.gmail.com"
type="cite">We are currently using the Dynamic routing module for
our least cost routing.
<div><br>
</div>
<div>Now we are looking at implementing an LRN dipping service,
where we will send the call to a dip provider first and receive
a 302 redirect back which will have the LRN returned in the
contact header as "rn=" if the number has been ported or will
include ";npdi" in the contact header if it has not been
ported. </div>
<div><br>
</div>
<div>Im asking for any advice anyone has on how to implement this
and how it could work with dymanic routing to choose the route
based on rn if available, but actually send the call using the
original "to" number. </div>
<div><br>
</div>
<div>Thank you in advance for any help. </div>
<div><br>
</div>
<div>Kent</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"</pre>
</body>
</html>