<!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.18876">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi Aloysius,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Best guess is that</FONT></DIV>
<DIV><FONT size=2 face=Arial><action application="voicemail" data="default
${domain_name} ${dialed_extension}"/>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN>isn't what you
meant - ${dialed_extension} will be 9920x, not 20x.</DIV>
<DIV> </DIV>
<DIV>You can fix this by changing the regex to</DIV>
<DIV><condition field="destination_number"
expression="^\*99(20[0-9])$"></DIV>
<DIV>(the bit in ()s will end up in $1) and the line above to</DIV>
<DIV><action application="voicemail" data="default ${domain_name}
$1"/></DIV>
<DIV> </DIV>
<DIV>Cheers --</DIV>
<DIV> </DIV>
<DIV>Dave</FONT></DIV></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@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 08, 2010 3:23
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Freeswitch-users] Send a call
directly to voicemail Transfer Help</DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT
size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><BR></DIV>Hi All,
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT
size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><BR></DIV>
<DIV>I would like to setup a dial plan, <SPAN
style="LINE-HEIGHT: 19px; FONT-FAMILY: sans-serif; FONT-SIZE: 13px"
class=Apple-style-span>Dial *99[extension number] send a call directly
to voicemail.</SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT
size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2
face=Arial></FONT><BR></DIV>
<DIV><SPAN style="LINE-HEIGHT: 19px; FONT-FAMILY: sans-serif; FONT-SIZE: 13px"
class=Apple-style-span> I setup the following Dial Plan . But when I
transfer the call *99[extension number] the call failed.</SPAN></DIV>
<DIV><SPAN style="LINE-HEIGHT: 19px; FONT-FAMILY: sans-serif; FONT-SIZE: 13px"
class=Apple-style-span><BR></SPAN></DIV>
<DIV><SPAN style="LINE-HEIGHT: 19px; FONT-FAMILY: sans-serif; FONT-SIZE: 13px"
class=Apple-style-span>
<DIV> <extension name="voicemail_transfer"></DIV>
<DIV> <condition field="destination_number"
expression="^(\*9920[0-9])$"></DIV>
<DIV><SPAN style="WHITE-SPACE: pre"
class=Apple-tab-span></SPAN> <action application="answer"/></DIV>
<DIV><SPAN style="WHITE-SPACE: pre"
class=Apple-tab-span></SPAN> <action application="sleep"
data="1000"/></DIV>
<DIV><SPAN style="WHITE-SPACE: pre"
class=Apple-tab-span></SPAN> <action application="voicemail"
data="default ${domain_name} ${dialed_extension}"/></DIV>
<DIV><SPAN style="WHITE-SPACE: pre"
class=Apple-tab-span></SPAN> </condition></DIV>
<DIV> </extension></DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span></SPAN></DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span><SPAN
style="WHITE-SPACE: normal" class=Apple-style-span>But when I transfer the
call *99[extension number] the call failed.My extensions range 201 -
209</SPAN></SPAN></DIV>
<DIV><SPAN style="WHITE-SPACE: pre" class=Apple-tab-span><SPAN
style="WHITE-SPACE: normal" class=Apple-style-span><FONT size=2></FONT><FONT
size=2></FONT><FONT size=2></FONT><FONT size=2></FONT><BR></SPAN></SPAN></DIV>
<DIV>Please let me know where the mistake is.</DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT><FONT size=2></FONT><BR></DIV>
<DIV>Thanks</DIV>
<DIV>Lloyd</DIV></SPAN></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>