Need help getting extension's parameters from database

Hello, everyone.
How can I get some extension’s parameters from database and use it in dialplan?
I need CID Num Alias, SIP Alias, Email Address for Dictation Services.

It is like ${DB(AMPUSER/${AMPUSER}/cidname)} for the extension’s Display name.

Thanks in advance.

Most of the settings you can see for yourself by running:

database show AMPUSER xxxx
database show DEVICE xxxx

Where xxxx is the local extension number. You won’t find the SIP alias in the astdb, you will have to get that from the MySQL table, asterisk.users.

1 Like

You can similarly extract the email from /etc/asterisk/voicemail.conf

1 Like

I need get Email Address from Dictation Services, but this doesn’t work:


I don’t get it. Whats wrong?

My fault. I found mistake.
Thanks again!

1 Like

Post what your mistake was, so it will help other users…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.