[Freeswitch-users] Leg_timeout question
paul gore
paul.gore.j at gmail.com
Mon Aug 9 19:53:07 PDT 2010
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]sofia/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 at teotech.com>wrote:
> 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]sofia/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 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100809/ee0d795d/attachment-0001.html
More information about the FreeSWITCH-users
mailing list