[Freeswitch-users] Dial Timeout Issue

Peder peder at networkoblivion.com
Wed Apr 28 14:17:31 PDT 2010


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?




More information about the FreeSWITCH-users mailing list