How Can I receive a remote dtmf?

Version 1
    This document was generated from CDN thread

    Created by: Jean Lofrano on 22-10-2012 01:55:53 PM
    How Can I receive a remote dtmf?

    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Anusha Kannappan on 22-10-2012 11:57:04 PM
    Hi Jean,
    You can collect the digits from the outgoing leg. Before that store the outgoing leg id in some variable and use the same in the leg collectdigits.
    Example:
            set out_leg [infotag get leg_outgoing]
            leg collectdigits $out_leg

    Thanks,
    Anusha

    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Jean Lofrano on 22-02-2013 11:49:11 AM
    Hi,

    For example: I have a Environment with 2 attendant system (System A and Tcl script) like this::
    System A <<<< >>>> router with TCL IVR script
    System A Actions:
    The users will digit option 1 to change the network password, than the System A will ask phone number, which number my tcl script will must understand. 

    I understood the ideia, but How the router will receive the digits? What will be the script structure?   
    My tcl script will receive the digits via DTMf Instantly, right?
    thanks.
     

    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Jean Lofrano on 22-02-2013 12:52:19 PM
    Ok, but Did you understand that the user will digit phone number answering prompt files of the system A? right?

    thanks.

    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Yaw-Ming Chen on 22-02-2013 12:37:52 PM
    So once router(running Tcl script) is connected to A ( leg connect leg_incoming), we then monitor DTMF digit on incoming leg (from A) by using leg collectdigits command, Please refer to programming guide. If System A send any inband DTMF digit then Tcl script will get ev_collectdigits_done or ev_digit_end depends on what option you used to collect digit. Again this is well documented in programming. You can also refer to BACD script see how it does in collecting digit.
     
    Thanks !

    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Yaw-Ming Chen on 22-02-2013 01:32:41 PM
    System A ----> router

    Caller <phone> ----> router
     
    So router real don't know what is on incoming side, as long as DTMF can get in from incoming leg it doesn't matter what is the resouce. The key is the how you can send th DTMF from system A to router and how Tcl knows when and what to expect the DTMF digit.

    Some people use two levels IVR
    For example passed the system A IVR then syatem A make a call to router from there Tcl provide IVR to collect digit again.
     
     

    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Jean Lofrano on 25-02-2013 11:16:36 AM
    Hi Yaw,

    Exactly! This is my problem, because my customer must keep the calls on system A.
     
    So, I´ve been trying develop another conector between system A and router.
     
    Can I integrate TCL script with java? how can I receive data from a third java application, like phone number?
     
    thanks.
     

    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Yaw-Ming Chen on 25-02-2013 08:09:05 PM

    I don't see why we can not do this

    Caller A <phone>--------->System A ----> router(Tcl)------> destination B <agent phone...etc>


    you can do this right ?
    Caller A <phone>---->System A ----> destination B <agent phone...etc> ?

    Then instead of Destination B just change it will be a router with Tcl and Tcl will oick up the phone just like someone pick one the phone ?

    What is "data", is just DTMF right ?

     
    We cannot integrate with Java.

     
    Thanks !


    Subject: RE: How Can I receive a remote dtmf?
    Replied by: Jean Lofrano on 26-02-2013 07:15:42 AM
    Hey Yaw,
     
    Yes, I can do the flow like this:
    Caller A <phone>--------->System A ----> router(Tcl)------> destination B <agent phone...etc>
    I have already had a TCL script working properly with that flow.
     
    But the problem is my customer, who asked me If I could get the digits on system A unless the router will ask the digits again. But I need to keep the router in the solution to do some kind of http requisition with their application.

    So, I must get the digits when the call is on the system A, because it has been a customer condition. (It was asked by customer´s auditor)
     
    DTMF = Data
     
    thanks.
     
    thanks.