[Freeswitch-users] Outbound socket, bridge command - how to specify leg_timeout?

Avi Marcus avi at avimarcus.net
Tue Jul 5 19:04:17 MSD 2011


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
 <http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_sched_transfer>
-Avi Marcus


On Tue, Jul 5, 2011 at 5:59 PM, Mateusz Bartczak <netcentrica at 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 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/20110705/9da3481a/attachment.html 


More information about the FreeSWITCH-users mailing list