[Freeswitch-users] Run a LUA script when voicemail received
Abaci B
abaci64 at gmail.com
Wed Jun 1 05:46:47 MSD 2016
This is the correct way to get user data, why do you consider this unclean?
On Tue, May 31, 2016 at 8:10 PM, Steven Schoch <
schoch+freeswitch.org at xwin32.com> wrote:
> 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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160531/0bf6b2ea/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list