cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
629
Views
10
Helpful
10
Replies

Is TCL script possible for my scenario?

hiepnguyenho
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

10 Replies 10

paolo bevilacqua
Hall of Fame
Hall of Fame

Yes, this is perfectly doable.

if you need professional help, you can contact me at the address present in my profile.

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

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.

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

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.

It will play the prompt and once its complete, the 3rd step (setup leg to operator extn)

will be executed.

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.

Hello Paolo,

What do you mean: "code will continue only after the prompt has played, from an user-defined, different location."

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.

Much appreciate, Paolo

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: