How to set voicemail default language (leaving message not listening to message)?
Hello, I'm trying to get the voice that talks on the voicemail before leaving a message (dial # or stop taking to end your message) to french language but cannot find out where to set this ! I havent been able to find any documentation about where to set application languages when called in a bridge loopback like in the following line : <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> I added the default language line to the extension that contains this line (default.xml : Local_Extension) but it does not affect the loopback. Full extension : <extension name="Local_Extension"> <condition field="destination_number" expression="^(10[01][0-9]|1100)$"> *<action application="set" data="default_language=fr"/>* <action application="export" data="dialed_extension=$1"/> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/> <action application="bind_meta_app" data="4 b s execute_extension::att_xfer XML features"/> <action application="set" data="ringback=${us-ring}"/> <action application="set" data="transfer_ringback=$${hold_music}"/> <action application="set" data="call_timeout=30"/> <!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --> <action application="set" data="hangup_after_bridge=true"/> <!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --> <action application="set" data="continue_on_fail=true"/> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/> <action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/> <action application="hash" data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/> <action application="hash" data="insert/${domain_name}-last_dial_ext/global/${uuid}"/> <!--<action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>--> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> <action application="answer"/> <action application="sleep" data="1000"/> <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> </condition> </extension> I have got my French language working when I call the 4000 extension : <extension name="vmain"> <condition field="destination_number" expression="^vmain$|^4000$|^\*98$"> *<action application="set" data="default_language=fr"/>* <action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="check default ${domain_name}"/> </condition> </extension> If I change the path of the audio files in conf/lang/en/en.xml everything works in French. However I want to have one extension with English language and another with French langauge so I need to be able to set the default language to fr when bridge/loopbacking to app=voicemail. It's the application="bridge" data="loopback/app= that baffles me ! I presume the loopback passes the call onto the voicemail application but I haven't found where to set the default language for this application when using a bridge and loopback ! Thanks in advance, Richard
participants (1)
-
Richard