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.
lgaetz
(Lorne Gaetz)
January 23, 2018, 1:04pm
2
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
dicko
(dicko)
January 23, 2018, 1:55pm
3
You can similarly extract the email from /etc/asterisk/voicemail.conf
1 Like
Thanks.
I need get Email Address from Dictation Services, but this doesn’t work:
Set(email=${DB(AMPUSER/${CDR(dst)}/dictate/email)}
I don’t get it. Whats wrong?
My fault. I found mistake.
Thanks again!
1 Like
PitzKey
(Itzik)
January 23, 2018, 9:44pm
6
Post what your mistake was, so it will help other users…
system
(system)
Closed
January 30, 2018, 9:45pm
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.