[Freeswitch-users] redirect in dialplan

Anthony Minessale anthony.minessale at gmail.com
Tue Apr 22 06:53:21 PDT 2008


I think it will always work.  But I am not 100% sure.

On Tue, Apr 22, 2008 at 8:44 AM, Jonas Gauffin <jonas.gauffin at gmail.com>
wrote:

> Ahh. doh. Never thought of that. You are of course correct.
>
> Do deflect work both with unanswered and answered calls?
> Or do I need to use a check whether the call have been answered when
> it hits the dialplan?
>
> On Tue, Apr 22, 2008 at 3:18 PM, Anthony Minessale
> <anthony.minessale at gmail.com> wrote:
> > Can you still do a 302 once you answer?
> > I thought that only works before you answer.  it's a final response to
> an
> > invite like a 488 etc.
> >
> > You can try the deflect app instead which is similar in the end result
> > redirect but it sends a SIP refer (like a blind transfer on a sip phone)
> > so it works on answered calls.
> >
> >
> >
> > On Tue, Apr 22, 2008 at 8:08 AM, Jonas Gauffin <jonas.gauffin at gmail.com>
> > wrote:
> > > I do a transfer to an extension that is redirected to another one.
> > >
> > > 8888 => ivr app that transfers the call
> > > 1201 => uses the redirect app in the dialplan to 1203
> > > 1203 => extension that should be ringing
> > >
> > > this works:
> > > caller -> 1201 (redirects to 1203) -> 1203 is ringing
> > > caller -> 8888 (doing transfer to 1201) -> 1201 (redirects to 1203) ->
> > > 1203 is not ringing
> > >
> > > I have not touched the redirect at all in the dialplan between the two
> > > test cases.
> > >
> > > Do this to reproduce:
> > > 1. Create a extension in the diaplan that uses the redirect app to
> > > another extension
> > > 2. Create a javascript which does: session.answer();
> > > session.execute("transfer", "yourextension XML");
> > >
> > >
> > > On Tue, Apr 22, 2008 at 3:00 PM, Anthony Minessale
> > >
> > > <anthony.minessale at gmail.com> wrote:
> > >
> > >
> > >
> > > >  Didn't you say you wanted to do 302?
> > > > transfer app is a FS internal transfer.
> > > >
> > > > 302 is initiated with session.execute("redirect", "sip:foo at bar.com<sip%3Afoo at bar.com>
> ");
> > > >
> > > > If you do actually mean to transfer within FS, (meaning send the
> current
> > > > call back to the dialplan)
> > > > Be sure to exit your script as soon as you execute transfer because
> from
> > > > that point you must quit your
> > > > script so the core can return the call to the RING state.
> > > >
> > > >
> > > >
> > > >
> > > > On Tue, Apr 22, 2008 at 7:32 AM, Brian West <brian at freeswitch.org>
> > wrote:
> > > > > can you provide the console output for this failure?
> > > > >
> > > > >
> > > > >
> > > > > On Apr 22, 2008, at 2:23 AM, Jonas Gauffin wrote:
> > > > >
> > > > > > The transfer is made with:
> > > > > > session.setVariable("ringback", "%(1000,4000,425)");
> > > > > > session.execute("transfer", user.extension + " XML");
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Brian West
> > > > > sip:brian at freeswitch.org <sip%3Abrian 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<MSN%3Aanthony_minessale at hotmail.com>
> > > > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> > > > IRC: irc.freenode.net #freeswitch
> > > >
> > > > FreeSWITCH Developer Conference
> > > > sip:888 at conference.freeswitch.org<sip%3A888 at conference.freeswitch.org>
> > > > iax:guest at conference.freeswitch.org/888
> > > > googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 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
> > > >
> > > >
> > >
> > > _______________________________________________
> > > 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 <MSN%3Aanthony_minessale at hotmail.com>
> > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> > IRC: irc.freenode.net #freeswitch
> >
> > FreeSWITCH Developer Conference
> > sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> > iax:guest at conference.freeswitch.org/888
> > googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 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
> >
> >
>
> _______________________________________________
> 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 <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080422/557527e1/attachment-0002.html 


More information about the FreeSWITCH-users mailing list