Thank you!
Regards/Pagarbiai,
Mindaugas Kezys
http://www.kolmisoft.com
From:
freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
On Behalf Of Anthony Minessale
Sent: Saturday, June 02, 2007 3:42 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Hangup the call n seconds AFTER called
party picks up
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.
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com
JABBER:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
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.
_______________________________________________
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
Boardwalk for $500? In 2007? Ha!
Play
Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.