leg_timeout  - http://wiki.freeswitch.org/wiki/Variable_leg_timeout - this limits how long to TRY to connect the leg.
Once the call connects, this timer is no longer applied.

If you want to enforce a maximum answered time, then use:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_hangup
or http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_transfer

-Avi Marcus


On Tue, Jul 5, 2011 at 5:59 PM, Mateusz Bartczak <netcentrica@gmail.com> wrote:
> Hi all
>
> I use outbound socket to handle call, I'm bridging call to external voip
> provider. This works very nice but I also need to specify call timeout (once
> answered).
>
> I've tried following but with no success:
>
> sendmsg
> call-command: execute
> execute-app-name: bridge
> execute-app-arg:
> {ignore_early_media=true,leg_timeout=10}sofia/gateway/trunk/600
> event-lock: true
>
> sendmsg
> call-command: execute
> execute-app-name: bridge
> execute-app-arg:
> {ignore_early_media=true}[leg_timeout=10]sofia/gateway/trunk/600
> event-lock: true
>
> sendmsg
> call-command: execute
> execute-app-name: bridge
> execute-app-arg: [leg_timeout=10]sofia/gateway/trunk/600
> event-lock: true
>
>
> Leg_timeout seems to be ignored and call continues after 10 seconds. What's
> the correct form of setting it for calls bridged via outbound socket
> handler?
>
> Is the leg_timeout a good choice to limit maximum answered call length?
>
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>