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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 :)