From 640d3fad14a57587edc75de42d845fad28e26b61 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 16 Nov 2007 18:54:40 +0000 Subject: [PATCH] add config override var git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6309 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_rss/mod_rss.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_rss/mod_rss.c b/src/mod/applications/mod_rss/mod_rss.c index 27e37b7187..b7e7863e41 100644 --- a/src/mod/applications/mod_rss/mod_rss.c +++ b/src/mod/applications/mod_rss/mod_rss.c @@ -179,16 +179,20 @@ SWITCH_STANDARD_APP(rss_function) 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);