[Freeswitch-trunk] [commit] r6309 - freeswitch/trunk/src/mod/applications/mod_rss
Freeswitch SVN
anthm at freeswitch.org
Fri Nov 16 13:54:40 EST 2007
Author: anthm
Date: Fri Nov 16 13:54:40 2007
New Revision: 6309
Modified:
freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
Log:
add config override var
Modified: freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c Fri Nov 16 13:54:40 2007
@@ -179,16 +179,20 @@
char *argv[3], *feed_list[TTS_MAX_ENTRIES] = { 0 }, *feed_names[TTS_MAX_ENTRIES] = {
0};
int argc, feed_index = 0;
- char *cf = "rss.conf";
+ const char *cf = "rss.conf";
switch_xml_t cfg, cxml, feeds, feed;
char buf[1024];
int32_t jumpto = -1;
uint32_t matches = 0;
switch_input_args_t args = { 0 };
+ const char *vcf = NULL;
channel = switch_core_session_get_channel(session);
assert(channel != NULL);
+ if ((vcf = switch_channel_get_variable(channel, "rss_alt_config"))) {
+ cf = vcf;
+ }
if (!(cxml = switch_xml_open_cfg(cf, &cfg, NULL))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
More information about the Freeswitch-trunk
mailing list