09-02-2014 04:51 AM
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
09-02-2014 05:26 AM
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
09-02-2014 06:01 AM
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} {
09-02-2014 06:06 AM
It still not work.
09-02-2014 09:29 AM
when you say did not work means it did not handoff to aa script ? did you changed the aa script name ?
Thanks,
Raghavendra
09-02-2014 06:52 PM
09-02-2014 09:52 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide