On Tue, 2003-12-30 at 15:53, Lance Arbuckle wrote:
> Sean Cheesman wrote:
> > 
> > The # is needed.  It's your standard programming syntax.
> > 
> > My two cents on the date/time variable would be no.  The includes are
> > processed when * starts up, and are all grouped together.  It's more of a
> > way to keep everything clean than for a logic basis.  Anyone else?
> > 
> 
> > Brian West wrote:
> > >
> > > its
> > >
> > > #include filename.conf
> > >
> > 
> > Does the synatx include the # at the beginning of the line ?
> > And can this type of include be time/date dependant like the standard
> > include ?
> > 
> > include => filename.conf|<hours>|<weekdays>|<monthdays>|<months>
> > 
> 
> ok, Im a bit confused.  I was refering to using includes within
> contexts.
> I've been doing things like this in extensions.conf :
> 
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> [local]                         -allow local area calling
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> include => outgoing-pstn-local
> include => outgoing-iax-peer
> include => outgoing-operator
> include => outgoing-911
> include => outgoing-411
> include => outgoing-611
> 
> and this
> 
> ; check for holiday and play special message
> ; include => newyears|*|*|1|jan
> 
> My original question was if I could break my extension.conf file up into
> seperate files and include the smaller pieces back into the main file
> like this.
> 
> extensions.conf
> include => /etc/asterisk/extensions.conf.outgoing.contexts
> include => /etc/asterisk/extensions.conf.incoming.contexts
> include => /path/to/some/file|<hours>|<weekdays>|<monthdays>|<months>

As has been said before, you can not use the time/date function for the
inclusion of files. It probably wouldn't be a good idea anyways as it
might lead to a more likely conflict that only shows up on rare
occasions. Try solving a problem that only happens during a new moon
sometime.

Define contexts in the extra files. Do time/date includes of those
contexts when needed.

-- 
Steven Critchfield  <[EMAIL PROTECTED]>

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to