Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] asterisk's internal database


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dreamer.binary at gmai...
Guest





PostPosted: Thu Apr 24, 2014 6:35 am    Post subject: [asterisk-users] asterisk's internal database Reply with quote

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.
 
Back to top
rnewton at digium.com
Guest





PostPosted: Mon Apr 28, 2014 1:30 pm    Post subject: [asterisk-users] asterisk's internal database Reply with quote

On Thu, Apr 24, 2014 at 6:34 AM, binary dreamer
<dreamer.binary@gmail.com> wrote:
Quote:
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
Back to top
dreamer.binary at gmai...
Guest





PostPosted: Tue Apr 29, 2014 1:32 am    Post subject: [asterisk-users] asterisk's internal database Reply with quote

i would like to read information from a file (txt)


On Mon, Apr 28, 2014 at 9:29 PM, Rusty Newton <rnewton@digium.com (rnewton@digium.com)> wrote:
Quote:
On Thu, Apr 24, 2014 at 6:34 AM, binary dreamer
<dreamer.binary@gmail.com (dreamer.binary@gmail.com)> wrote:
Quote:
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: [url=tel:%2B1%20256%20428%206200]+1 256 428 6200[/url]

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
Back to top
rnewton at digium.com
Guest





PostPosted: Wed Apr 30, 2014 2:49 pm    Post subject: [asterisk-users] asterisk's internal database Reply with quote

On Tue, Apr 29, 2014 at 1:31 AM, binary dreamer
<dreamer.binary@gmail.com> wrote:
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services