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..
See: http://bugs.digium.com/bug_view_page.php?bug_id=0000343 What kind of details do you need? Steve On Mon, 20 Oct 2003, 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 >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >___________________________________________________________ Steve Creel screel@turbs.com
Just an update for those who are interested.. I have got the "retrieve_extensions_from_mysql.pl" up and running and creating a test file.. So far it looks like it works great, the contexts are laid out nicely and in alphabetical order and you can add coments to each line to make the resultant file easier to look at.. 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 > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
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 > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >