Time-of-day broken?
This is my first day using time-based routing, and I'm not having fun. Regex (*FAIL*) [YLE3] time-of-day() =~ /00:00-07:59:59/ break=on-false freeswitch@internal> strftime 2010-12-27 02:14:41 This is on the latest GIT. -Avi
the () implies whatever you are testing evaluated to an empty string so you are testing if NOTHING matches the regex. What did the xml look like? On Sun, Dec 26, 2010 at 6:29 PM, Avi Marcus <Avi@amarcus.com> wrote:
This is my first day using time-based routing, and I'm not having fun. Regex (FAIL) [YLE3] time-of-day() =~ /00:00-07:59:59/ break=on-false freeswitch@internal> strftime 2010-12-27 02:14:41 This is on the latest GIT. -Avi _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I deleted that file, argh. let's see: I tried <condition time-of-day="00:00-21:59:59" break="on-true"> and now I get Date/Time Match (PASS) [YLE-tod] break=on-true Not sure what changed. But if it showed Regex (*FAIL*) [YLE3] time-of-day() =~ /00:00-07:59:59/ break=on-false last time - it seemed to be matching it to something...? Why the switch from regex to date/time? Did I have the () in my XML? Oh well, if I can't reproduce it, then I guess there's nothing to do about it. -Avi On Mon, Dec 27, 2010 at 5:47 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
the () implies whatever you are testing evaluated to an empty string so you are testing if NOTHING matches the regex. What did the xml look like?
On Sun, Dec 26, 2010 at 6:29 PM, Avi Marcus <Avi@amarcus.com> wrote:
This is my first day using time-based routing, and I'm not having fun. Regex (FAIL) [YLE3] time-of-day() =~ /00:00-07:59:59/ break=on-false freeswitch@internal> strftime 2010-12-27 02:14:41 This is on the latest GIT. -Avi _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Anthony Minessale
-
Avi Marcus
-
Avi Marcus