Chav,<div><br class="webkit-block-placeholder"></div><div>We recently / are still going through the same process (in order to route on LRN) vs NPANXX or LATA based routing. Here was the best way that we came up with to do it:</div>
<div> -- we use xml_curl exclusively for routing decisions</div><div> -- so in the cgi script that xml_curl hits one of the things it can (and does based on certain parameters) is fire off a url to another LNP server that we built</div>
<div> -- the LNP server actually does the dip (either from a cache) and returns the info</div><div><br class="webkit-block-placeholder"></div><div>We felt this was much better for a few reasons:</div><div> -- caching the LNP data for a 24 hour period would save us in excess of $100k a year</div>
<div> -- having a specialized mechanism to do this was much easier to implement for the cgi process than supporting 302 redirects directly on the FS boxes was much easier (which just wasn't possible with the cgi mechanism)</div>
<div> -- every LNP provider returns 302's slightly different ... so we didn't want to have to reinvent the wheel on the FS machines if we ever wanted to add redundancy or switch providers</div><div><br class="webkit-block-placeholder">
</div><div>Guess it all depends on your config ... but this was the easiest and most cost-effective means for us to implement.</div><div><br class="webkit-block-placeholder"></div><div><br><div class="gmail_quote">On Sat, Dec 13, 2008 at 6:38 PM, Chav Paskov <span dir="ltr"><<a href="mailto:chavpaskov@shaw.ca">chavpaskov@shaw.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="Wj3C7c">Brian West wrote:<br>
> Chav,<br>
> Once the 302 is received by FreeSWITCH it will follow it to the<br>
> contact listed in the 302. What else are you needing to do?<br>
><br>
> /b<br>
><br>
> On Dec 13, 2008, at 2:24 PM, Chav Paskov wrote:<br>
><br>
>> *User-Agent: eXosip/3.1.0^M<br>
>> Content-Length:<br>
>><br>
>><br>
>> my question is:<br>
>><br>
>> Is it possible to send the call to z.z.z.z , receive the SIP 302 ,<br>
>> process the data in Contact field and redirect to the new destination<br>
>> contained in *Contact: <<a href="mailto:sip%3A2145551234@64.112.188.84">sip:2145551234@64.112.188.84</a>>;npdi^M<br>
>> *without closing the session.<br>
>> i red something about <action application="set"<br>
>> data="continue_on_fail=true"/> but i'm not sure how to use it.<br>
>><br>
>> Any ideas on this matter will be highly appreciated.<br>
>> Best Regards<br>
>> Chav<br>
>><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
<div class="Ih2E3d">><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
</div>Thanks Brian,<br>
<br>
probably i should have explained it in more details.<br>
this whole thing started as an attempt to implement lata ocn /local<br>
number portability/ instead of pure per destination routing.<br>
At the moment i have a access to a service provider who does<br>
"dipping" and returns the LATA OCN data associated with any dialed<br>
destination number. it is returned as Contact: and Content-length:<br>
fields in 302 message.<br>
<br>
in other words:<br>
<br>
1. i'm sending to this provider let say - 2025556666 as a destination<br>
number.<br>
2. they do the dipping and will return to me either the new dest # if<br>
2025556666 has been ported or if it was not<br>
in content-length field they'll send lata, ocn and state and 10 digits<br>
number.<br>
3. once received i have to compare the received lata , ocn and state<br>
date with a compiled rate deck / blended from 5 different vendors/<br>
and pick the lowest rate - effectively building LCR based on LATA OCN<br>
STATE info.<br>
<br>
Hope this will help to clear the picture.<br>
<div><div></div><div class="Wj3C7c">Regards<br>
Chav<br>
<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>