[Freeswitch-users] Dial Timeout Issue

João Mesquita jmesquita at freeswitch.org
Wed Apr 28 19:49:48 PDT 2010


MSC,

I think you mean leg_progress_timeout instead of leg_media_timeout, right?

And actually, this is one good question. What is the difference between
leg_timeout and leg_progress_timeout? leg_timeout if till call completes and
leg_progress_timeout is only til 180/183? Is that the correct understanding?

JM


On Wed, Apr 28, 2010 at 9:00 PM, Michael Collins <msc at freeswitch.org> wrote:

> Is it failing because gateway1 is not responding at all? If so then I'd say
> you'd need to use leg_timeout or leg_media_timeout on each leg as needed:
>
> <action application="bridge"
> data="[leg_timeout=4]${lcr_route_1}|[leg_timeout=6]${lcr_route_2}"/>
>
> Check these variables:
> http://wiki.freeswitch.org/wiki/Channel_Variables#leg_timeout
>
> Test it out and let us know.
> -MC
>
>
> On Wed, Apr 28, 2010 at 2:17 PM, Peder <peder at networkoblivion.com> wrote:
>
>> I'm having an issue where originate_timeout doesn't seem to be working as
>> I
>> think it would.  I am using lcr to get the gateways.  I can bridge to
>> either
>> gateway1 or 2 just fine.  Then I set it up with bridge using both gateways
>> for failover and it worked fine.  I decided to change gateway1 to a fake
>> IP
>> to test failover and it works, but it takes 30 seconds to timeout.  I then
>> found originate_timeout and set it to 4 seconds, but it doesn't timeout.
>>  It
>> still takes 30 seconds.
>>
>>
>> Here is the snippet from my dialplan:
>>
>> <action application="set" data="originate_timeout=4"/>
>> <action application="bridge" data="${lcr_route_1}|${lcr_route_2}"/>
>>
>>
>> Here is the debug that shows it is being set:
>>
>> EXECUTE sofia/internal/1111 at 192.168.1.108 set(originate_timeout=4)
>> 2010-04-28 16:06:28.265187 [DEBUG] mod_dptools.c:818
>> sofia/internal/1111 at 192.168.1.108 SET [originate_timeout]=[4]
>> EXECUTE sofia/internal/1111 at 192.168.1.108
>>
>> bridge([lcr_carrier=tex,lcr_rate=0.01900]sofia/gateway/Tex/5551212|[lcr_carr
>> ier=tel,lcr_rate=0.03000]sofia/gateway/Tel/5551212)
>>
>> Then I get this:
>> 2010-04-28 16:07:00.273156 [NOTICE] sofia.c:4547 Hangup
>> sofia/external/5551212 [CS_CONSUME_MEDIA] [RECOVERY_ON_TIMER_EXPIRE]
>>
>>
>> And it successfully goes out gateway2, but it is 30 seconds later, not 4
>> as
>> I would guess.  Am I using the timeout wrong?  Or is there some other
>> setting I need instead?
>>
>>
>> _______________________________________________
>> 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
>>
>
>
> _______________________________________________
> 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/20100428/f49242cd/attachment.html 


More information about the FreeSWITCH-users mailing list