# GotoIfTime problem

**URL:** <https://community.asterisk.org/t/gotoiftime-problem/9445>\
**Category:** Asterisk Support\
**Created:** [September 25, 2006, 7:45am UTC](https://community.asterisk.org/t/gotoiftime-problem/9445 "2006-09-25T07:45:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![epauli](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@epauli](https://community.asterisk.org/u/epauli)\
**Post date:** [September 25, 2006, 7:45am UTC](https://community.asterisk.org/t/gotoiftime-problem/9445/1 "2006-09-25T07:45:08Z")

</div>

The Asterisk book at this website: [oreilly.com/catalog/asterisk/inx.html](http://www.oreilly.com/catalog/asterisk/inx.html)  
says: “Monday through Friday would be expressed as mon-fri. Tuesday and Thursday would be expressed as tue,thu.”

But, when i do ‘tue,thu’ (without quotes) as days\_of\_week, the response of Asterisk is:

2006-09-25 09:07:10 WARNING[26833]: pbx.c:3964 get\_dow: Invalid day ‘tue,thu’, assuming none

Is that a problem in Asterisk 1.2.12.1?

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [September 25, 2006, 7:46am UTC](https://community.asterisk.org/t/gotoiftime-problem/9445/2 "2006-09-25T07:46:45Z")

</div>

why not post the actual line you’re using ??

---

<div class="post-metadata">

**Author:** ![epauli](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@epauli](https://community.asterisk.org/u/epauli)\
**Post date:** [September 25, 2006, 7:57am UTC](https://community.asterisk.org/t/gotoiftime-problem/9445/3 "2006-09-25T07:57:25Z")

</div>

> [@baconbuttie](#):
>
> why not post the actual line you’re using ??

This is the record in the Realtime database.

context edwin  
exten \_X.  
priority 1  
app GotoIfTime  
appdata 09:00-11:00|tue,thu|_|_?uitgaand|1|1

I want to forward the call to ‘uitgaand,1,1’ on Tuesday and Thursday at 09:00-11:00 uur.

context uitgaand  
exten 1  
priority 1  
app Dial  
appdata IAX2/bechtoldsheim2barton/${DNID}

When i do 09:00-11:00|tue-thu|_|_?uitgaand|1|1, the call is handled as expected, but with wed (thats not the intention).

---

<div class="post-metadata">

**Author:** ![colbec](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@colbec](https://community.asterisk.org/u/colbec)\
**Post date:** [September 25, 2006, 10:09am UTC](https://community.asterisk.org/t/gotoiftime-problem/9445/4 "2006-09-25T10:09:47Z")

</div>

I wonder if at some point the system is treating the ‘th’ in ‘thu’ as a separate character from ‘t’, and therefore treats ‘thu’ as a two-character combination ‘!u’ (where ! is ‘th’), and therefore not valid. It sounds like it is using ‘wed’ as a default since it follows ‘tue’?

I’m not sure where this leads as in a practical resolution sense, but perhaps since you are using realtime there is a role for MySQL collation settings?

---

<div class="post-metadata">

**Author:** ![whoiswes](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@whoiswes](https://community.asterisk.org/u/whoiswes)\
**Post date:** [September 25, 2006, 12:55pm UTC](https://community.asterisk.org/t/gotoiftime-problem/9445/5 "2006-09-25T12:55:15Z")

</div>

can’t use commas, have to separate those two days onto two lines, like so:

appdata 09:00-11:00|tue|_|_?uitgaand|1|1  
appdata 09:00-11:00|thu|_|_?uitgaand|1|1

you can only have individual entries or ranges of entries in the GotoIfTime app…
