[Freeswitch-users] redirect in dialplan

Jonas Gauffin jonas.gauffin at gmail.com
Tue Apr 22 00:23:46 PDT 2008


Ok, ive done some more testing.

The redirect works fine in this case (with the dialplan that i sent in
my last post):
Caller -> 1201 (which is redirected to 1203) -> 1203 is ringing

The same dialplan fails in this scenario:
Caller -> ivr menu (javascript) -> transfer to 1201 (same redirect is
made) -> failure

The transfer is made with:
session.setVariable("ringback", "%(1000,4000,425)");
session.execute("transfer", user.extension + " XML");


On Mon, Apr 21, 2008 at 5:03 PM, Anthony Minessale
<anthony.minessale at gmail.com> wrote:
> Did you trace the sip to see if we are sending a 302?
>
>
>
> On Mon, Apr 21, 2008 at 9:47 AM, Brian West <brian at freeswitch.org> wrote:
> > Could it be the far end not actually following a 302 redirect?  Some
> > people will not follow it due to toll fraud issues.  You can totally
> > bypass some ones billing systems with it.  Do you know what devices
> > you're sending a 302 redirect to?  Can you collect the sip trace of
> > the redirect?
> >
> > /b
> >
> >
> >
> >
> > On Apr 21, 2008, at 9:31 AM, Jonas Gauffin wrote:
> >
> > > <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> > > <document type="freeswitch/xml">
> > >  <section name="dialplan" description="ModCurlDialplan">
> > >    <context name="default">
> > >      <extension name=" 1201 ">
> > >        <condition field="destination_number" expression="1201">
> > >          <action application="set" data="accountcode=1"/>
> > >          <action application="set" data="gate_direction=outbound"/>
> > >          <action application="set" data="gate_context=external"/>
> > >          <action application="set" data="gate_site_id=1"/>
> > >          <action application="redirect"
> > > data="sip:+46706930821 at sipgw2.gotanet.se"/>
> > >        </condition>
> > >      </extension>
> > >    </context>
> > >  </section>
> > >
> > > In this case I'm trying to send the redirect to my sip gateway. I've
> > > also tried to send the redirect to another user in my site
> > > (sip:u10001 at myrealdomain.com).
> > >
> > > Both give that error shown in the log in my first email.
> > >
> > > On Mon, Apr 21, 2008 at 4:11 PM, Brian West <brian at freeswitch.org>
> > > wrote:
> > >> Can you provide the dialplan you're using?  And what device are you
> > >> sending the redirect to?
> > >>
> > >> /b
> > >>
> > >>
> > >>
> > >> On Apr 21, 2008, at 9:06 AM, Jonas Gauffin wrote:
> > >>
> > >>> just trying to send a 302.
> > >>>
> > >>> On Mon, Apr 21, 2008 at 3:55 PM, Brian West <brian at freeswitch.org>
> > >>> wrote:
> > >>>> Is this a redirect done by the far end device?  or you're just
> > >>>> trying
> > >>>> to send a 302 from FreeSWITCH?
> > >>>>
> > >>>> /b
> > >>>>
> > >>>>
> > >>>> On Apr 21, 2008, at 8:47 AM, Jonas Gauffin wrote:
> > >>>>
> > >>>>> huh?
> > >>>>>
> > >>>>> I'm using a custom dialplan (through mod_xml_curl) and are
> > >>>>> trying to
> > >>>>> use the "redirect" application.
> > >>>>>
> > >>>>> You telling me that I should use the deflect app instead? What's
> > >>>>> the
> > >>>>> different between deflect and redirect?
> > >>>>
> > >>>>
> > >>>>
> > >>>> Brian West
> > >>>> sip:brian at freeswitch.org
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> Freeswitch-users mailing list
> > >>>> Freeswitch-users at lists.freeswitch.org
> > >>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>>>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > >>>> http://www.freeswitch.org
> > >>>>
> > >>>
> > >>> _______________________________________________
> > >>> Freeswitch-users mailing list
> > >>> Freeswitch-users at lists.freeswitch.org
> > >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > >>> http://www.freeswitch.org
> > >>
> > >> Brian West
> > >> sip:brian at freeswitch.org
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Freeswitch-users mailing list
> > >> Freeswitch-users at lists.freeswitch.org
> > >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > >> http://www.freeswitch.org
> > >>
> > >
> > > _______________________________________________
> > > Freeswitch-users mailing list
> > > Freeswitch-users at lists.freeswitch.org
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > http://www.freeswitch.org
> >
> > Brian West
> > sip:brian at freeswitch.org
> >
> >
> >
> >
> > _______________________________________________
> > Freeswitch-users mailing list
> > Freeswitch-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>  IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> iax:guest at conference.freeswitch.org/888
>  googletalk:conf+888 at conference.freeswitch.org
> pstn:213-799-1400
> _______________________________________________
>  Freeswitch-users mailing list
>  Freeswitch-users at lists.freeswitch.org
>  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>  http://www.freeswitch.org
>
>




More information about the FreeSWITCH-users mailing list