Multicast in freeswitch
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
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> 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 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
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] 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
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>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] *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> 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 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
-- 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
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] 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
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>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] *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> 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] *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> 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 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****
****
** **
-- 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 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
-- 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
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
On Mon, Feb 18, 2013 at 4:17 AM, Archana Venugopan <a.venugopan@mundio.com>wrote:
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. ****
This is probably what you want: http://wiki.freeswitch.org/wiki/Mod_lua#session:setHangupHook As for updating the database, if you have a PostgreSQL database, you can enable the core pgsql support and use native pgsql calls from lua to access the database. Also, keep in mind that FS keeps a channels table in the database and if you just want to read the state of sessions up in FS, if you use core ODBC or core PGSQL support, you can just read the channels table for the current call state information.
Hi, We use MSSQL and in our channels table currently its not update channe-state status. Though in my logs I could see the below messages 2013-02-18 17:04:02.767161 [DEBUG] sofia.c:6282 Channel sofia/internal/100@fsfailover.uk01.com entering state [terminated][487] 2013-02-18 17:04:02.767161 [DEBUG] switch_channel.c:2950 (sofia/internal/100@fsfailover.uk01.com) Callstate Change EARLY -> HANGUP Not sure where these states are being saved. I need to invoke my lua script during HANGUP case currently lua script works till call gets established, after that I don't see its hitting any lua scripts written by us. Please suggest what can we do now? Many thanks. Regards, Archana From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Eliot Gable Sent: 18 February 2013 14:37 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Multicast in freeswitch On Mon, Feb 18, 2013 at 4:17 AM, Archana Venugopan <a.venugopan@mundio.com<mailto:a.venugopan@mundio.com>> wrote: 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. This is probably what you want: http://wiki.freeswitch.org/wiki/Mod_lua#session:setHangupHook As for updating the database, if you have a PostgreSQL database, you can enable the core pgsql support and use native pgsql calls from lua to access the database. Also, keep in mind that FS keeps a channels table in the database and if you just want to read the state of sessions up in FS, if you use core ODBC or core PGSQL support, you can just read the channels table for the current call state information.
participants (2)
-
Archana Venugopan
-
Eliot Gable