You'll want to #include it. This leaves the burden of the [general] and any static configs on sip.conf but allows the script to blindly write out from the database to sip_additional.conf
in sip.conf: #include sip_additional.conf Steve On Tue, 21 Oct 2003, WipeOut wrote: >I know I am posting to myself all the time here but as i didnt find any >info on this when I was looking it may help others.. > >I have just been playing with the retrieve_sip_from_mysql.pl.. > >Some notes.. >You must create an entry with the keyword "account" and the value will >be what you want between the [] otherwise it will ignore any other >parameters and not create the entry.. > >It does not create the [general] section of the sip.conf so I guess you >will have to add that manually (anyone got any comments on this?).. > >By default it wants to create a file called sip_additional.conf.. Does >Asterisk look for a file named sip_additional.conf when it loads? or do >you have to merge the contents of sip.conf and sip_additional.conf?? > >Later.. > >WipeOut wrote: > >> Hi, >> >> I was just taking a look at the source code and noticed two files.. >> >> retrieve_extensions_from_mysql.pl >> and >> retrieve_sip_conf_from_mysql.pl >> >> Its pretty obvious what these two files do, but info about them is a >> little scarce.. >> >> Is anyone using these scripts and could give me any details on them? >> >> Is there a similar script for voicemail.conf floating about? >> >> Thanks, >> >> Later.. >> >> _______________________________________________ >> Asterisk-Users mailing list >> [EMAIL PROTECTED] >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > >_______________________________________________ >Asterisk-Users mailing list >[EMAIL PROTECTED] >http://lists.digium.com/mailman/listinfo/asterisk-users > ___________________________________________________________ Steve Creel [EMAIL PROTECTED] _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users