How to get user language variable from user setting

Status
Not open for further replies.
Aug 10, 2017
37
0
6
56
Hi, I would like to get the user language variable set in the user account, so when I dail *97 the system will get the user language and set it up.
I have a bilingual PBX and some user prefer to have in English and some in French.
I have tried by setting manually the value and it work, it would be great if it it would get it automatically.

Dialplan

vmain_user


condition destination_number ^\*97$ 0 5 true
action answer 0 10 true
action sleep 1000 0 15 true
action set record_append=false 0 20 true
action set voicemail_action=check 0 25 true
action set voicemail_id=${user_name} 0 30 true
action set voicemail_profile=default 0 35 true
action set default_language=${missing the value HERE}
action lua app.lua voicemail 0 40 true
 

ricktendo

Member
Jun 12, 2021
40
5
8
You will find default_language setting in advanced -> variables... I do not know if there is a way you can set/copy this variable for an individual domain, I think this is global so you will have to manually define it with (ar de en es fr he it nl pt ro ru sv tr uk)
 
Status
Not open for further replies.