<br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 8:08 PM, Aloysius Lloyd <span dir="ltr">&lt;<a href="mailto:lloyd.aloysius@sunteltech.ca">lloyd.aloysius@sunteltech.ca</a>&gt;</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">&lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${dialed_extension}&quot;/&gt;</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&#39;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="&#39;courier new&#39;, monospace"> <span class="hl_starttag">&lt;param <span class="hl_attrib">name</span>=<span class="hl_string">&quot;operator-extension&quot;</span> <span class="hl_attrib">value</span>=<span class="hl_string">&quot;operator XML default&quot;</span>/&gt;</span></font></span></div>
<div>...and then create the &quot;operator&quot; extension which handles the transfer:</div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;extension name=&quot;operator transfer&quot;&gt;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(operator)$&quot;&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    &lt;!-- <span class="Apple-style-span" style="font-size: 13px; border-collapse: collapse; ">${domain_name} should be available here --&gt;</span></font></div>
<div><span class="Apple-style-span" style="font-size: 13px; border-collapse: collapse; "><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    &lt;action application=&quot;transfer&quot; data=&quot;operator XML ${domain_name}&quot;/&gt;</font></span></div>
<meta charset="utf-8"><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  &lt;/condition&gt;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;/extension&gt;</font></div>
<div><br></div><div>Just be sure that you don&#39;t have a domain name &quot;default&quot; or this will blow up. :) You could also put this &quot;utility&quot; operator extension in the &#39;features&#39; context and then as long as you didn&#39;t have a domain named &#39;features&#39; then you would be just fine.</div>
<div><br></div><div>-MC</div><div><br></div></div>