[Freeswitch-users] Dial
Anthony Minessale
anthmct at yahoo.com
Thu Aug 2 12:10:10 PDT 2007
<condition field="destination_number" expression="8337">
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="bridge" data="somewhere"/>
<action application="javascript" data="noanswer.js"/>
</condition>
This will make the execution stop when a sucessful bridge was over or continue if the attempt to originate a call is not sucessful
so if it works it will hangup and if not it will move on.
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com
JABBER: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
----- Original Message ----
From: Jonas Gauffin <jonas.gauffin at gmail.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Thursday, August 2, 2007 1:55:25 PM
Subject: Re: [Freeswitch-users] Dial
Wont the javascript be called when the destination of the bridge answers?
On 8/2/07, Bernhard Suttner <suttner at comdasys.com> wrote:
> this should work (sleep in milliseconds)
>
> <condition field="destination_number" expression="8337">
> <action application="bridge" data="somewhere"/>
> <action application="sleep" data="20000"/>
> <action application="javascript" data="noanswer.js"/>
> </condition>
>
>
> Am Donnerstag, den 02.08.2007, 17:52 +0200 schrieb Jonas Gauffin:
> > Hello
> >
> > Is it possible to add a delayed action that only is executed if the
> > previous action was not successful?
> >
> > for instance:
> >
> > <condition field="destination_number" expression="8337">
> > <action application="bridge" data="somewhere"/>
> > <action application="javascript" delay="20" data="noanswer.js"/>
> > </condition>
> >
> > //Jonas
> >
> > _______________________________________________
> > 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
>
_______________________________________________
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
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070802/0e683a88/attachment-0002.html
More information about the FreeSWITCH-users
mailing list