<action application="voicemail" data="default
${domain_name} ${dialed_extension}"/>
isn't what you
meant - ${dialed_extension} will be 9920x, not 20x.
You can fix this by changing the regex to
<condition field="destination_number"
expression="^\*99(20[0-9])$">
(the bit in ()s will end up in $1) and the line above to
<action application="voicemail" data="default ${domain_name}
$1"/>
Cheers --
Dave
----- Original Message -----
Sent: Monday, March 08, 2010 3:23
PM
Subject: [Freeswitch-users] Send a call
directly to voicemail Transfer Help
Hi All,
I would like to setup a dial plan, Dial *99[extension number] send a call directly
to voicemail.
I setup the following Dial Plan . But when I
transfer the call *99[extension number] the call failed.
<extension name="voicemail_transfer">
<condition field="destination_number"
expression="^(\*9920[0-9])$">
<action application="answer"/>
<action application="sleep"
data="1000"/>
<action application="voicemail"
data="default ${domain_name} ${dialed_extension}"/>
</condition>
</extension>
But when I transfer the
call *99[extension number] the call failed.My extensions range 201 -
209
Please let me know where the mistake is.
Thanks
Lloyd
_______________________________________________
FreeSWITCH-users
mailing
list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org