[Freeswitch-users] Hangup the call n seconds AFTER called party picks up

Mindaugas Kezys mkezys at gmail.com
Sat Jun 2 06:13:35 PDT 2007


Thank you!

 

Regards/Pagarbiai,

Mindaugas Kezys

http://www.kolmisoft.com

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony
Minessale
Sent: Saturday, June 02, 2007 3:42 PM
To: freeswitch-users at 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 at hotmail.com
JABBER:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch


FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400

 

----- Original Message ----
From: Mindaugas Kezys <mkezys at gmail.com>
To: freeswitch-users at 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.

 

 

Regards/Pagarbiai,

Mindaugas Kezys

http://www.kolmisoft.com 

_______________________________________________
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

 

 

  _____  

Boardwalk for $500? In 2007? Ha! 
Play
<http://us.rd.yahoo.com/evt=48223/*http:/get.games.yahoo.com/proddesc?gameke
y=monopolyherenow>  Monopoly Here and Now (it's updated for today's economy)
at Yahoo! Games.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070602/17e3ef4a/attachment-0002.html 


More information about the FreeSWITCH-users mailing list