Error: cannot find profile
Hello, We have a freeswitch installed behind opensip which handles registration. We'd like to turn on and off MWI and cisco phones. When we use the following lua code, it will fail. We also tried using fs_path but it did not work. We appreciate any help. freeswitch.console_log("info", "Lua in da house!!!\n"); local event = freeswitch.Event("message_waiting"); event:addHeader("MWI-Messages-Waiting", "no"); event:addHeader("MWI-Message-Account", "sip:sofia/users/801.24118@10.0.151.110"); event:fire(); freeswitch@internal> luarun /etc/freeswitch/scripts/lua/mwi_event.lua +OK 2015-01-12 16:03:19.991140 [INFO] switch_cpp.cpp:1275 Lua in da house!!! 2015-01-12 16:03:20.011145 [ERR] sofia_presence.c:542 Cannot find profile 10.0.151.110 Thank you, Chun-Ju
Try "internal" instead of "users"? On Jan 13, 2015 1:22 AM, "chun" <chun@reachme.com> wrote:
Hello,
We have a freeswitch installed behind opensip which handles registration. We'd like to turn on and off MWI and cisco phones. When we use the following lua code, it will fail. We also tried using fs_path but it did not work. We appreciate any help.
freeswitch.console_log("info", "Lua in da house!!!\n"); local event = freeswitch.Event("message_waiting"); event:addHeader("MWI-Messages-Waiting", "no"); event:addHeader("MWI-Message-Account", "sip:sofia/users/801.24118@10.0.151.110"); event:fire();
freeswitch@internal> luarun /etc/freeswitch/scripts/lua/mwi_event.lua +OK 2015-01-12 16:03:19.991140 [INFO] switch_cpp.cpp:1275 Lua in da house!!! 2015-01-12 16:03:20.011145 [ERR] sofia_presence.c:542 Cannot find profile 10.0.151.110
Thank you, Chun-Ju
_________________________________________________________________________ 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
participants (2)
-
chun
-
David Villasmil Govea