[Freeswitch-users] Leg_timeout question
Robert Hadley
robert.hadley at teotech.com
Mon Aug 9 08:46:13 PDT 2010
Try
<action application="set" data="continue_on_fail=true"/>
_____
From: paul gore [mailto:paul.gore.j at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100809/e9848a0b/attachment.html
More information about the FreeSWITCH-users
mailing list