Re: [Asterisk-Users] retrieve_?_from_mysql.pl files??
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
Re: [Asterisk-Users] retrieve_?_from_mysql.pl files??
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
Re: [Asterisk-Users] retrieve_?_from_mysql.pl files??
Are you manually updating the mySQL tables or do you have a web app. to do that? Robert Steve Creel wrote: 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 Excellent, Thanks for that.. I didn't know there was an include command.. Do you know if include is available in other .conf files eg extensions.conf?? 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
Re: [Asterisk-Users] retrieve_?_from_mysql.pl files??
It's documented somewhere for extensions.conf, and I was delighted to see that it is a function of the config parser, so yes - it's available in the other files. On Tue, 21 Oct 2003, WipeOut wrote: Steve Creel wrote: 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 Excellent, Thanks for that.. I didn't know there was an include command.. Do you know if include is available in other .conf files eg extensions.conf?? Later.. ___ 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
Re: [Asterisk-Users] retrieve_?_from_mysql.pl files??
rnc Info Lists wrote: Are you manually updating the mySQL tables or do you have a web app. to do that? Robert I am manually updating the DB as I have just started playing with the files today.. but using phpmyadmin its really easy to do.. Later.. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] retrieve_?_from_mysql.pl files??
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
Re: [Asterisk-Users] retrieve_?_from_mysql.pl files??
See: http://bugs.digium.com/bug_view_page.php?bug_id=343 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 [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