[Freeswitch-users] help 302 Redirect

Brian West brian at freeswitch.org
Tue Apr 22 06:32:41 MSD 2014


Turn on man redirects, what I outlined will NOT create another inbound call it will just take the a-leg back into the redirected context so you can process the call and carry on.
--
Brian West
brian at freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
Skype:briankwest
PGP Key: http://www.bkw.org:81/key.txt (AB93356707C76CED)














On Apr 21, 2014, at 8:29 PM, Andrew <aademattia at comcast.net> wrote:

> Yes all that works but what I am trying to do is call a LRN service and
> return back the ported number.
> 
> The problem I am facing is the LRN service sends back a 302 and causes a
> redirect/ another inbound call.
> What I want to do is pull the LRN info back from the outbound call and the
> ported number being returned.
> 
> So what I am looking for is how to disable redirects and then pull the value
> of the 302.
> I found outbound_redirect_fatal=true and this does seem to disable the
> redirect but I can't get the ported info.
> 
> 
> Sample
> 
>            ManagedSession leg_b = new ManagedSession(
> "{outbound_redirect_fatal=true}sofia/internal/123456789 at 1.1.1.1.1 ");
>            string LRNDip = leg_b.GetVariable("Caller-RDNIS"); ;
>            string LRNDip1 = leg_b.GetVariable("sip_redirected_to"); ;
>            string LRNDip2 =
> leg_b.GetVariable("sip_redirect_contact_user_X"); ;
>            string LRNDip3 =
> leg_b.GetVariable("sip_redirect_contact_host_X"); ;
>            string LRNDip4 =
> leg_b.GetVariable("sip_redirect_contact_params_X"); ;
>            string LRNDip5 = leg_b.GetVariable("sip_redirected_by"); ;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140421/fdf8f02c/attachment.bin 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list