TCL Script help Dialing the number then Pause then DTMF on PRI Line.

Version 1
    This document was generated from CDN thread

    Created by: Manish Kumar Gupta on 04-06-2010 12:17:22 PM
    Hi,




    I have integrateged Cisco-Genensys through CTI application user and the
    integration is working fine.




    Here in Genensys , Genesys dials like this "xxxxxxxxAAAAAAyyyy"


    where xxxxxxxx is phone number of the customer, yyyy is the extension
    number of the customer


    and AAAAAA is the saparator between phone number and extension number.




    Genesys dials the whole string like xxxxxxxxAAAAAAyyyy and passed it


    as blind transfer to Cisco Call Manager,


    and I have created 1 translatation pattern in Voice Gateway which


    translates AAAAAA to ",,,,,,".  and there is 1 SIP Trunk beween CUCM and
    Voice Gateway,


    in Voice Gateway i made dial-peer configuration below




    dial-peer voice 1003 pots


    destination-pattern xxxxxxxx,,,,,,XXXX


    direct-inward-dial


    port 0/0/1:15


    forward-digits all ,




    Now the objective is to dial-out xxxxxxxx then wait for 6 seconds (since
    it is 6 ",")


    and then send XXXX as a DTMF (caller entered digits).


    But as per the presnt configuration it is not able to connect the call
    and call drops.




    Please let me know how to achive this, what else configuration is left
    in Voice Gateway and CUCM.




    CUCM version-6.1.2.1000-13




    JTAPI Current version 6.1(2.1000)-12 




    CCM-TServer version 7.6




    License Manager Version 9.5




    Voice Gateway Protocol- H.323


    ---------------------------------------------------------
    For the above requirement I managed to develop 1 TCL Script also, please have a look and advice where to do more changes to achieve the above requirement.
    "
     
    proc get_pri {} {
    set check ","
    global answerTime
    global numstring
    global dialDTMF
    global dialnumber
    global pause
    global dnis
    set numstring ""
    set answerTime 0
    set dialdtmf 6
    set pause 6
    set dnis ""
    foreach int [regexp -all -line -inline "(^PRI\[0-9]/\[0-9])" $dialnumber] {
    if {![dnis=="" $numstring $dialnumber $check ]} {
    if {[info exists pri_out]} {
    append pri_out "," $pause
    } else {
    set pri_out $dnis
    }
    set check $dnis
    }
    }
     return $pri_out
    }
    "
     
     
    Appreciate the help in advance.




    Thanks,




    Manish Gupta.

    Subject: RE: TCL Script help Dialing the number then Pause then DTMF on PRI Line.
    Replied by: Yawming Chen on 04-06-2010 02:19:10 PM
    I am not sure if voice GW can take ",,,,,,".
    Anyway let say the saparator is AAAAAA (I know GW will take A), you just need to read DNIS dial 1st part start a timer for X seconds then dial 2nd part. But you need to make sure the other system's interdigit timeout is longer than X seconds.
     
    Please post you entire script so can know better what are you trying to do here.
     
    Thanks !

    Subject: RE: TCL Script help Dialing the number then Pause then DTMF on PRI Line.
    Replied by: Manish Kumar Gupta on 06-06-2010 08:06:07 AM
    HI Yawming,
     
    Thanks for the reply,
    Please find the enclosed script.
     
    Thanks,
    Manish

    Subject: RE: TCL Script help Dialing the number then Pause then DTMF on PRI Line.
    Replied by: Yawming Chen on 06-06-2010 05:48:02 PM
    Hi,
     
    Since you post the quetion in this forum so I assume you are going to use Tcl API on Cisco voice gateway that running IOS.
     
    The script you attached doesn't look like the Cisco TCL IVR API script
     
    Please check out the following like to take a look the programming guide and sample scripts.
     
    http://developer.cisco.com/web/vgapi/resources
     
     
    Thanks !
     

    Subject: RE: TCL Script help Dialing the number then Pause then DTMF on PRI Line.
    Replied by: paolo bevilacqua on 10-06-2010 01:17:11 AM
    I have already developed a script for such purpose, and it is completely tested and configurable.
    Please look at "speed dial with pauses" in http://ciscoscripts.com