before you call bridge add another action that
executes the sched_hangup application
<action application="sched_hangup" data="+<seconds>[ <cause>]"/>
so to make the call last 1 minute and end with cause
SWITCH_CAUSE_ALLOTTED_TIMEOUT
(which happens to be the default so you can omit it unless you need another cause.)
<action application="sched_hangup" data="+60 alloted_timeout"/>
Also if you omit the '+' character the value will be considered the
absolute epoch time you wish the call to end.
Once a call is already up you can do it from the sched_hangup api command
from xmlrpc or the command cli.
do a show channels to get the uuid of the call then enter
sched_hangup +60 <uuid> alotted_timeout
all the params
besides uuid have the same meaning as the dialplan app.
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400
----- Original Message ----
From: Mindaugas Kezys <mkezys@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Saturday, June 2, 2007
4:09:07 AM
Subject: [Freeswitch-users] Hangup the call n seconds AFTER called party picks up
Hello,
What is the equivalent in FreeSwitch for AsteriskĦs Dial
command setting:
S(n): Hangup the call n seconds
AFTER called party picks up??
Also how to do this in application? Maybe thereĦs some
variable to be set? Like channel->max_call_length or similar?
Thank you for your help.