RE: [Asterisk-Users] Night menu not working

2004-03-12 Thread Justin Carlson
adding the day / month augments fixed the issue.  I like the suggestion
about breaking up the current config.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Steven
Critchfield
Sent: Thursday, March 11, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Night menu not working


These suggestions may not help get your daytime stuff working, but it
should make life easier later.

On Thu, 2004-03-11 at 14:53, Justin Carlson wrote:
 [general]
 static=yes
 writeprotect=no
 [globals]
 MARYKAY = 21
 RECEPTIONIST = 20
 KATHY = 22

 [daytime]
 include = parkedcalls
 exten = t,1,Playback(vm-goodbye)
 exten = t,2,Hangup
 exten = i,1,Playback(invalid)

 switch = IAX2/[EMAIL PROTECTED]/dialout

 ;sip extentions


Make the following section it's own context and have it included in the
above section.

 exten = ${MARYKAY},1,Dial,SIP/21|20
 exten = ${MARYKAY},2,Voicemail,u21

 exten = ${RECEPTIONIST},1,Dial,SIP/20|20
 exten = ${RECEPTIONIST},2,Dial,SIP/20SIP/21SIP/22|20
 exten = ${RECEPTIONIST},3,Voicemail,u20

 exten = ${KATHY},1,Dial,SIP/22|20
 exten = ${KATHY},2,Voicemail,u22

The below section probably needs to be defined in a section that can be
included in both daytime and nighttime. You may want to call afterhours
to access your voicemail.

 ; for Local Voicemail access
 exten = *98,1,VoicemailMain
 exten = asterisk,1,VoicemailMain

 exten = 25,1,Dial,SIP/fax

Maybe this should be included in the above mentioned newly needed
section for your extensions.

 ; voicemail extentions
 exten = 621,1,Voicemail,u21
 exten = 620,1,Voicemail,u20
 exten = 622,1,Voicemail,u22
 exten = 679,1,VoicemailMain
 ; direct extentions
 exten = 201,1,Dial,IAX/[EMAIL PROTECTED]/6515526201
 exten = 307,1,Dial,IAX/[EMAIL PROTECTED]/6515522307
 exten = 309,1,Dial,IAX/[EMAIL PROTECTED]/6515522309
 exten = 313,1,Dial,IAX/[EMAIL PROTECTED]/6515522313
 exten = 317,1,Dial,IAX/[EMAIL PROTECTED]/6515522317
 exten = 601,1,Dial,IAX/[EMAIL PROTECTED]/6515523601
 exten = 603,1,Dial,IAX/[EMAIL PROTECTED]/6515523603
 exten = 609,1,Dial,IAX/[EMAIL PROTECTED]/6515523609
 exten = 664,1,Dial,IAX/[EMAIL PROTECTED]/6515523664
 exten = 694,1,Dial,IAX/[EMAIL PROTECTED]/6515523694
 exten = 816,1,Dial,IAX/[EMAIL PROTECTED]/6515526816
 exten = 817,1,Dial,IAX/[EMAIL PROTECTED]/6515526817
 exten = 821,1,Dial,IAX/[EMAIL PROTECTED]/6515526821
 exten = 842,1,Dial,IAX/[EMAIL PROTECTED]/6515526842

 [faxmachine]
 switch = IAX2/[EMAIL PROTECTED]/faxmachine

 [nighttime]
 exten = 21,1,Playback(tt-monkeys)

 [default]
 include = daytime|8:00-14:48|mon-fri
 include = nighttime

Seems you are missing the days of month and months arguments there.
Also, you would probably want to conditionally include nighttime also.
--
Steven Critchfield  [EMAIL PROTECTED]

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Night menu not working

2004-03-11 Thread Justin Carlson
Hi all,

I am trying to get day and nighttime menus to work in * and no matter what
time I specify the first include entry that matches the number dialed is
used.  I have included my extentions.conf and my sip phones have a default
context of default.


[general]
static=yes
writeprotect=no
[globals]
MARYKAY = 21
RECEPTIONIST = 20
KATHY = 22

[daytime]
include = parkedcalls
exten = t,1,Playback(vm-goodbye)
exten = t,2,Hangup
exten = i,1,Playback(invalid)

switch = IAX2/[EMAIL PROTECTED]/dialout

;sip extentions


exten = ${MARYKAY},1,Dial,SIP/21|20
exten = ${MARYKAY},2,Voicemail,u21

exten = ${RECEPTIONIST},1,Dial,SIP/20|20
exten = ${RECEPTIONIST},2,Dial,SIP/20SIP/21SIP/22|20
exten = ${RECEPTIONIST},3,Voicemail,u20

exten = ${KATHY},1,Dial,SIP/22|20
exten = ${KATHY},2,Voicemail,u22

; for Local Voicemail access
exten = *98,1,VoicemailMain
exten = asterisk,1,VoicemailMain

exten = 25,1,Dial,SIP/fax

