[Asterisk-Users] include a file ?

Lance Arbuckle asterisk at arbuckle.org
Tue Dec 30 14:53:57 MST 2003


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>


-- 
  .~.    
  /V\    Lance C. Arbuckle
 // \\   
/(   )\  
 ^'~'^



More information about the asterisk-users mailing list