Silicon Technix Forums

Please login or register.

Author Topic: Detect DTMF from Caller...  (Read 702 times)

Offline w1ve

  • newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Detect DTMF from Caller...
« on: June 20, 2011, 07:10:44 PM »
I am testing your IAX OCX... So far, looks very nice.  I am using version 2.0.70.

I have a need to detect DTMF presses from the caller.  I notice that when I press a digit from a remote phone i get an "unknown event 5 for call 0" message when I press a digit.  This is only for the 1st digit.

Is it possible to get DTMF detection?

Congrats on a great OCX?

Regards,

Gerry

Offline Babar Shafiq Nazmi

  • Administrator
  • Senior Member
  • *****
  • Posts: 151
  • Karma: +87/-0
    • View Profile
    • http://www.silicontechnix.com
Re: Detect DTMF from Caller...
« Reply #1 on: June 20, 2011, 07:29:34 PM »
For sending DTMF from remote end your need to use

Quote
iaxWebPhone.sendDTMF(n);

where iaxWebPhone is the name of object

If its a web page, you can check for DTMF inputs from using something like this, I did on http://callme.silicontechnix.com

Quote
Include
http://callme.silicontechnix.com/jquery-1.6.1.min.js
and then use
http://callme.silicontechnix.com/keycapture.js

For getting DTMF events on remote side, you might need to call register along with userid/password of IAX2 account.

Take Care
Babar
....God is the greatest Programmer....

http://www.silicontechnix.com

Offline w1ve

  • newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Detect DTMF from Caller...
« Reply #2 on: June 20, 2011, 08:39:19 PM »
I tried with registration, no luck.

I am wanting to receive DTMF digits from a remote caller.  ie, the caller is someone on a PSTN telephone.  the ActiveX control receives the DTMF, and I want an event to fire detecting the DTMF.

I'm testing with a PSTN phone as the remote end.   PBX is asterisk.   Does the PSTN trunk have to be RFC-2833, or is this supposed to work in-band as well?

(I am building an application that has a voice path open all the time, but want to perform commands based on DTMF while the call is running.)

Thanks for the prompt reply!

Offline Babar Shafiq Nazmi

  • Administrator
  • Senior Member
  • *****
  • Posts: 151
  • Karma: +87/-0
    • View Profile
    • http://www.silicontechnix.com
Re: Detect DTMF from Caller...
« Reply #3 on: June 22, 2011, 03:27:15 PM »
Now understand your requirement, But IAX2 stack doesn't support DTMF events to raise, but that can be added in IAX2 stack.
I will look into it but not sure about its timelines, hopefully soon.

Take Care
....God is the greatest Programmer....

http://www.silicontechnix.com

 

Page created in 0.115 seconds with 16 queries.