; voicemail extentions
exten = 621,1,Voicemail,u21
exten = 620,1,Voicemail,u20
exten = 622,1,Voicemail,u22
exten = 679,1,VoicemailMain
; direct extentions
exten = 201,1,Dial,IAX/[EMAIL PROTECTED]/6515526201
exten = 307,1,Dial,IAX/[EMAIL PROTECTED]/6515522307
exten = 309,1,Dial,IAX/[EMAIL PROTECTED]/6515522309
exten = 313,1,Dial,IAX/[EMAIL PROTECTED]/6515522313
exten = 317,1,Dial,IAX/[EMAIL PROTECTED]/6515522317
exten = 601,1,Dial,IAX/[EMAIL PROTECTED]/6515523601
exten = 603,1,Dial,IAX/[EMAIL PROTECTED]/6515523603
exten = 609,1,Dial,IAX/[EMAIL PROTECTED]/6515523609
exten = 664,1,Dial,IAX/[EMAIL PROTECTED]/6515523664
exten = 694,1,Dial,IAX/[EMAIL PROTECTED]/6515523694
exten = 816,1,Dial,IAX/[EMAIL PROTECTED]/6515526816
exten = 817,1,Dial,IAX/[EMAIL PROTECTED]/6515526817
exten = 821,1,Dial,IAX/[EMAIL PROTECTED]/6515526821
exten = 842,1,Dial,IAX/[EMAIL PROTECTED]/6515526842

[faxmachine]
switch = IAX2/[EMAIL PROTECTED]/faxmachine

[nighttime]
exten = 21,1,Playback(tt-monkeys)

[default]
include = daytime|8:00-14:48|mon-fri
include = nighttime

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Night menu not working

2004-03-11 Thread Tilghman Lesher
On Thursday 11 March 2004 14:53, Justin Carlson wrote:
 I am trying to get day and nighttime menus to work in * and no
 matter what time I specify the first include entry that matches the
 number dialed is used.  I have included my extentions.conf and my
 sip phones have a default context of default.

Many people find that using the application GotoIfTime in the dialplan
logic is more intuitive.  Try that.

-Tilghman

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Night menu not working

2004-03-11 Thread Steven Critchfield
These suggestions may not help get your daytime stuff working, but it
should make life easier later.

On Thu, 2004-03-11 at 14:53, Justin Carlson wrote:
 [general]
 static=yes
 writeprotect=no
 [globals]
 MARYKAY = 21
 RECEPTIONIST = 20
 KATHY = 22
 
 [daytime]
 include = parkedcalls
 exten = t,1,Playback(vm-goodbye)
 exten = t,2,Hangup
 exten = i,1,Playback(invalid)
 
 switch = IAX2/[EMAIL PROTECTED]/dialout
 
 ;sip extentions
 

Make the following section it's own context and have it included in the
above section.

 exten = ${MARYKAY},1,Dial,SIP/21|20
 exten = ${MARYKAY},2,Voicemail,u21
 
 exten = ${RECEPTIONIST},1,Dial,SIP/20|20
 exten = ${RECEPTIONIST},2,Dial,SIP/20SIP/21SIP/22|20
 exten = ${RECEPTIONIST},3,Voicemail,u20
 
 exten = ${KATHY},1,Dial,SIP/22|20
 exten = ${KATHY},2,Voicemail,u22

The below section probably needs to be defined in a section that can be
included in both daytime and nighttime. You may want to call afterhours
to access your voicemail.

 ; for Local Voicemail access
 exten = *98,1,VoicemailMain
 exten = asterisk,1,VoicemailMain
 
 exten = 25,1,Dial,SIP/fax

Maybe this should be included in the above mentioned newly needed
section for your extensions.

 ; voicemail extentions
 exten = 621,1,Voicemail,u21
 exten = 620,1,Voicemail,u20
 exten = 622,1,Voicemail,u22
 exten = 679,1,VoicemailMain
 ; direct extentions
 exten = 201,1,Dial,IAX/[EMAIL PROTECTED]/6515526201
 exten = 307,1,Dial,IAX/[EMAIL PROTECTED]/6515522307
 exten = 309,1,Dial,IAX/[EMAIL PROTECTED]/6515522309
 exten = 313,1,Dial,IAX/[EMAIL PROTECTED]/6515522313
 exten = 317,1,Dial,IAX/[EMAIL PROTECTED]/6515522317
 exten = 601,1,Dial,IAX/[EMAIL PROTECTED]/6515523601
 exten = 603,1,Dial,IAX/[EMAIL PROTECTED]/6515523603
 exten = 609,1,Dial,IAX/[EMAIL PROTECTED]/6515523609
 exten = 664,1,Dial,IAX/[EMAIL PROTECTED]/6515523664
 exten = 694,1,Dial,IAX/[EMAIL PROTECTED]/6515523694
 exten = 816,1,Dial,IAX/[EMAIL PROTECTED]/6515526816
 exten = 817,1,Dial,IAX/[EMAIL PROTECTED]/6515526817
 exten = 821,1,Dial,IAX/[EMAIL PROTECTED]/6515526821
 exten = 842,1,Dial,IAX/[EMAIL PROTECTED]/6515526842
 
 [faxmachine]
 switch = IAX2/[EMAIL PROTECTED]/faxmachine
 
 [nighttime]
 exten = 21,1,Playback(tt-monkeys)
 
 [default]
 include = daytime|8:00-14:48|mon-fri
 include = nighttime

Seems you are missing the days of month and months arguments there.
Also, you would probably want to conditionally include nighttime also.
-- 
Steven Critchfield  [EMAIL PROTECTED]

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users