<div dir="ltr">This is the correct way to get user data, why do you consider this unclean?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 8:10 PM, Steven Schoch <span dir="ltr"><<a href="mailto:schoch+freeswitch.org@xwin32.com" target="_blank">schoch+freeswitch.org@xwin32.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">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:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><span><div class="gmail_extra">user = event:getHeader("VM-User")</div></span><div class="gmail_extra">domain = event:getHeader("VM-Domain")</div></div><div class="gmail_extra"><div class="gmail_extra">api = freeswitch.API();</div><div class="gmail_extra">from = api:executeString("user_data " ..user .. "@" .. domain .. " var outbound_caller_id_number")</div><div class="gmail_extra">to = api:executeString("user_data " .. user .. "@" .. domain .. " param vm-notify-sms")</div><div class="gmail_extra"><br></div><div class="gmail_extra">This should get me what I need to send the text.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">-- </div><div class="gmail_extra">Steve</div><div><br></div></font></span></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank" rel="noreferrer">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br></blockquote></div><br></div>