<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">&lt;condition field="destination_number" expression="8337"&gt;<br>&nbsp;&nbsp; &lt;action application="set" data="hangup_after_bridge=true"/&gt;<br>&nbsp;&nbsp; &lt;action application="set" data="continue_on_fail=true"/&gt;<br>&nbsp;&nbsp; &lt;action application="bridge" data="somewhere"/&gt;<br>&nbsp;&nbsp; &lt;action application="javascript" data="noanswer.js"/&gt;<br>&lt;/condition&gt;<br><div>&nbsp;<br><br>This will make the execution stop when a sucessful bridge was over or continue if the attempt to originate a call is not sucessful<br><br>so if it works it will hangup and if not it will move on.<br><br><br><br></div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank"
 href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>JABBER:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jonas Gauffin &lt;jonas.gauffin@gmail.com&gt;<br>To: freeswitch-users@lists.freeswitch.org<br>Sent: Thursday, August 2, 2007 1:55:25 PM<br>Subject: Re: [Freeswitch-users] Dial<br><br><div>Wont the javascript be called when the destination of the bridge answers?<br><br><br>On 8/2/07, Bernhard Suttner &lt;suttner@comdasys.com&gt; wrote:<br>&gt; this should work
 (sleep in milliseconds)<br>&gt;<br>&gt; &lt;condition field="destination_number" expression="8337"&gt;<br>&gt;&nbsp;&nbsp; &lt;action application="bridge" data="somewhere"/&gt;<br>&gt;&nbsp;&nbsp; &lt;action application="sleep" data="20000"/&gt;<br>&gt;&nbsp;&nbsp; &lt;action application="javascript" data="noanswer.js"/&gt;<br>&gt; &lt;/condition&gt;<br>&gt;<br>&gt;<br>&gt; Am Donnerstag, den 02.08.2007, 17:52 +0200 schrieb Jonas Gauffin:<br>&gt; &gt; Hello<br>&gt; &gt;<br>&gt; &gt; Is it possible to add a delayed action that only is executed if the<br>&gt; &gt; previous action was not successful?<br>&gt; &gt;<br>&gt; &gt; for instance:<br>&gt; &gt;<br>&gt; &gt; &lt;condition field="destination_number" expression="8337"&gt;<br>&gt; &gt;&nbsp;&nbsp; &lt;action application="bridge" data="somewhere"/&gt;<br>&gt; &gt;&nbsp;&nbsp; &lt;action application="javascript" delay="20" data="noanswer.js"/&gt;<br>&gt; &gt; &lt;/condition&gt;<br>&gt; &gt;<br>&gt; &gt;
 //Jonas<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Freeswitch-users mailing list<br>&gt; &gt; Freeswitch-users@lists.freeswitch.org<br>&gt; &gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; &gt; UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; &gt; <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Freeswitch-users mailing list<br>&gt; Freeswitch-users@lists.freeswitch.org<br>&gt; <a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a
 target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>&gt;<br><br>_______________________________________________<br>Freeswitch-users mailing list<br>Freeswitch-users@lists.freeswitch.org<br><a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div><br></div></div><br>
      <hr size=1>Shape Yahoo! in your own image.  
<a href="http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7">Join our Network Research Panel today!</a>
</body></html>