[asterisk-dev] make samples generated

Marc Blanchet marc.blanchet at viagenie.ca
Mon Dec 31 08:47:36 CST 2007


Le 07-12-30 à 00:44, Simon Perreault a écrit :

> On Saturday 29 December 2007 17:20:42 Marc Blanchet wrote:
>>  I'm bouncing the idea to replace the static configs in the samples
>> by the use of the Makefile variables and then to generate the right
>> conf files at the make samples time. Example:
>> configs/musiconhold.conf.sample:
>> ...
>> directory=$(ASTVARLIBDIR)/moh
>>
>> then make samples will generate:
>>
>> musiconhold.conf
>> ...
>> directory=/var/lib/asterisk/moh
>
> Usually this is done the other way around. The config-reading code  
> should
> contain the configured prefix in the default value and the  
> corresponding line
> in the sample configuration should be commented out.

fine. I think we can achieve both:
- generate configs with the right path chosen during configure
- make whatever changes to the configs such as putting some statements  
in comments.

Marc.

>
>
> This is what was done a short time ago by Luigi Rizzo for  
> asterisk.conf with
> the various directories it contains, IIRC.
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev

-----
IPv6 book: Migrating to IPv6, Wiley, 2006, http://www.ipv6book.ca





More information about the asterisk-dev mailing list