« Back to TCL-API

How Can I receive a remote dtmf?

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
How Can I receive a remote dtmf?

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

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.
 

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 !

Ok, but Did you understand that the user will digit phone number answering prompt files of the system A? right?

thanks.

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.
 
 

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.
 


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 !

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.