Thank you for all the suggestions.<div><br></div><div>David &amp; Frank suggestion solve the problem. Here is the working dial plan</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>  &lt;extension name=&quot;voicemail_transfer&quot;&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;condition field=&quot;destination_number&quot; expression=&quot;^\*99(20[0-9])$&quot;&gt;</div><div>          &lt;action application=&quot;answer&quot;/&gt;</div>
<div>          &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>  &lt;action application=&quot;voicemail&quot; data=&quot;default ${domain_name} $1&quot;/&gt;</div>
<div>         &lt;/condition&gt;</div><div>         &lt;/extension&gt;</div><div><br></div><div><br></div><div>Thank you again.</div><div><br></div><div>Regards.</div><div>Lloyd</div></div><div><br><br><div class="gmail_quote">
On Mon, Mar 8, 2010 at 1:46 PM, David Knell <span dir="ltr">&lt;<a href="mailto:dave@3c.co.uk">dave@3c.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div 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"><div class="im">&lt;action application=&quot;voicemail&quot; data=&quot;default 
${domain_name} ${dialed_extension}&quot;/&gt;
</div><div><span style="white-space:pre"></span>isn&#39;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>&lt;condition field=&quot;destination_number&quot; 
expression=&quot;^\*99(20[0-9])$&quot;&gt;</div>
<div>(the bit in ()s will end up in $1) and the line above to</div>
<div>&lt;action application=&quot;voicemail&quot; data=&quot;default ${domain_name} 
$1&quot;/&gt;</div>
<div> </div>
<div>Cheers --</div>
<div> </div>
<div>Dave</div></font></div></div>
<blockquote style="border-left:#000000 2px solid;padding-left:5px;padding-right:0px;margin-left:5px;margin-right:0px"><div><div></div><div class="h5">
  <div style="font:10pt arial">----- Original Message ----- </div>
  <div style="font:10pt arial;background:#e4e4e4"><b>From:</b> 
  <a title="lloyd.aloysius@gmail.com" href="mailto:lloyd.aloysius@gmail.com" target="_blank">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" target="_blank">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">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"> 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"><br></span></div>
  <div><span style="line-height:19px;font-family:sans-serif;font-size:13px">
  <div>    &lt;extension name=&quot;voicemail_transfer&quot;&gt;</div>
  <div>      &lt;condition field=&quot;destination_number&quot; 
  expression=&quot;^(\*9920[0-9])$&quot;&gt;</div>
  <div><span style="white-space:pre"></span> &lt;action application=&quot;answer&quot;/&gt;</div>
  <div><span style="white-space:pre"></span> &lt;action application=&quot;sleep&quot; 
  data=&quot;1000&quot;/&gt;</div>
  <div><span style="white-space:pre"></span> &lt;action application=&quot;voicemail&quot; 
  data=&quot;default ${domain_name} ${dialed_extension}&quot;/&gt;</div>
  <div><span style="white-space:pre"></span> &lt;/condition&gt;</div>
  <div>    &lt;/extension&gt;</div>
  <div><span style="white-space:pre"></span></div>
  <div><span style="white-space:pre"><span style="white-space:normal">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"><span style="white-space:normal"><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>
  </div></div><p>
  </p><hr><div class="im">

  <p></p>_______________________________________________<br>FreeSWITCH-users 
  mailing 
  list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div><p></p></blockquote>
<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>