<br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 8:08 PM, Aloysius Lloyd <span dir="ltr"><<a href="mailto:lloyd.aloysius@sunteltech.ca">lloyd.aloysius@sunteltech.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font face="verdana, sans-serif"><span style="font-family:arial, sans-serif;border-collapse:collapse">$${domain} - incorrect</span></font><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br>
</span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">It is already set when the Chanel is created. here is the dialplan when I reach to voicemail box already belong to a domain.</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/></span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">when is press 9 - I am already in the domain extension </span><span style="border-collapse:collapse">voice mail</span><span style="border-collapse:collapse"> box so there is ${domain_name} </span><span style="border-collapse:collapse">variable</span><span style="border-collapse:collapse"> have the value.</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse:collapse">looks to me voicemail application does not understand the ${domain_name}</span></font></div>
</blockquote><div><br></div><div>This is almost a true statement. In actuality, you don't put chan vars in params like this and have them interpolated with each call. Interpolation of channel variables like this is best done in the dialplan. The easiest way for you to do this would be to set the value back to the default of:</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="'courier new', monospace"> <span class="hl_starttag"><param <span class="hl_attrib">name</span>=<span class="hl_string">"operator-extension"</span> <span class="hl_attrib">value</span>=<span class="hl_string">"operator XML default"</span>/></span></font></span></div>
<div>...and then create the "operator" extension which handles the transfer:</div><div><font class="Apple-style-span" face="'courier new', monospace"><extension name="operator transfer"></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> <condition field="destination_number" expression="^(operator)$"></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> <!-- <span class="Apple-style-span" style="font-size: 13px; border-collapse: collapse; ">${domain_name} should be available here --></span></font></div>
<div><span class="Apple-style-span" style="font-size: 13px; border-collapse: collapse; "><font class="Apple-style-span" face="'courier new', monospace"> <action application="transfer" data="operator XML ${domain_name}"/></font></span></div>
<meta charset="utf-8"><div><font class="Apple-style-span" face="'courier new', monospace"> </condition></font></div><div><font class="Apple-style-span" face="'courier new', monospace"></extension></font></div>
<div><br></div><div>Just be sure that you don't have a domain name "default" or this will blow up. :) You could also put this "utility" operator extension in the 'features' context and then as long as you didn't have a domain named 'features' then you would be just fine.</div>
<div><br></div><div>-MC</div><div><br></div></div>