Did you look in api_hangup_hook.  You can call lua script with.
Example
set api_hangup_hook=lua sendmsg.lua



Jai Rangi
Cebod Technologies LLC dba DIDforSale/Cebod Telecom






On Fri, May 20, 2016 at 5:59 PM, Steven Schoch <schoch+freeswitch.org@xwin32.com> wrote:
This sounds like a FAQ, but my searches found nothing.
I'd like to run a LUA script when a message is left on voicemail.

My alternative is to write my own mailer-app script that would scan the message to see if it's from mod_voicemail, do what I want to do, or call exim otherwise, but this seems like something that could be done from the dialplan.

Is there a way in the dialplan to run an action with parameters from the voicemail message left?

The reason I'm asking this is that I want to use the new Flowroute SMS API to send a text message when a voicemail is received, with the caller-ID info from the message.

-- 
Steve

_________________________________________________________________________
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