<p dir="ltr">Try &quot;internal&quot; instead of &quot;users&quot;?</p>
<div class="gmail_quote">On Jan 13, 2015 1:22 AM, &quot;chun&quot; &lt;<a href="mailto:chun@reachme.com">chun@reachme.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
We have a freeswitch installed behind opensip which handles registration.<br>
We&#39;d like to turn on and off MWI and cisco phones. When we use the following<br>
lua code, it will fail. We also tried using fs_path but it did not work. We<br>
appreciate any help.<br>
<br>
freeswitch.console_log(&quot;info&quot;, &quot;Lua in da house!!!\n&quot;);<br>
local event = freeswitch.Event(&quot;message_waiting&quot;);<br>
event:addHeader(&quot;MWI-Messages-Waiting&quot;, &quot;no&quot;);<br>
event:addHeader(&quot;MWI-Message-Account&quot;,<br>
&quot;sip:sofia/users/<a href="mailto:801.24118@10.0.151.110">801.24118@10.0.151.110</a>&quot;);<br>
event:fire();<br>
<br>
freeswitch@internal&gt; luarun /etc/freeswitch/scripts/lua/mwi_event.lua<br>
+OK<br>
2015-01-12 16:03:19.991140 [INFO] switch_cpp.cpp:1275 Lua in da house!!!<br>
2015-01-12 16:03:20.011145 [ERR] sofia_presence.c:542 Cannot find profile<br>
10.0.151.110<br>
<br>
Thank you,<br>
Chun-Ju<br>
<br>
<br>
<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">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div>