Hi Paul, I would agree with what's been mentioned so far about what should work :-) The hangup and the hangup-after-bridge should have worked, I would suspect (but don't anything about) an interaction with this statement-try removing it: <action application="sched_hangup" data="+7200 alloted_timeout"/> Another thing to try: To hangup when the bridge fails you set this back to false. <action application="set" data="continue_on_fail=false"/> Have fun, Robert _____ From: paul gore [mailto:paul.gore.j@gmail.com] Sent: Tuesday, August 10, 2010 4:53 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Leg_timeout question I should clarify myself, I talk about "no answer" scenario here, so <action application="set" data="hangup_after_bridge=true"/> wouldn't have any effect, correct? So in this case <action application="hangup"/> I assume should properly hangup the call, but it does not. On Mon, Aug 9, 2010 at 10:53 PM, paul gore <paul.gore.j@gmail.com> wrote: Thank you, that worked! But I have another problem now. If I don't want to forward to voice mail at the end, but just hangup, it does not work - call repeats 3 times and no hangup gets send to the call originator, even with "hangup" action at the end. Like this: <extension name="call_route_1688506814_16099860919" continue="false"><condition field="caller_id_number" expression="^(\d{7,20})$"/> <condition field="destination_number" expression="^(call_route_16099860919)$"> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="set" data="ignore_early_media=true"/> <action application="sched_hangup" data="+7200 alloted_timeout"/> <action application="set" data="transfer_ringback=${us-ring}"/> <action application="set" data="ringback=${us-ring}"/> <action application="bridge" data="[leg_timeout=20]sofia/internal/1002%${domain_name},[leg_timeout=25]sof ia/internal/1003%${domain_name}"/> <action application="hangup"/> </condition></extension> Is this fixable? On Mon, Aug 9, 2010 at 11:46 AM, Robert Hadley <robert.hadley@teotech.com> wrote: Try <action application="set" data="continue_on_fail=true"/> _____ From: paul gore [mailto:paul.gore.j@gmail.com] Sent: Sunday, August 08, 2010 7:39 PM To: FreeSWITCH Users Help Subject: [Freeswitch-users] Leg_timeout question Hi there, I am trying to accomplish a pretty simple thing in FS dialplan - ring one or multiple destinations with individual timeout per destination, if nobody answers - forward to a voicemail. Here is dial plan I use: <extension name="call_route_1688506814_16099860919" continue="false"><condition field="caller_id_number" expression="^(\d{7,20})$"/> <condition field="destination_number" expression="^(call_route_16099860919)$"> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=false"/> <action application="set" data="ignore_early_media=true"/> <action application="sched_hangup" data="+7200 alloted_timeout"/> <action application="set" data="transfer_ringback=${us-ring}"/> <action application="set" data="ringback=${us-ring}"/> <action application="bridge" data="[leg_timeout=20]sofia/internal/1002%${domain_name},[leg_timeout=25]sof ia/internal/1003%${domain_name}"/> <action application="sleep" data="500"/><action application="set" data="voicemail_greeting_number=1"/><action application="voicemail" data="default $${domain} 1002"/></condition></extension> What happens is incoming call from my provider rings ext 1002, but instead of going to the VM after 20 sec and no answer FS sends 602 (alloted_timeout) and the ring repeats again and so 3 times, after which call dies. But never goes to voice mail. What I am doing wrong? _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org