[Freeswitch-users] help 302 Redirect

Brian West brian at freeswitch.org
Tue Apr 22 05:14:05 MSD 2014

Here is the quick start guide to doing 302 redirects: (Also outlined in the Wiki article that Jay referenced)

Processing Extension 1016 <1016>->5555 in context default

    <extension name="redirect_test">
      <condition field=“destination_number" expression="^5555$">
        <action application="bridge" data="sofia/internal/sip:5555 at conference.freeswitch.org"/>

Processing Extension 1016 <1016>->888 in context redirected

variable_sip_redirect_contact_0: ["unknown" <sip:888 at conference.freeswitch.org>]
variable_sip_redirected_to: ["unknown" <sip:888 at conference.freeswitch.org>]
variable_sip_redirect_contact_user_0: [888]
variable_sip_redirect_contact_host_0: [conference.freeswitch.org]
variable_sip_redirect_dialstring_0: [sofia/internal/sip:888 at conference.freeswitch.org]
variable_sip_redirect_dialstring: [sofia/internal/sip:888 at conference.freeswitch.org]

Here is what I have in the redirected context.

  <context name="redirected">
    <extension name="handle_redirect">
      <condition field="destination_number" expression="(.*)”>
        <action application="info"/>
        <action application="bridge" data="${sip_redirect_dialstring}"/>


Brian West
brian at freeswitch.org
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest

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

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

> Wow

-------------- 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/ab276245/attachment.bin 

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