MSC,<div><br></div><div>I think you mean leg_progress_timeout instead of leg_media_timeout, right?</div><div><br></div><div>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?</div>
<div><br></div><div>JM<br>
<br><br><div class="gmail_quote">On Wed, Apr 28, 2010 at 9:00 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is it failing because gateway1 is not responding at all? If so then I&#39;d say you&#39;d need to use leg_timeout or leg_media_timeout on each leg as needed:<br><br>&lt;action application=&quot;bridge&quot; data=&quot;[leg_timeout=4]${lcr_route_1}|[leg_timeout=6]${lcr_route_2}&quot;/&gt;<br>

<br>Check these variables:<br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#leg_timeout" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#leg_timeout</a><br><br>Test it out and let us know.<br>
<font color="#888888">-MC</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Apr 28, 2010 at 2:17 PM, Peder <span dir="ltr">&lt;<a href="mailto:peder@networkoblivion.com" target="_blank">peder@networkoblivion.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

I&#39;m having an issue where originate_timeout doesn&#39;t seem to be working as I<br>
think it would.  I am using lcr to get the gateways.  I can bridge to either<br>
gateway1 or 2 just fine.  Then I set it up with bridge using both gateways<br>
for failover and it worked fine.  I decided to change gateway1 to a fake IP<br>
to test failover and it works, but it takes 30 seconds to timeout.  I then<br>
found originate_timeout and set it to 4 seconds, but it doesn&#39;t timeout.  It<br>
still takes 30 seconds.<br>
<br>
<br>
Here is the snippet from my dialplan:<br>
<br>
&lt;action application=&quot;set&quot; data=&quot;originate_timeout=4&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;${lcr_route_1}|${lcr_route_2}&quot;/&gt;<br>
<br>
<br>
Here is the debug that shows it is being set:<br>
<br>
EXECUTE sofia/internal/<a href="mailto:1111@192.168.1.108" target="_blank">1111@192.168.1.108</a> set(originate_timeout=4)<br>
2010-04-28 16:06:28.265187 [DEBUG] mod_dptools.c:818<br>
sofia/internal/<a href="mailto:1111@192.168.1.108" target="_blank">1111@192.168.1.108</a> SET [originate_timeout]=[4]<br>
EXECUTE sofia/internal/<a href="mailto:1111@192.168.1.108" target="_blank">1111@192.168.1.108</a><br>
bridge([lcr_carrier=tex,lcr_rate=0.01900]sofia/gateway/Tex/5551212|[lcr_carr<br>
ier=tel,lcr_rate=0.03000]sofia/gateway/Tel/5551212)<br>
<br>
Then I get this:<br>
2010-04-28 16:07:00.273156 [NOTICE] sofia.c:4547 Hangup<br>
sofia/external/5551212 [CS_CONSUME_MEDIA] [RECOVERY_ON_TIMER_EXPIRE]<br>
<br>
<br>
And it successfully goes out gateway2, but it is 30 seconds later, not 4 as<br>
I would guess.  Am I using the timeout wrong?  Or is there some other<br>
setting I need instead?<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>