10-07-2010 09:39 PM - edited 03-16-2019 01:13 AM
Hello all,
I have deployed TCL script on IOS gateway for Auto Attendant.
1. When the customer call in, tcl script will answer the call by Auto attendant.
2. Customer press 0, it will forward call to Operator.
3. Customer press extension number, it will forward call to the extension.
But now, I want to change the behavior of call handling:
When customer press 0, gateway will play a prompt. After prompt end, the call will forward to operator.
Have you ever made something like this. Please tell me it is possible or not. Thank you.
Regards,
Hiep Nguyen.
Solved! Go to Solution.
10-09-2010 04:39 AM
You would need to read and understand the TCL/IVR programmer guide to answer your question.
http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2.html
As mentioned above, it is better to have a professional programmer do this kind of work.
10-08-2010 04:12 AM
Yes, this is perfectly doable.
if you need professional help, you can contact me at the address present in my profile.
10-08-2010 05:18 AM
I'd think that's a very minor change in your existing TCL script.
Here's something u can try (not an official answer)
Open the TCL script in a text editor and locate subroutine where
the caller is hitting digit 0 and add following:
media play leg_incoming
for example:
if { $dest == "0" } {
set dest $oprtr
media play leg_incoming
leg setup $dest callInfo leg_incoming
audio.au is the prompt file to be played on flash path/dir.
Again, u can give it a shot and play around but for any professional asst.
reach out to a dev partner or CDN:
http://developer.cisco.com/web/cdc/home
DK
10-08-2010 07:18 AM
Hi Paolo, 5 stars for you with your confirmation.
Hi Dilip,
Thank you so much for your help. I am not a developer, I dont have much knowledge of tcl scripting.
In your post, for the condition $dest=="0", the script will do 3 tasks step-by-step:
1. First, it will set dest = operator value as I configured in paramspace.
2. It plays prompt
3. After prompt is end, it will forward call to operator.
Am I right? Thank you very much.
10-08-2010 07:32 AM
Hi Hiep,
Yes, your understanding of the flow is correct....
Note that in the example I provided, dest and oprtr
are variables/params. So pl. check your script as
these may hb been defined differently.
But the logic remains the same.
And BTW, I am no scripting expert or a developer but
don't think its at all complicated.
HTH,
DK
10-08-2010 08:32 AM
Yes my script is exactly the same variable. I will try this and report on this thread.
But I concern about one thing. In the 2nd step, router will play prompt. But are you sure that util the prompt stop playing, script will do 3rd step? Or right after prompt is played, script will do 3rd step while prompt is playing.
Thank you very much.
10-08-2010 08:39 AM
It will play the prompt and once its complete, the 3rd step (setup leg to operator extn)
will be executed.
10-08-2010 09:05 AM
dksingh wrote:
It will play the prompt and once its complete, the 3rd step (setup leg to operator extn)
will be executed.
That is not quite correct. TCL/IVR scripts have an asynchronous, event based execution.
So, code will continue only after the prompt has played, from an user-defined, different location.
For this reason it is not very easy to write TCL/IVR scripts, and it is better to give the task to professional developers instead.
10-09-2010 12:46 AM
Hello Paolo,
What do you mean: "code will continue only after the prompt has played, from an user-defined, different location."
10-09-2010 04:39 AM
You would need to read and understand the TCL/IVR programmer guide to answer your question.
http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2.html
As mentioned above, it is better to have a professional programmer do this kind of work.
10-10-2010 09:07 PM
Much appreciate, Paolo
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: