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

Force Disconnect Calls after 5 minutes

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
Beginner

Re: Force Disconnect Calls after 5 minutes

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

-----

 

3 REPLIES 3
Cisco Employee

Re: Force Disconnect Calls after 5 minutes

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

Beginner

Re: Force Disconnect Calls after 5 minutes

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

-----

 

Highlighted
Contributor

Re: Force Disconnect Calls after 5 minutes

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

 

Thanks & Regards,

Umesh

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards