cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6636
Views
0
Helpful
17
Replies

how to set the dial internal extension directly in AA TCL script

Kyaw Kyaw San
Beginner
Beginner

Dear all,

I  am using CME with aa-bcd service.But I would like to dial the internal extension directly without press '1' .But CISCO default script don't have that features.I am very glad if anyone help to edit this script.

In CISCO default script,to dial the internal extension with press '1' and after we can dial the internal extension.

1 Accepted Solution
17 Replies 17

yawming
Cisco Employee
Cisco Employee

Can you please share the script you are using ?

Please kindly check the CISCO default TCL script file.

This is command file run is CISCO router

!

application

service aa-test flash:app-b-acd-aa-3.0.0.5.tcl

  paramspace english index 1

  param max-time-vm-retry 2

  param max-time-call-retry 20

  param voice-mail 5003

  paramspace english language en

  param aa-pilot 6000

  param number-of-hunt-grps 1

  param dial-by-extension-option 1

  param handoff-string aa-test

  param welcome-prompt _bacd_welcome.au

  paramspace english location flash:

  param call-retry-timer 15

  param service-name queue

  param menu-timeout 5

  param second-greeting-time 30

!

service queue flash:app-b-acd-3.0.0.5.tcl

  param queue-len 15

  param aa-hunt1 2000

  param operator 0

  param queue-manager-debugs 1

  param number-of-hunt-grps 1

!

This script has the feature built in. Please refer to this gudie.

https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucme/bacd/configuration/guide/cme40tcl.pdf

if [infotag get cfg_avpair_exists dial-by-extension-option] {

set dialByExtension [string trim [infotag get cfg_avpair dial-by-extension-option]]

} else {

set dialByExtension "NONE"

}

f {$status == "cd_005"} {

set KATIMER(keepTime) [clock seconds]

set optionSelected [infotag get evt_dcdigits]

puts ">>>>>>>>>>>>> return from infotag get evt_dcdigits is : $optionSelected <<<<<<<<<<<<<<<<<<<<<<<<<"

if {$optionSelected == $dialByExtension} {

puts -nonewline "TCL AA: +++ Collect Extension Digits +++"

set retryDigitCollect 1

leg collectdigits leg_incoming PARAM1

media play leg_incoming _bacd_enter_dest.au

fsm setstate CALLTOEXTENSION

}

Kyaw Kyaw San
Beginner
Beginner

If you just want to do :

Reuired Prcedure for incoming call is

The caller dail the PSTN number>>>en_bacd_welcome.au (greeting prompt coming up)>>>>the caller can type the internal extension number directly or  the caller can type the operator number "0" to call the operator.

Then the bacd script is overkill.

You also need to think about if caller didn't enter digit in certain period of time what do you want to handle ? What is the extension digit length ?..etc. There may have existing script somewhere see if I can dig it out. Will update you later.

Dear yawchen,

I got all.thanks you for supporting me.You are awesome.

Glad it works for you !