Hi, I'm currently doing some testing against asterisk 1.6.1.7-rc2 (keep meaning to upgrade) and am having a problem with the GotoIfTime dial plan function. The asterisk book says that day of week field can include the ampersand (&) to combine multiple days / day ranges but this gives me an error. For example mon&wed gives the error (in the asterisk console): [Nov 23 18:04:27] WARNING[11387]: pbx.c:6249 get_range: Invalid day of week 'mon&wed', assuming none Does anyone else have experience of this problem? Are there any patches / newer versions to get around this? Thanks in advance. Regards, Dr. Nic Colledge -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091123/d8e7206e/attachment.htm
On Monday 23 November 2009 12:11:02 pm Nic Colledge wrote:> I'm currently doing some testing against asterisk 1.6.1.7-rc2 (keep meaning > to upgrade) and am having a problem with the GotoIfTime dial plan function. > The asterisk book says that day of week field can include the ampersand (&) > to combine multiple days / day ranges but this gives me an error. For > example mon&wed gives the error (in the asterisk console): > [Nov 23 18:04:27] WARNING[11387]: pbx.c:6249 get_range: Invalid day of week > 'mon&wed', assuming none > > Does anyone else have experience of this problem? Are there any patches / > newer versions to get around this?That was an error on my part, when I helped review the book prior to publication. (I was incidentally thinking of the arguments to the CUT() function.) However, given that it was a good idea, it has been implemented in the forthcoming 1.6.2 release, currently in release candidate status. -- Tilghman
On Mon, Nov 23, 2009 at 1:11 PM, Nic Colledge <nic at njcolledge.net> wrote:> I?m currently doing some testing against asterisk 1.6.1.7-rc2 (keep meaning > to upgrade) and am having a problem with the GotoIfTime dial plan function. > > The asterisk book says that day of week field can include the ampersand (&) > to combine multiple days / day ranges but this gives me an error. > > For example mon&wed gives the error (in the asterisk console): > > [Nov 23 18:04:27] WARNING[11387]: pbx.c:6249 get_range: Invalid day of week > 'mon&wed', assuming noneI use "mon-fri" all the time, but I've never tried to grab non-contiguous days before. Have you tried '|', as in the shift of backslash, or some people say pipe? I'm not sure I've ever actually seen documentation that says multiple non-contiguous days is valid syntax.