# Using Asterisk database

**URL:** <https://community.asterisk.org/t/using-asterisk-database/33537>\
**Category:** Asterisk General\
**Created:** [December 10, 2010, 9:26pm UTC](https://community.asterisk.org/t/using-asterisk-database/33537 "2010-12-10T21:26:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allthe](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@Allthe](https://community.asterisk.org/u/Allthe)\
**Post date:** [December 10, 2010, 9:26pm UTC](https://community.asterisk.org/t/using-asterisk-database/33537/1 "2010-12-10T21:26:31Z")

</div>

Hello everyone,

I changed my code like this:

exten =\> xxxx, 1, Answer;  
exten =\> xxxx, n, Set (DB (test / count) = 1234)  
exten =\> xxxx, n, Set (COUNT = $ {DB (test / count)})  
exten =\> xxxx, n, Authenticate ($ {COUNT});

The question is how loaded the variable “test / count = 1234”. How can I now find it in MySQL in order to change it in MySQL?

Can anyone give a help?

---

<div class="post-metadata">

**Author:** ![mudslide567](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mudslide567](https://community.asterisk.org/u/mudslide567)\
**Post date:** [December 11, 2010, 1:20pm UTC](https://community.asterisk.org/t/using-asterisk-database/33537/2 "2010-12-11T13:20:33Z")

</div>

its not stored in mysql database

---

<div class="post-metadata">

**Author:** ![Allthe](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@Allthe](https://community.asterisk.org/u/Allthe)\
**Post date:** [December 14, 2010, 9:57pm UTC](https://community.asterisk.org/t/using-asterisk-database/33537/3 "2010-12-14T21:57:22Z")

</div>

Hello mudslide567,

yes, are stored in database asterisk AstDb.

I need my Asterisk to communicate with a web service, in other words, Asterisk asks a question to the Web Service and Web Service returns the answer.

Is it possible?

Thanks.

---

<div class="post-metadata">

**Author:** ![zaib\_kiani](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/zaib_kiani/32/9558_2.png) [@zaib\_kiani](https://community.asterisk.org/u/zaib_kiani)\
**Post date:** [January 4, 2011, 5:56am UTC](https://community.asterisk.org/t/using-asterisk-database/33537/4 "2011-01-04T05:56:57Z")

</div>

Hi,  
if you want to use Mysql db in asterisk dialplan, please visit the link [itdiscussiongroup.com/?p=35](http://itdiscussiongroup.com/?p=35)
