Hi, LUA script is written by us. Ya its being lauched from dialplan. The script establishes call to mobile and our deskphone. So far it dint update the DB, it just checks the DB and establishes call. Regards, Archana From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Eliot Gable Sent: 16 February 2013 16:57 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Multicast in freeswitch You still have not provided enough information. Is your LUA script stand-alone, or is it being launched from FreeSWITCH? How are you launching? Where are you launching it? Is it being launched from the dialplan or from an API call? Is the script just to update a field in the database or does it do more than that? On Sat, Feb 16, 2013 at 9:08 AM, Archana Venugopan <a.venugopan@mundio.com<mailto:a.venugopan@mundio.com>> wrote: Hi, I want to update my Database table, based on when the phone is ACTIVE and phone is HANGUP. I just want to get these 2 events ACTIVE and HANGUP in my lua script, so that I can put a if conditions to update my Database table. So need to know what exactly I should do to get these events in lua script. I tried this 'local Channel_State = params:getHeader("Channel-State")' but this does not give me these 2 events. Since I could not understand in detail from wiki I need suggestion on what can be done. Many thanks. Regards, Archana From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Eliot Gable Sent: 16 February 2013 13:59 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Multicast in freeswitch If you are using LUA, you probably want setHangupHook to do whatever you are doing. It kind of depends on what you are doing though. Perhaps you should provide more details about what you are trying to do and how you are trying to do it. On Sat, Feb 16, 2013 at 8:05 AM, Archana Venugopan <a.venugopan@mundio.com<mailto:a.venugopan@mundio.com>> wrote: Hi, Thanks. I read mod_event_socket wiki, it has some format like this sendmsg <uuid> call-command: hangup hangup-cause: <one of the causes listed below> Should I need to pass on in my script? And how am i to use that hangup message in lua script? Sorry I am not clear from wiki on these. Please help. Thanks Regards, Archana From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Eliot Gable Sent: 16 February 2013 06:11 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Multicast in freeswitch You can use mod_event_socket and watch for SWITCH_CHANNEL_STATE, SWITCH_CHANNEL_CALLSTATE, SWITCH_CHANNEL_CREATE, SWITCH_CHANNEL_ORIGINATE, SWITCH_CHANNEL_BRIDGE, and any other event of interest. Then you can track the state of each call for whatever purpose you might want to use that info for. On Feb 14, 2013 12:31 PM, "Archana Venugopan" <a.venugopan@mundio.com<mailto:a.venugopan@mundio.com>> wrote: Hi, I would like to get 'Orig-status' event in freeswitch so that I will know when the phone is being HANGED. But to get that event I read in wiki I need mod_event_multicast. http://wiki.freeswitch.org/wiki/Mod_event_multicast But I don't see in above wiki on how to compile and load mod_event_multicast. Can anyone please let me know how to compile and load multicast? Regards, Archana _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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<mailto: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<mailto: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 -- Eliot Gable "We do not inherit the Earth from our ancestors: we borrow it from our children." ~David Brower "I decided the words were too conservative for me. We're not borrowing from our children, we're stealing from them--and it's not even considered to be a crime." ~David Brower "Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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 -- Eliot Gable "We do not inherit the Earth from our ancestors: we borrow it from our children." ~David Brower "I decided the words were too conservative for me. We're not borrowing from our children, we're stealing from them--and it's not even considered to be a crime." ~David Brower "Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero