[Freeswitch-users] Send a call directly to voicemail Transfer Help

David Knell dave at 3c.co.uk
Mon Mar 8 10:46:22 PST 2010


Hi Aloysius,

Best guess is that
<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 ----- 
  From: Aloysius Lloyd 
  To: freeswitch-users at lists.freeswitch.org 
  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 at lists.freeswitch.org
  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
  http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100308/41d01974/attachment-0002.html 


More information about the FreeSWITCH-users mailing list