<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>and if you set it inline="true" a domain_name var
?</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=lloyd.aloysius@gmail.com
href="mailto:lloyd.aloysius@gmail.com">Aloysius Lloyd</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 28, 2010 12:57
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] voicemail
operator-extension -Multi-tenantEnvironment</DIV>
<DIV><BR></DIV><FONT class=Apple-style-span
face="verdana, sans-serif">Michael,</FONT>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif"><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif">Thank you for the
suggestion but this is not working . I think because of the
the </FONT> <param name="callback-context"
value="default"/></DIV>
<DIV><BR></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif">But in the
voicemail.conf.xml there is one parameter like below. </FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif"><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span
face="verdana, sans-serif"> <B><param name="email-from" value="<A
href='mailto:${voicemail_account}@${voicemail_domain}"/'>${voicemail_account}@${voicemail_domain}"/</A>></B></FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif"><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif">The above working
with multiple domain without any issue. why the param
name="operator-extension" does not understand the variable ${domain_name} or
${voicemail_domain}</FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif"><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif">Any help is
appreciated.</FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif"><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span face="verdana, sans-serif">Thanks and
regards,</FONT></DIV>
<DIV><FONT class=Apple-style-span
face="verdana, sans-serif">Lloyd<BR></FONT><BR>
<DIV class=gmail_quote>On Tue, Dec 28, 2010 at 2:51 AM, Michael Collins <SPAN
dir=ltr><<A
href="mailto:msc@freeswitch.org">msc@freeswitch.org</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><BR><BR>
<DIV class=gmail_quote>
<DIV class=im>On Mon, Dec 27, 2010 at 8:08 PM, Aloysius Lloyd <SPAN
dir=ltr><<A href="mailto:lloyd.aloysius@sunteltech.ca"
target=_blank>lloyd.aloysius@sunteltech.ca</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><FONT face="verdana, sans-serif"><SPAN
style="BORDER-COLLAPSE: collapse; FONT-FAMILY: arial, sans-serif">$${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>
<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>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"><FONT
face="'courier new', monospace"> <SPAN><param
<SPAN>name</SPAN>=<SPAN>"operator-extension"</SPAN>
<SPAN>value</SPAN>=<SPAN>"operator XML
default"</SPAN>/></SPAN></FONT></SPAN></DIV>
<DIV>...and then create the "operator" extension which handles the
transfer:</DIV>
<DIV><FONT face="'courier new', monospace"><extension name="operator
transfer"></FONT></DIV>
<DIV><FONT face="'courier new', monospace"> <condition
field="destination_number" expression="^(operator)$"></FONT></DIV>
<DIV><FONT face="'courier new', monospace">
<!-- <SPAN
style="BORDER-COLLAPSE: collapse; FONT-SIZE: 13px">${domain_name} should be
available here --></SPAN></FONT></DIV>
<DIV><SPAN style="BORDER-COLLAPSE: collapse; FONT-SIZE: 13px"><FONT
face="'courier new', monospace"> <action
application="transfer" data="operator XML
${domain_name}"/></FONT></SPAN></DIV>
<DIV><FONT
face="'courier new', monospace"> </condition></FONT></DIV>
<DIV><FONT 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><BR>_______________________________________________<BR>FreeSWITCH-users
mailing list<BR><A
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR><A
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A
href="http://www.freeswitch.org"
target=_blank>http://www.freeswitch.org</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>