<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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:<div class=""><br class=""></div><div class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_voicemail_ivr" class="">https://freeswitch.org/confluence/display/FREESWITCH/mod_voicemail_ivr</a></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 21, 2016, at 3:15 PM, Ned Ludd <<a href="mailto:edwardludd@gmail.com" class="">edwardludd@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">So I'm trying to develop a simple voicemail IVR.<br class=""><br class=""></div>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?<br class=""><br class=""></div>I know I can use this to get the count in JSON format:<br class=""><br class=""> count = api:executeString("vm_fsdb_msg_count default default " .. domain .. " " .. extension .. " inbox");<br class=""><br class=""></div>But how do I get a count that I can send to that phrase macro?<br class=""><br class=""></div>Confused. (And excuse my ignorance).<br class=""></div></div></blockquote></div><br class=""></div></body></html>