[Freeswitch-users] Run a LUA script when voicemail received

Steven Schoch schoch+freeswitch.org at xwin32.com
Wed Jun 1 04:10:04 MSD 2016


I may have just answered my own question again. I found a way, but please
let me know if you know of a cleaner way:

user = event:getHeader("VM-User")
domain = event:getHeader("VM-Domain")
api = freeswitch.API();
from = api:executeString("user_data " ..user .. "@" .. domain ..  " var
outbound_caller_id_number")
to = api:executeString("user_data " .. user .. "@" .. domain .. " param
vm-notify-sms")

This should get me what I need to send the text.

-- 
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160531/6962f90b/attachment.html 


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