cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
309
Views
0
Helpful
7
Replies
Highlighted
Beginner

DTMF input in finesse10.5(1)

I am trying the below code to send DTMF, But I am getting an error "Cannot read the property 'sendDTMFRequest' of undefined ". I am new to this and not sure what I am doing wrong. Please help.

 

sendDTMFRequest: function(digit){
            dialog.sendDTMFRequest(user.getExtension(), {
                success: SSTSuccess,
                error: SSTError
            },digit);
 
/**
     * Handler for DTMFRequest when successful
     */
    SSTSuccess = function(rsp) {

        clientLogs.log("DTMF is Success");
    
    },
    
       
    
    /**
     * Handler for DTMFRequest when error occurs.
     */
    SSTError = function(rsp) {
    
            clientLogs.log"DTMF has failed");
    
    
    },
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: DTMF input in finesse10.5(1)

Hi,

 

In the code you pasted, I don't ever see the dialog object being instantiated. You need to get the dialog object first before you call one of its methods. 

 

User is ok because it is instantiated. Take a look at the call recording sample gadget to get an idea on how to use the dialog object in the return block: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/CallRecordingSampleGadget

 

Thanx,

Denise

View solution in original post

7 REPLIES 7
Highlighted
Cisco Employee

Re: DTMF input in finesse10.5(1)

Hi,

 

Most likely, the dialog object that you are calling sendDTMFRequest from is not defined. Where is that object coming from?

 

Thanx,

Denise

Highlighted
Beginner

Re: DTMF input in finesse10.5(1)

I am sorry, I am new to this. How do i define dilog object ?

 

Everyone's tags (1)
Highlighted
Cisco Employee

Re: DTMF input in finesse10.5(1)

Hi,

 

Take a look at the learning sample gadget: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/LearningSampleGadget

 

It teaches you how to use the user and dialog object.

 

Thanx,

Denise

Highlighted
Beginner

Re: DTMF input in finesse10.5(1)

 
Highlighted
Cisco Employee

Re: DTMF input in finesse10.5(1)

Hi,

 

In the code you pasted, I don't ever see the dialog object being instantiated. You need to get the dialog object first before you call one of its methods. 

 

User is ok because it is instantiated. Take a look at the call recording sample gadget to get an idea on how to use the dialog object in the return block: https://github.com/CiscoDevNet/finesse-sample-code/tree/master/CallRecordingSampleGadget

 

Thanx,

Denise

View solution in original post

Highlighted
Beginner

Re: DTMF input in finesse10.5(1)

Working. Thank you so much !!! :)

Highlighted
Cisco Employee

Re: DTMF input in finesse10.5(1)

You're welcome. Glad I was able to help.

CreatePlease to create content
This widget could not be displayed.