05-06-2019 08:35 AM - edited 05-06-2019 08:39 AM
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!
Solved! Go to Solution.
05-07-2019 08:01 AM - edited 05-07-2019 08:04 AM
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
-----
05-06-2019 10:25 PM
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
05-07-2019 08:01 AM - edited 05-07-2019 08:04 AM
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
-----
05-29-2019 02:05 AM
Cisco JTAPI can help you for this task and freedom to apply logic as per your requirements.
Thanks & Regards,
Umesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide