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 <andretodd@verizon.net>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 <avi@avimarcus.net> Sent: 7/8/2013 5:07 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> 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, <andretodd@verizon.net> 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 http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org