[Freeswitch-users] Leg_timeout question

Robert Hadley robert.hadley at teotech.com
Tue Aug 10 08:51:01 PDT 2010


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 at 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 at 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 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]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 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/20100810/c4681bb4/attachment-0001.html 


More information about the FreeSWITCH-users mailing list