01-23-2020 08:20 AM
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.
Solved! Go to Solution.
01-28-2020 01:04 PM
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
01-23-2020 10:17 AM
Hi,
Most likely, the dialog object that you are calling sendDTMFRequest from is not defined. Where is that object coming from?
Thanx,
Denise
01-24-2020 05:23 AM - edited 01-27-2020 05:23 AM
I am sorry, I am new to this. How do i define dilog object ?
01-27-2020 01:56 PM
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
01-28-2020 05:16 AM - edited 01-29-2020 05:04 AM
01-28-2020 01:04 PM
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
01-29-2020 05:04 AM
Working. Thank you so much !!! :)
01-29-2020 08:39 AM
You're welcome. Glad I was able to help.
06-12-2020 03:01 PM
06-12-2020 02:57 PM
How was this resolved i was trying to do the same thing.Thanks in advance.
Regards,
Dhillip A
06-15-2020 09:06 AM
Hi,
To send DTMF, you must use the sendDTMFRequest(mediaAddress, handlers, digit) method: https://pubhub.devnetcloud.com/media/finesse/docs/guides/javascript-library/symbols/finesse.restservices.Dialog.html#sendDTMFRequest instead of the requestAction.
Thanx,
Denise
06-15-2020 09:10 AM
Denise,
Thanks, yes was able to get this going with SendDTMFRequest method over the weekend. issue is with with handling the dialog.
Regards,
Dhillip A
06-15-2020 09:31 AM
Hi,
Can you be more specific when you say "issue is with with handling the dialog." Is the request successful? What error are you getting? Are you getting into the correct handler?
Thanx,
Denise
06-19-2020 07:04 PM - edited 06-19-2020 07:05 PM
Hello Densie,
Sorry for delay, Yes the request is successful, i was getting uncaughtrefrence error. After looking into you example of i was able to get the request passed successfully.
_dialog.sendDTMFRequest(_user.getExtension(),
{
success : _DTMFSuccess,
error : _DTMFError
},'12345');
So the issue seems to be i was not handling the change dialog events properly.
Regards,
Dhillip A
06-22-2020 09:21 AM
Hi,
Great that you got it working!
Thanx,
Denise
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