Thank you for your responses. Actually I was missing parenthesis () in regular expression, so the variable $1 was empty. <br><br>The correction was made here:<br><br><extension name="vmenu"><br>
<condition field="destination_number" expression="^vm-.*$"><br> <action application="voicemail" data="check default ${domain_name} $1"/><br> </condition><br>
</extension><br><br>To this:<br><br><extension name="vmenu"><br>
<condition field="destination_number" expression="^vm-(.*)$"><br> <action application="voicemail" data="check default ${domain_name} $1"/><br> </condition><br>
</extension><br><br>It works with mailbox param as well. Thank you very much!<br><br><br><br><div class="gmail_quote">2012/2/20 Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><user id="jano" number-alias="502"> <div><br></div><div>/b</div>
<div><div><br><div><div>On Feb 17, 2012, at 5:22 AM, Ján Hrnko wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><user id="jano" mailbox="502"><span> </span></span></blockquote>
</div><br></div><span><font color="#888888"><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">-- <br>
Brian West <br>FreeSWITCH Solutions, LLC<br>Phone: <a href="tel:%2B1%20%28918%29%20420-9266" value="+19184209266" target="_blank">+1 (918) 420-9266</a> <br>Fax: <a href="tel:%2B1%20%28918%29%20420-9267" value="+19184209267" target="_blank">+1 (918) 420-9267</a><br>
<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span>
</div>
<br></font></span></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<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>
<br></blockquote></div><br>