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 <!-- _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@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
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. Regards/Pagarbiai, Mindaugas Kezys http://www.kolmisoft.com _______________________________________________ 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 <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.
participants (2)
-
Anthony Minessale
-
Mindaugas Kezys