Detect incoming DTMF

319 views
Skip to first unread message

rafael malheiros

unread,
Mar 15, 2012, 7:39:21 PM3/15/12
to csipsim...@googlegroups.com
here http://trac.pjsip.org/repos/wiki/FAQ#dtmf i found some one way to do that, has some another way?

How Can I Detect Inband Tone

Currently PJMEDIA lacks built-in tone detection routine. But if you you have the routine, it shouldn't be straightforward to integrate it to the framework:

First, you need to wrap your routine as  pjmedia_port so that it can be plugged to the media framework. Your implementation would be similar to  WAV writermedia port (pjmedia/wav_writer.c), but instead of writing to WAV file, it would monitor the audio signal for tone and call some callback when a tone is detected.
Once you have the tone detector media port implementation, you can just add this media port to the conference bridge with  pjsua_conf_add_port(), and connect the audio source to your tone detector.

Régis Montoya

unread,
Mar 16, 2012, 6:04:58 AM3/16/12
to csipsim...@googlegroups.com
Hello Rafael,

I personally never tried to play with that. Maybe you could ask on pjsip mailing list.
Maybe other apps that reuses the stack has that implemented as a module.
If so, and if it's developed in C/C++, maybe we could port that for android and add this to csipsimple api :)

Regards,
Régis
Reply all
Reply to author
Forward
0 new messages