<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
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 !<br>
<br>
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 :<br>
<br>
<action application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}"/><br>
<br>
I added the default language line to the extension that contains
this line (default.xml : Local_Extension) but it does not affect the
loopback.<br>
<br>
Full extension :<br>
<br>
<extension name="Local_Extension"><br>
<condition field="destination_number"
expression="^(10[01][0-9]|1100)$"><br>
<b><action application="set"
data="default_language=fr"/></b><br>
<action application="export"
data="dialed_extension=$1"/><br>
<!-- bind_meta_app can have these args <key>
[a|b|ab] [a|b|o|s] <app> --><br>
<action application="bind_meta_app" data="1 b s
execute_extension::dx XML features"/><br>
<action application="bind_meta_app" data="2 b s
record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/><br>
<action application="bind_meta_app" data="3 b s
execute_extension::cf XML features"/><br>
<action application="bind_meta_app" data="4 b s
execute_extension::att_xfer XML features"/><br>
<action application="set" data="ringback=${us-ring}"/><br>
<action application="set"
data="transfer_ringback=$${hold_music}"/><br>
<action application="set" data="call_timeout=30"/><br>
<!-- <action application="set"
data="sip_exclude_contact=${network_addr}"/> --><br>
<action application="set"
data="hangup_after_bridge=true"/><br>
<!--<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
--><br>
<action application="set"
data="continue_on_fail=true"/><br>
<action application="hash"
data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/><br>
<action application="hash"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/><br>
<action application="set"
data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
var callgroup)}"/><br>
<action application="hash"
data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"/><br>
<action application="hash"
data="insert/${domain_name}-last_dial_ext/global/${uuid}"/><br>
<!--<action application="export"
data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name}
var sip_secure_media)}"/>--><br>
<action application="hash"
data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/><br>
<action application="bridge"
data="user/${dialed_extension}@${domain_name}"/><br>
<action application="answer"/><br>
<action application="sleep" data="1000"/><br>
<action application="bridge"
data="loopback/app=voicemail:default ${domain_name}
${dialed_extension}"/><br>
</condition><br>
</extension><br>
<br>
I have got my French language working when I call the 4000 extension
:<br>
<br>
<extension name="vmain"><br>
<condition field="destination_number"
expression="^vmain$|^4000$|^\*98$"><br>
<b><action application="set"
data="default_language=fr"/></b><br>
<action application="answer"/><br>
<action application="sleep" data="1000"/><br>
<action application="voicemail" data="check default
${domain_name}"/><br>
</condition><br>
</extension><br>
<br>
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.<br>
<br>
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 !<br>
<br>
Thanks in advance,<br>
<br>
Richard<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>