Before doing dip you can define 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. If I am not wrong, after lrn dip you need to check "tel" URI for ported number. Regards Shishir On 08.07.2013 14:47, Avi Marcus wrote:
Once you bridge and get a 302, you get dumped back into the dialplan where the information is available in the channel variables. I think ${sip_redirect_contact_params_1} and ${sip_redirect_contact_host_1} has the first route... so grab the lrn number and use that with the original number for your LCR.
-Avi
On Tue, Jul 9, 2013 at 12:34 AM, Andre Demattia wrote:
Hi, I'm checking to see if that is the best way to do the dip. So calling the dialplan then waiting for the on hang up complete then dialing again is the right way? Andre
------------------------- From: Avi Marcus [11] Sent: 7/8/2013 5:07 PM To: FreeSWITCH Users Help [12] Subject: Re: [Freeswitch-users] LRN DIP 302 Dialplan
Sure, do the dip first then do your LCR. Maybe I'm just not getting the question?
-Avi
On Mon, Jul 8, 2013 at 6:54 PM, wrote:
HI, I need to look up a number to see if it's ported/ LCR before I bridge the call. What is the best way to go about doing this. Call comes in, I need to look up the LRN data via SIP 302. The results of that I need to hit my database for the LCR then I need to bridge the number. Would it be wise to dial the LRN server then on Hangup complete hit the database then dial the number? Thanks
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org [1] http://www.freeswitchsolutions.com [2]
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com [3]
Official FreeSWITCH Sites http://www.freeswitch.org [4] http://wiki.freeswitch.org [5] http://www.cluecon.com [6]
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [7] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [8]
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
[9] http://www.freeswitch.org [10]
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org [14] http://www.freeswitchsolutions.com [15]
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com [16]
Official FreeSWITCH Sites http://www.freeswitch.org [17] http://wiki.freeswitch.org [18] http://www.cluecon.com [19]
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org [20] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [21]
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
[22] http://www.freeswitch.org [23]
Links: ------ [1] mailto:consulting@freeswitch.org [2] http://www.freeswitchsolutions.com [3] http://www.cudatel.com [4] http://www.freeswitch.org [5] http://wiki.freeswitch.org [6] http://www.cluecon.com [7] mailto:FreeSWITCH-users@lists.freeswitch.org [8] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [9] http://lists.freeswitch.org/mailman/options/freeswitch-users [10] http://www.freeswitch.org [11] mailto:avi@avimarcus.net [12] mailto:freeswitch-users@lists.freeswitch.org [13] mailto:andretodd@verizon.net [14] mailto:consulting@freeswitch.org [15] http://www.freeswitchsolutions.com [16] http://www.cudatel.com [17] http://www.freeswitch.org [18] http://wiki.freeswitch.org [19] http://www.cluecon.com [20] mailto:FreeSWITCH-users@lists.freeswitch.org [21] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users [22] http://lists.freeswitch.org/mailman/options/freeswitch-users [23] http://www.freeswitch.org [24] mailto:andretodd@verizon.net