Help calling phrase macros from Lua
So I'm trying to develop a simple voicemail IVR. In "sounds.xml" there's a nice macro for "voicemail_message_count", but I can't seem to figure out how to get the count to feed it. Can you help? I know I can use this to get the count in JSON format: count = api:executeString("vm_fsdb_msg_count default default " .. domain .. " " .. extension .. " inbox"); But how do I get a count that I can send to that phrase macro? Confused. (And excuse my ignorance). ----- Ned Ludd
I don’t know a ton about this one as it was contributed but this was designed to let you do what you are looking to do: https://freeswitch.org/confluence/display/FREESWITCH/mod_voicemail_ivr <https://freeswitch.org/confluence/display/FREESWITCH/mod_voicemail_ivr>
On Nov 21, 2016, at 3:15 PM, Ned Ludd <edwardludd@gmail.com> wrote:
So I'm trying to develop a simple voicemail IVR.
In "sounds.xml" there's a nice macro for "voicemail_message_count", but I can't seem to figure out how to get the count to feed it. Can you help?
I know I can use this to get the count in JSON format:
count = api:executeString("vm_fsdb_msg_count default default " .. domain .. " " .. extension .. " inbox");
But how do I get a count that I can send to that phrase macro?
Confused. (And excuse my ignorance).
https://freeswitch.org/confluence/display/FREESWITCH/mod_voicemail#mod_voice... On Mon, Nov 21, 2016 at 3:15 PM, Ned Ludd <edwardludd@gmail.com> wrote:
So I'm trying to develop a simple voicemail IVR.
In "sounds.xml" there's a nice macro for "voicemail_message_count", but I can't seem to figure out how to get the count to feed it. Can you help?
I know I can use this to get the count in JSON format:
count = api:executeString("vm_fsdb_msg_count default default " .. domain .. " " .. extension .. " inbox");
But how do I get a count that I can send to that phrase macro?
Confused. (And excuse my ignorance).
----- Ned Ludd
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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 (3)
-
Abaci B
-
Michael Jerris
-
Ned Ludd