[Freeswitch-dev] Getting DTMF from channel.
Paulo Rogério Panhoto
paulo at voicetechnology.com.br
Fri Oct 22 13:09:29 PDT 2010
I'm writing a module that allows playback of MP4 video files (with
libmp4v2). The playback itself is made by two functions ready to run on
separate threads (though, audio runs on current thread and video runs on
a separate one). At this point, I'm trying to implement dtmf cut-through.
After some research (I checked out mod_dptools.c and
switch_ivr_play_say.c) and this code was my best guess -- it runs on the
const char * terminators =
if(terminators && !strcasecmp(terminators, "none"))
terminators = NULL;
SWITCH_LOG_DEBUG, "Digit %c\n", dtmf.digit);
if(terminators && strchr(terminators, dtmf.digit))
std::string digit(&dtmf.digit, 0, 1);
Which didn't work. I'm asking if anyone has any idea.
Any help is appreciated
Paulo R. Panhoto
More information about the FreeSWITCH-dev