提交 64c45ad1 authored 作者: Anthony Minessale's avatar Anthony Minessale

formatting

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1598 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 68898a6c
...@@ -53,7 +53,7 @@ struct dtmf_buffer { ...@@ -53,7 +53,7 @@ struct dtmf_buffer {
#define TTS_DEFAULT_ENGINE "cepstral" #define TTS_DEFAULT_ENGINE "cepstral"
#define TTS_DEFAULT_VOICE "david" #define TTS_DEFAULT_VOICE "david"
struct shashdot_entry { struct rss_entry {
uint8_t inuse; uint8_t inuse;
char *title_txt; char *title_txt;
char *description_txt; char *description_txt;
...@@ -82,7 +82,7 @@ static uint32_t match_count(char *str, uint32_t max) ...@@ -82,7 +82,7 @@ static uint32_t match_count(char *str, uint32_t max)
/* /*
dtmf handler function you can hook up to be executed when a digit is dialed during playback dtmf handler function you can hook up to be executed when a digit is dialed during playback
if you return anything but SWITCH_STATUS_SUCCESS the playback will stop. if you return anything but SWITCH_STATUS_SUCCESS the playback will stop.
*/ */
static switch_status_t on_dtmf(switch_core_session_t *session, char *dtmf, void *buf, unsigned int buflen) static switch_status_t on_dtmf(switch_core_session_t *session, char *dtmf, void *buf, unsigned int buflen)
{ {
...@@ -154,7 +154,7 @@ static void rss_function(switch_core_session_t *session, char *data) ...@@ -154,7 +154,7 @@ static void rss_function(switch_core_session_t *session, char *data)
const char *err = NULL; const char *err = NULL;
struct dtmf_buffer dtb = {0}; struct dtmf_buffer dtb = {0};
switch_xml_t xml = NULL, item, xchannel = NULL; switch_xml_t xml = NULL, item, xchannel = NULL;
struct shashdot_entry entries[TTS_MAX_ENTRIES] = {{0}}; struct rss_entry entries[TTS_MAX_ENTRIES] = {{0}};
uint32_t i = 0; uint32_t i = 0;
char *title_txt = "", *description_txt = "", *rights_txt = ""; char *title_txt = "", *description_txt = "", *rights_txt = "";
switch_codec_t speech_codec, *codec = switch_core_session_get_read_codec(session); switch_codec_t speech_codec, *codec = switch_core_session_get_read_codec(session);
...@@ -334,7 +334,7 @@ static void rss_function(switch_core_session_t *session, char *data) ...@@ -334,7 +334,7 @@ static void rss_function(switch_core_session_t *session, char *data)
/* Hmmm... I know there are no more matches so I don't *need* them to press pound but /* Hmmm... I know there are no more matches so I don't *need* them to press pound but
I already told them to press it. Will this confuse people or not? Let's make em press I already told them to press it. Will this confuse people or not? Let's make em press
pound unless this define is enabled for now. pound unless this define is enabled for now.
*/ */
} else if (match_count(cmd, feed_index) > 1) { } else if (match_count(cmd, feed_index) > 1) {
#else #else
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论