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

Anthony Minessale anthmct at yahoo.com
Sat Jun 2 05:42:20 PDT 2007


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




 
 

<!--
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Consolas;panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
	{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;text-decoration:underline;}
pre
	{margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
span.HTMLPreformattedChar
	{font-family:Consolas;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
	{margin-right:0cm;margin-left:0cm;font-size:10.0pt;font-family:"Times New Roman", "serif";}
span.htmlpreformattedchar0
	{font-family:Consolas;}
span.emailstyle19
	{font-family:"Calibri", "sans-serif";color:#1F497D;}
span.EmailStyle22
	{font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
	{font-size:10.0pt;}
 _filtered {margin:3.0cm 1.0cm 2.0cm 3.0cm;}
div.Section1
	{}
-->






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







      ____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070602/7dcf93c4/attachment-0002.html 


More information about the FreeSWITCH-users mailing list