[Freeswitch-users] Does mod_rss even work?
Dave Horton
daveh at beachdognet.com
Thu Jun 9 00:44:48 MSD 2016
I’m trying to get a basic example mod_rss app to work, as per the example in https://wiki.freeswitch.org/wiki/Mod_rss,
but running into multiple failures.
The current blocking problem is that mod_rss is complaining of ill-formed xml syntax in the downloaded rss document:
2016-06-08 16:21:08.815054 [WARNING] mod_rss.c:414 Error [[error near line 553]: unexpected closing tag </rss>]
However, I have inspected the document (the specific document is available at http://www.dansdeals.com/feed) and it is valid syntax,
and there is in fact an opening <rss> tag in the document.
Before this, I ran into several problems that I had to hack the code to even get the basic menu to play and detect dtmf properly:
1) The Main Menu text was putting in angle brackets into the text for some reason, causing them to get read out as “greater than”.
Almost looks like someone thought they were formatting xml ?
//switch_snprintf(buf + len, sizeof(buf) - len, "%d: %s. />", idx + 1, feed_names[idx]);
2) The buffer into which dtmf was being collected was not properly zeroed out, so that dtmf entry of ‘1’ got treated as ‘1000’ by mod_rss, causing the session to end.
I am running FreeSWITCH Version 1.6.8+git~20160505T153832Z~99de0ad502~64bit (git 99de0ad 2016-05-05 15:38:32Z 64bit)
Either I am doing something wrong, or this doesn’t seem to work at all…..
Dave
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list