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
That looks correct can you show me console output? /b On Mar 8, 2010, at 12:23 PM, Aloysius Lloyd wrote:
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
Much easier to see what's going on with logs. Post the snippet of a test call from your freeswitch logs in debug to http://pastebin.freeswitch.org/ and share the link. On Mar 8, 2010, at 12:23 PM, Aloysius Lloyd wrote:
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
Lloyd, you didn't define ${dialed_extension}, before you call the voicemail application in your dialplan: <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/> Please fix that. Chris On Mon, Mar 8, 2010 at 1:23 PM, Aloysius Lloyd <lloyd.aloysius@gmail.com>wrote:
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
Hello On Mon, Mar 08, Aloysius Lloyd wrote:
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])$">
Should be <condition field="destination_number" expression="^\*99(20[0-9])$">
<action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/>
and <action application="voicemail" data="default ${domain_name} $1"/>
</condition> </extension>
HTH --FC
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you for all the suggestions. David & Frank suggestion solve the problem. Here is the working dial plan <extension name="voicemail_transfer"> <condition field="destination_number" expression="^\*99(20[0-9])$"> <action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="default ${domain_name} $1"/> </condition> </extension> Thank you again. Regards. Lloyd On Mon, Mar 8, 2010 at 1:46 PM, David Knell <dave@3c.co.uk> wrote:
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 <lloyd.aloysius@gmail.com> *To:* freeswitch-users@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ 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
participants (6)
-
Aloysius Lloyd
-
Brian West
-
Chris Chen
-
David Knell
-
Frank Carmickle
-
Rob Forman