[Asterisk-Users] Context overlap?
Dylan VanHerpen
packetbell at gmail.com
Wed Apr 6 17:28:02 MST 2005
Thanks Moisés, that's kindof what I figured. I'll fix it by changing
the nightmode include to an explicit timeframe, instead of the 'catch
all' solution:
; After Hours (anything that doesn't match holiday or businesshours)
include => nightmode|00:00-7:59|mon-fri|*|*
include => nightmode|17:00-23:59|mon-fri|*|*
include => nightmode|*|sat|*|*
include => nightmode|*|sun|*|*
Dylan.
On Apr 6, 2005 5:05 PM, Moises Silva <moises.silva at gmail.com> wrote:
> mmmm, if hopefully im understanding your question. "Even tough they
> are in different context"...... i think thats wrong, since you are
> including both contexts in auto-attendant, they both are in the same
> context. The bussinesshours run first because its included first (in
> the hours set in the configuration), and if you dont have higher S
> extensions in the night context all works fine, but when you have more
> that 10 (more than bussinesshours) in night, then it continues with
> the next S extension. Hope i have been clear, and hope it helps you.
>
> Best Regards
>
> -Moisés Silva
>
> On Apr 6, 2005 10:36 PM, Dylan VanHerpen <packetbell at gmail.com> wrote:
> > I have an auto-attendant for day and night. When the [businesshours]
> > AA runs, it executes exten => s1 through exten => s9, then continues
> > with exten => s10 in [nightmode], even though they are in different
> > contexts. This was working fine until I added more 's' extensions in
> > night mode. When I comment out all 's' extensions 10 and above in
> > [nightmode], it works fine again.
> >
> > Is this a bug or am I missing something?
> >
> > Dylan.
> >
> > Asterisk CVS-v1-0-02/24/05-13:18:42
> >
> > [auto-attendant]
> > ; Business Hours
> > include => businesshours|08:00-16:59|mon-fri|*|*
> >
> > ; After Hours (anything that doesn't match holiday or businesshours)
> > include => nightmode
> >
> > [businesshours]
> > exten => s,1,Answer
> > exten => s,2,DigitTimeout,15
> > exten => s,3,ResponseTimeout,20
> > exten => s,4,Background(thank-you-for-calling)
> > exten => s,5,Background(if-u-know-ext-dial)
> > ...
> > exten => s,9,Background(to-hear-menu-again)
> >
> > [nightmode]
> > exten => s,1,Answer
> > exten => s,2,DigitTimeout,15
> > exten => s,3,ResponseTimeout,20
> > exten => s,4,Background(thank-you-for-calling)
> > exten => s,5,Background(if-u-know-ext-dial)
> > ...
> > exten => s,10,Background()
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
More information about the asterisk-users
mailing list