Hello, I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua? Thanks
You can get it from the add-member event. There will be a Member-ID header. On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Hello, I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference? session:execute("conference",3001) userId = session:getVariable("conference_member_id") freeswitch.consoleLog("INFO", userId.. "\n"); On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com>wrote:
You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
How would you use this member ID if the script isn't executing? On Fri, Jan 24, 2014 at 10:35 AM, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference?
session:execute("conference",3001)
userId = session:getVariable("conference_member_id")
freeswitch.consoleLog("INFO", userId.. "\n");
On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com>wrote:
You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
I need to update the memberid into a database. My script works but I get the data after the user hangs up. I need to get the memberId right after I transfer the user to the conf. Sent from my iPhone
On Jan 24, 2014, at 11:11 AM, Christopher Rienzo <cmrienzo@gmail.com> wrote:
How would you use this member ID if the script isn't executing?
On Fri, Jan 24, 2014 at 10:35 AM, Joli Martinez <mrjoli021@gmail.com> wrote: Hello,
I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference?
session:execute("conference",3001)
userId = session:getVariable("conference_member_id")
freeswitch.consoleLog("INFO", userId.. "\n");
On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com> wrote: You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com> wrote: Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
The problem is when you execute the conference, it will stay inside that application until the user exits the conference. It sounds like you maybe should have another approach for this, ESL might be a good option for you. 2014/1/24 Joli Martinez <mrjoli021@gmail.com>
I need to update the memberid into a database. My script works but I get the data after the user hangs up. I need to get the memberId right after I transfer the user to the conf.
Sent from my iPhone
On Jan 24, 2014, at 11:11 AM, Christopher Rienzo <cmrienzo@gmail.com> wrote:
How would you use this member ID if the script isn't executing?
On Fri, Jan 24, 2014 at 10:35 AM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference?
session:execute("conference",3001)
userId = session:getVariable("conference_member_id")
freeswitch.consoleLog("INFO", userId.. "\n");
On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com
wrote:
You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Use the add-member event as Duvid recommended. If using lua, you can define an event hook - see the mod_lua wiki for details. On Fri, Jan 24, 2014 at 11:16 AM, Joli Martinez <mrjoli021@gmail.com> wrote:
I need to update the memberid into a database. My script works but I get the data after the user hangs up. I need to get the memberId right after I transfer the user to the conf.
Sent from my iPhone
On Jan 24, 2014, at 11:11 AM, Christopher Rienzo <cmrienzo@gmail.com> wrote:
How would you use this member ID if the script isn't executing?
On Fri, Jan 24, 2014 at 10:35 AM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference?
session:execute("conference",3001)
userId = session:getVariable("conference_member_id")
freeswitch.consoleLog("INFO", userId.. "\n");
On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com
wrote:
You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
I haven't used LUA but from what I can see, session::execute is a blocking method and there is no non-blocking version. You would probably have to setup a separate event-hook script to capture the conference::maintenance event. https://wiki.freeswitch.org/wiki/Mod_lua#Event_Hooks On Fri, Jan 24, 2014 at 10:35 AM, Joli Martinez <mrjoli021@gmail.com> wrote:
Hello,
I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference?
session:execute("conference",3001)
userId = session:getVariable("conference_member_id")
freeswitch.consoleLog("INFO", userId.. "\n");
On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com>wrote:
You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
OK I can setup a separate event hook for that, but the problem I am having is that how can I trigger it at the same time I transfer the call. This will be a busy box, so I can I make sure I get the right memberID and not a new memberID or the previous memberID? Thanks, On Jan 24, 2014, at 11:32 AM, Duvid Rottenberg <adrottenberg@gmail.com> wrote:
I haven't used LUA but from what I can see, session::execute is a blocking method and there is no non-blocking version. You would probably have to setup a separate event-hook script to capture the conference::maintenance event. https://wiki.freeswitch.org/wiki/Mod_lua#Event_Hooks
On Fri, Jan 24, 2014 at 10:35 AM, Joli Martinez <mrjoli021@gmail.com> wrote: Hello,
I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference?
session:execute("conference",3001)
userId = session:getVariable("conference_member_id")
freeswitch.consoleLog("INFO", userId.. "\n");
On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com> wrote: You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com> wrote: Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Hello Joli, you can define an "startup-script" in autoload_configs/lua.conf.xml that loops forever and consums the conference Events. Here an example that listen to an "CUSTOM" Event to "kill" loop.lua scripts on fs_cli -x "luarun loop.lua stop". In the "--your magic code here loop" you can add your stuff. -- logging LOGLEVEL = "info" -- progname PROGNAME = "loop.lua" -- functions function logger(message) freeswitch.consoleLog(LOGLEVEL,"["..PROGNAME.."] "..message.."\n") end -- main loop logger("Starting script and loop forever") con = freeswitch.EventConsumer("CUSTOM"); run = true while run do for e in (function() return con:pop(1,1000) end) do -- logger("event\n" .. e:serialize("xml")) element = e:getHeader("Event-Subclass") or "" if (element == "lua::stop_event") then action = e:getHeader("Action") or "" if (action == "stop") then logger("Got stop message, exiting") run = false break end end -- your magic code here in loop end end 2014/1/24 Joli Martinez <mrjoli021@gmail.com>
OK I can setup a separate event hook for that, but the problem I am having is that how can I trigger it at the same time I transfer the call. This will be a busy box, so I can I make sure I get the right memberID and not a new memberID or the previous memberID?
Thanks,
On Jan 24, 2014, at 11:32 AM, Duvid Rottenberg <adrottenberg@gmail.com> wrote:
I haven't used LUA but from what I can see, session::execute is a blocking method and there is no non-blocking version. You would probably have to setup a separate event-hook script to capture the conference::maintenance event. https://wiki.freeswitch.org/wiki/Mod_lua#Event_Hooks
On Fri, Jan 24, 2014 at 10:35 AM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I was able to figure that out last night. The problem I am having now is that I cant get the memberId until I transfer call to conference. Once I transfer call to conference, my script stops execution until user hangs up. How can I get the memberId right after I transfer to conference?
session:execute("conference",3001)
userId = session:getVariable("conference_member_id")
freeswitch.consoleLog("INFO", userId.. "\n");
On Fri, Jan 24, 2014 at 9:33 AM, Duvid Rottenberg <adrottenberg@gmail.com
wrote:
You can get it from the add-member event. There will be a Member-ID header.
On Thu, Jan 23, 2014 at 9:15 PM, Joli Martinez <mrjoli021@gmail.com>wrote:
Hello,
I need to know the userid number of a person joining a conference. Is there a way to get that userid number when a person joins the conference and save it as a variable in Lua?
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Mit freundlichen Grüßen *Karsten Horsmann*
participants (5)
-
Christopher Rienzo
-
Duvid Rottenberg
-
Joli Martinez
-
Karsten Horsmann
-
Peter Olsson