cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1862
Views
1
Helpful
5
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Brian McCormick on 07-07-2011 04:52:16 AM
Hi,
I'm looking to create a simple TCL script which will automatically disconnected an outgoing call after 10secs. Can anybody point me in the right direction for this?
Thanks,
Brian
 

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Anusha Kannappan on 07-07-2011 06:43:32 AM
Hi,

You can set timer when the call is active and once the timer expires call a procedure that would destroy the connection and disconnect the leg using the following command

connection destroy {connectionID | info-tag}
leg disconnect {legID | info-tag} [-c cause_code] [-g <gtd_handle>] [-i <iec>]

Please go through the TCL IVR API programming guide from the following link to gain the basic knowledge for developing the scripts

http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2.html

At the end of the document you could see some sample scripts, make use of the procedures and FSM states as per your requirement and create a script.

Thanks,
Anusha

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Raghavendra Gutty Veeranagappa on 08-07-2011 01:48:37 AM
Hi Brian,

you don't need to intialize the timer, The timer start command starts a timer for a specified number of seconds When the timer expires, the script receives an ev_named_timer event.
please send us your script and debugs by enabling below debugs to find the issue.

debug voip app

Thanks,
Raghavendra

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Brian McCormick on 07-07-2011 10:25:02 AM
Hi,
That's helpful. I'm almost there, but I'm having trouble initialising the timer..
 
At this line ...
    #create a timer for 5 secs
    timer start named_timer 5 timer_1
 
 
I get the following error:
//-1//TCL :EE29697584000:/tcl_TimerStartObjCmd: timer start named_timer 5 timer_1
%SYS-3-MGDTIMER: Uninitialized timer, init with uninitialized master, timer = 38. -Process= "script background loader",
 
How do I initialse  named_timer?
 
Thanks,
Brian
 

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Brian McCormick on 08-07-2011 04:17:24 AM
Hi,
I've attached the script. I think my issue is finding the event that will trigger the procedure that will start the timer. I'm attempting to run this script on the outgoing dial peer.
 
I initially started the timer in the init{} procedure .. that's why I was getting the initialisation error ... I'm not getting this anymore.

Thanks,
Brian

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Yaw-Ming Chen on 08-07-2011 01:53:06 PM
Your script doesn't connect incoming leg
Please go to
http://developer.cisco.com/web/vgapi/docs
download
     "How to test TCL IVR Scripts in Cisco Voice..."
You should find an sample script in it. Take a look how to do call setup.

Thanks !

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Brian McCormick on 08-07-2011 05:37:54 PM
Some basic stuff missing from that script. I've resolved my issue.
Thanks for the help

Brian

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Brian Meade on 05-08-2011 03:25:55 PM
Brian,

Could you send me your script?  I'm looking to do the same thing and don't have any script experience at all.

Thanks!

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Juan Manuel Valladares on 13-06-2012 06:52:18 PM
Hey Brian, can you send me your script too please, thank you so much for your help... my email is fallenangel.jm@gmail.com

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: Hassan Alsafi on 24-07-2012 06:45:48 AM
Dear  Brian ,,


                        Please  can you send to me your script file . for testing   Email   hassan_alsaffi@hotmail.com .

   Best Regards ,

Subject: RE: TCL script to disconnect call after 10 secs
Replied by: MIGUEL MARTINEZ on 07-02-2013 10:58:08 AM
Brian, can you send me the script, please.   melvin.silva@hotmail.com
Comments
HaiLua54
Level 1
Level 1

Dear All! I also need this command, can you help to share for me this TCL script to disconnect after call 10 minutes. Thank for your help

My email: nguyendinhhoai@msn.com

Raghavendra G V
Cisco Employee
Cisco Employee

you can use timer start command, after time expire you can close call.
timer start named_timer 60 timer_1

please refer debit card sample application for your reference.
https://software.cisco.com/download/home/277641082/type/283451126/release/2.0.2.8

Thanks,
Raghavendra

HaiLua54
Level 1
Level 1

Dear Raghavendra!

Actually, I do not have much knowledge about TCL scripts. So thanks for your help sharing me the whole script to do this. I will try to study and learn to apply. thank you very much

i will try recheck and add it to out role when user calling in the gateway.

Hoai.Nguyen

Software Engineer

Phone number: 0168.3849023

HaiLua54
Level 1
Level 1

Dear Sir!

Actually, I do not have much knowledge about TCL scripts. So thanks for your help sharing me the whole script to do this. I will try to study and learn to apply. thank you very much

i will try recheck and add it to out role when user calling in the gateway.

Hoai.Nguyen

Software Engineer

Phone number: 0168.3849023

agup
Level 1
Level 1

Hi,

Can you please share with me the TCL script for call disconnect, please send to - agupta25@gmail.com

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links