[Freeswitch-users] Help calling phrase macros from Lua

Ned Ludd edwardludd at gmail.com
Mon Nov 21 23:15:46 MSK 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161121/e68d60e6/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list