cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1175
Views
0
Helpful
6
Replies

Cme with b-acd + TOD scrip

peepo1ccna
Level 1
Level 1

Hi All

I'm new in scipt and have problem about b-acd from Cme with b-acd scrip not hunt  everything OK . but I need to use tod scrip refer from(https://developer.cisco.com/site/collaboration/call-control/voice-gateway/documentation/) it work.

I try to use tod + aa script but not work anyone can suggest me how to intergrate it.

Please help me!

application

service aa flash:app-b-acd-aa-2.1.2.3.tcl

  paramspace english index 1

  param number-of-hunt-grps 2

  param menu-timeout 6

  param dial-by-extension-option 5

  param handoff-string aa

  paramspace english language en

  param max-time-vm-retry 2

  param max-extension-length 4

  param aa-pilot 7700

  paramspace english location flash:

  param second-greeting-time 60

  param welcome-prompt _bacd_welcome.au

  param call-retry-timer 15

  param max-time-call-retry 600

  param voice-mail 5000

  param service-name queue

!

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

  param queue-len 15

  param aa-hunt1 7777

  param aa-hunt2 8888

  param queue-manager-debugs 1

  param number-of-hunt-grps 2

!

service tod flash:/tod.tcl

  param end 17:00

  param start 08:00

  param prefix 7700

\

\

\

dial-peer voice 300 pots

service tod

destination-pattern 02.......

incoming called-number 027515577

port 0/0/0

forward-digits all

!

dial-peer voice 310 pots

service aa

incoming called-number 7700

port 0/0/0

forward-digits all

!

dial-peer voice 320 pots

service aa

destination-pattern 77..

incoming called-number 027515577

port 0/0/0

forward-digits all

6 Replies 6

Raghavendra G V
Cisco Employee
Cisco Employee

Hi manapath,

You can try to handoff to bacd script as below from tod script instead of leg setup.

handoff appl leg_incoming $aaName -s "ISN"

call close

Thanks,

Raghavendra

Hi Raghavendra

From tod script I have to do like this ?

# This tcl script provides Time of Day Routing

proc init { } {

    global param

}

proc act_Setup { } {

   

    leg setupack leg_incoming

    handoff appl leg_incoming $aaName -s "ISN"

    call close

    set dnis [infotag get leg_dnis]

    set now [clock format [clock seconds] -format %R]

    puts "now $now"

    set block 0

    if {[infotag get cfg_avpair_exists start] && [infotag get cfg_avpair_exists end]} {

      set start [infotag get cfg_avpair start]

      set end [infotag get cfg_avpair end]

      set cc [string compare $start $end]

      puts "start $start end $end cc $cc"

      if {$cc} {

        if {$cc==1} {

It still not work.

when you say did not work means it did not handoff to aa script ? did you changed the aa script name ?

Thanks,

Raghavendra

HI Raghavendra

I try to change llike you suggest but not work , I'm not sure that I change in the right point, if you not mind please help me to check the script(tod_modify).

thankyou.

please go through the TCL IVR programming guide from below link

https://developer.cisco.com/site/collaboration/call-control/voice-gateway/documentation/

Syntax

handoff {appl | callappl} {legID | info-tag} [{legID2 | info-tag2} ...] {app-name | <handle>} [-s

<argstring>]

Arguments

• appl | callappl—Specific handoff command desired. The only difference is that appl does not

provide a return value, callappl does.

• legID | infotag—The call leg ID to hand off to the destination. For more information about info-tags,

see Chapter 4, “Information Tags.”

• app-name | <handle>—The application name or handle.

• -s <argstring>—Information to pass to another application instance.

Thanks,

Raghavendra