<div dir="ltr">And: <a href="http://wiki.freeswitch.org/wiki/Mod_lcr">http://wiki.freeswitch.org/wiki/Mod_lcr</a><div>You can do all this in the static dial plan.</div><div><br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div>
</div><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 3:12 AM, Andre <span dir="ltr"><<a href="mailto:andretodd@verizon.net" target="_blank">andretodd@verizon.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Would I also have the ability to hit the database to find LCR etc? I'm doing everything in Mod_Managed via C#.<br>
<br>
Also, where do I find documentation on how to do what you stated below?<br>
Thanks everyone<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of <a href="mailto:info@shishir.com.np">info@shishir.com.np</a><br>
Sent: Monday, July 8, 2013 7:31 PM<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] LRN DIP 302 Dialplan<br>
<br>
Before doing dip you can define<br>
sip_redirect_profile/sip_redirect_context and bridge a call for lrn dip, Once FS get the 302 after dip it will redirect the call to defined profile/context and you can do your LCR logic over this profile/context.<br>
<br>
If I am not wrong, after lrn dip you need to check "tel" URI for ported number.<br>
<br>
Regards<br>
Shishir<br>
<br>
On 08.07.2013 14:47, Avi Marcus wrote:<br>
> Once you bridge and get a 302, you get dumped back into the dialplan<br>
> where the information is available in the channel variables.<br>
> I think ${sip_redirect_contact_params_1} and<br>
> ${sip_redirect_contact_host_1} has the first route... so grab the lrn<br>
> number and use that with the original number for your LCR.<br>
><br>
> -Avi<br>
><br>
> On Tue, Jul 9, 2013 at 12:34 AM, Andre Demattia wrote:<br>
><br>
>> Hi, I'm checking to see if that is the best way to do the dip. So<br>
>> calling the dialplan then waiting for the on hang up complete then<br>
>> dialing again is the right way?<br>
>> Andre<br>
>><br>
>> -------------------------<br>
>> From: Avi Marcus [11]<br>
>> Sent: 7/8/2013 5:07 PM<br>
>> To: FreeSWITCH Users Help [12]<br>
>> Subject: Re: [Freeswitch-users] LRN DIP 302 Dialplan<br>
>><br>
>> Sure, do the dip first then do your LCR.<br>
>> Maybe I'm just not getting the question?<br>
>><br>
>> -Avi<br>
>><br>
>> On Mon, Jul 8, 2013 at 6:54 PM, wrote:<br>
>><br>
>>> HI, I need to look up a number to see if it's ported/ LCR before I<br>
>>> bridge the call. What is the best way to go about doing this.<br>
>>><br>
>>> Call comes in, I need to look up the LRN data via SIP 302. The<br>
>>> results of that I need to hit my database for the LCR then I need to<br>
>>> bridge the number.<br>
>>><br>
>>> Would it be wise to dial the LRN server then on Hangup complete hit<br>
>>> the database then dial the number?<br>
>>> Thanks<br>
>>><br>
>>><br>
>><br>
><br>
> ______________________________________________________________________<br>
> ___<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> [1]<br>
>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> [2]<br>
>>><br>
>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a> [3]<br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> [4]<br>
>>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a> [5]<br>
>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> [6]<br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> [7]<br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> [8]<br>
>>><br>
>><br>
><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-use" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-use</a><br>
> rs<br>
>>> [9]<br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> [10]<br>
>><br>
>><br>
><br>
> ______________________________________________________________________<br>
> ___<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> [14]<br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a> [15]<br>
>><br>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a> [16]<br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> [17]<br>
>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a> [18]<br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> [19]<br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> [20]<br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> [21]<br>
>><br>
><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-use" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-use</a><br>
> rs<br>
>> [22]<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a> [23]<br>
><br>
><br>
><br>
> Links:<br>
> ------<br>
> [1] mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> [2] <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
> [3] <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
> [4] <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> [5] <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> [6] <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
> [7] mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> [8] <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> [9] <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> [10] <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> [11] mailto:<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a><br>
> [12] mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> [13] mailto:<a href="mailto:andretodd@verizon.net">andretodd@verizon.net</a><br>
> [14] mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> [15] <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
> [16] <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
> [17] <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> [18] <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> [19] <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
> [20] mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> [21] <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> [22] <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> [23] <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> [24] mailto:<a href="mailto:andretodd@verizon.net">andretodd@verizon.net</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div>