Re: [asterisk-users] asterisk's internal database
On Tue, Apr 29, 2014 at 1:31 AM, binary dreamer dreamer.bin...@gmail.com wrote: i would like to read information from a file (txt) There are a few applications and functions that may help you out. In Asterisk 10 or before try the ReadFile application. Otherwise in 11 or beyond I believe you want the FILE function. https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_ReadFile https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_FILE You could also use the SHELL function to execute a command on the system and capture output https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_SHELL Then you might also look into Asterisk Gateway Interface for more complex tasks and control. https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_AGI http://asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/AGI.html If you are learning Asterisk; the book I linked above contains some great information on AGI and is written by some of our notable community members. The latest edition is available here: http://shop.oreilly.com/product/0636920025894.do -- Rusty Newton Digium, Inc. | Community Support Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - US direct: +1 256 428 6200 Check us out at: http://digium.com http://asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk's internal database
i would like to read information from a file (txt) On Mon, Apr 28, 2014 at 9:29 PM, Rusty Newton rnew...@digium.com wrote: On Thu, Apr 24, 2014 at 6:34 AM, binary dreamer dreamer.bin...@gmail.com wrote: hello everyone. I am running plain asterisk and I am using asterisk's internal database for: -phonebook -blacklist numbers instead of having to update the database of new entry or delete an entry, is it possible to have it in an external file such as txt? so every new entry/deletion will take place there. Are you wanting to swap out Asterisk's internal database with a different data storage interface? If so, that isn't possible as far as I know. If you are wanting to just read information from a file into Asterisk variables.. there may be other ways to do what you want. -- Rusty Newton Digium, Inc. | Community Support Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - US direct: +1 256 428 6200 Check us out at: http://digium.com http://asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] asterisk's internal database
On Thu, Apr 24, 2014 at 6:34 AM, binary dreamer dreamer.bin...@gmail.com wrote: hello everyone. I am running plain asterisk and I am using asterisk's internal database for: -phonebook -blacklist numbers instead of having to update the database of new entry or delete an entry, is it possible to have it in an external file such as txt? so every new entry/deletion will take place there. Are you wanting to swap out Asterisk's internal database with a different data storage interface? If so, that isn't possible as far as I know. If you are wanting to just read information from a file into Asterisk variables.. there may be other ways to do what you want. -- Rusty Newton Digium, Inc. | Community Support Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - US direct: +1 256 428 6200 Check us out at: http://digium.com http://asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users