[Asterisk-Users] Night menu not working

Justin Carlson justin at lach.net
Fri Mar 12 07:20:52 MST 2004


adding the day / month augments fixed the issue.  I like the suggestion
about breaking up the current config.

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Steven
Critchfield
Sent: Thursday, March 11, 2004 3:42 PM
To: asterisk-users at lists.digium.com
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/lachtest at 10.1.1.109/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/20&SIP/21&SIP/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/woodlane at 65.113.14.6/6515526201
> exten => 307,1,Dial,IAX/woodlane at 65.113.14.6/6515522307
> exten => 309,1,Dial,IAX/woodlane at 65.113.14.6/6515522309
> exten => 313,1,Dial,IAX/woodlane at 65.113.14.6/6515522313
> exten => 317,1,Dial,IAX/woodlane at 65.113.14.6/6515522317
> exten => 601,1,Dial,IAX/woodlane at 65.113.14.6/6515523601
> exten => 603,1,Dial,IAX/woodlane at 65.113.14.6/6515523603
> exten => 609,1,Dial,IAX/woodlane at 65.113.14.6/6515523609
> exten => 664,1,Dial,IAX/woodlane at 65.113.14.6/6515523664
> exten => 694,1,Dial,IAX/woodlane at 65.113.14.6/6515523694
> exten => 816,1,Dial,IAX/woodlane at 65.113.14.6/6515526816
> exten => 817,1,Dial,IAX/woodlane at 65.113.14.6/6515526817
> exten => 821,1,Dial,IAX/woodlane at 65.113.14.6/6515526821
> exten => 842,1,Dial,IAX/woodlane at 65.113.14.6/6515526842
>
> [faxmachine]
> switch => IAX2/faxmachine at 65.113.14.6/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  <critch at basesys.com>

_______________________________________________
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