cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3034
Views
0
Helpful
3
Replies

Force Disconnect Calls after 5 minutes

Host_009
Level 1
Level 1

Hello community,

We have a requirement to disconnect some outgoing calls (to the PSTN) after 5 minutes, but not to apply this config for some users (management).

 

We are currently disconnecting all calls (incoming and outgoing) after 5 minutes, but this cannot continue for much longer. We were told that to accomplish this, it is necessary to use a TCL script, but we haven't figure out how to build a proper one.

 

Do you have any examples or ideas?

 

Thanks for the help in advance!

1 Accepted Solution

Accepted Solutions

Thank you Raghavendra.

 

It turns out it is posible to do it without a TCL script. This config should be applied to the Gateway in order to disconnect all calls after 5 minutes, except the ones made by intern 2463, which will be disconnected after 240 minutes.

 

Incoming calls can also be affected by appliying the same commands to the inbound dial-peer.

 

Hope this helps.

 

-----

application
package callfeature
param long-dur-disc-cause 16
param long-dur-duration 240
param long-dur-action disconnect
param long-dur-call-mon enable

dial-peer voice 1 voip
description Management
answer-address 2463
paramspace callfeature long-dur-duration 240
paramspace callfeature long-dur-action disconnect
paramspace callfeature long-dur-call-mon enable
paramspace callfeature long-dur-disc-cause 16
!
dial-peer voice 2 voip
description Everyone
answer-address 2...
paramspace callfeature long-dur-duration 5
paramspace callfeature long-dur-action disconnect
paramspace callfeature long-dur-call-mon enable
paramspace callfeature long-dur-disc-cause 16

-----

 

View solution in original post

3 Replies 3

Raghavendra G V
Cisco Employee
Cisco Employee

You can try to disconnect the call after 5 minutes with timer command in TCL IVR Script, for certain calls based on  either calling or called numbers.

 Please refer some scripts in below link.

https://developer.cisco.com/site/voice-gateway/downloads/sample-scripts/

 Refer TCL IVR Programming Guide

https://developer.cisco.com/site/voice-gateway/documents/api-documents/

 

Thanks,

Raghavendra

Thank you Raghavendra.

 

It turns out it is posible to do it without a TCL script. This config should be applied to the Gateway in order to disconnect all calls after 5 minutes, except the ones made by intern 2463, which will be disconnected after 240 minutes.

 

Incoming calls can also be affected by appliying the same commands to the inbound dial-peer.

 

Hope this helps.

 

-----

application
package callfeature
param long-dur-disc-cause 16
param long-dur-duration 240
param long-dur-action disconnect
param long-dur-call-mon enable

dial-peer voice 1 voip
description Management
answer-address 2463
paramspace callfeature long-dur-duration 240
paramspace callfeature long-dur-action disconnect
paramspace callfeature long-dur-call-mon enable
paramspace callfeature long-dur-disc-cause 16
!
dial-peer voice 2 voip
description Everyone
answer-address 2...
paramspace callfeature long-dur-duration 5
paramspace callfeature long-dur-action disconnect
paramspace callfeature long-dur-call-mon enable
paramspace callfeature long-dur-disc-cause 16

-----

 

Cisco JTAPI can help you for this task and freedom to apply logic as per your requirements.

 

Thanks & Regards,

Umesh

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: