Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Is TCL script possible for my scenario?

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
Hall of Fame Super Gold

Re: Is TCL script possible for my scenario?

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 REPLIES
Hall of Fame Super Gold

Re: Is TCL script possible for my scenario?

Yes, this is perfectly doable.

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

Cisco Employee

Re: Is TCL script possible for my scenario?

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

New Member

Re: Is TCL script possible for my scenario?

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.

Cisco Employee

Re: Is TCL script possible for my scenario?

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

New Member

Re: Is TCL script possible for my scenario?

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.

Cisco Employee

Re: Is TCL script possible for my scenario?

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

will be executed.

Hall of Fame Super Gold

Re: Is TCL script possible for my scenario?

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.

New Member

Re: Is TCL script possible for my scenario?

Hello Paolo,

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

Hall of Fame Super Gold

Re: Is TCL script possible for my scenario?

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.

New Member

Re: Is TCL script possible for my scenario?

Much appreciate, Paolo

332
Views
10
Helpful
10
Replies