Alarm Receiver for FreeSWITCH?
Alarmreceiver is an Asterisk application for the security industry. From the description of the module, "This application emulates an SIA (Ademco) Contact ID alarm receiver. The Contact ID protocol is the most popular signalling protocol used between alarm panels and central stations." In a nutshell, an alarm panel calls an phone number connected to the switch. The switch answers and waits for a series of DTMF tones. The switch and panel communicate by exchanging tones. The panel closes the connection and the switch takes action. From what I've been able to understand, the switch records the event in a file. From my perusal of the FS documentation I believe this same functionality can be performed by a FS module but since I haven't actually written modules I'm obviously not aware of the limitations. So my question is, "is this something that can actually be done?" Thanks, Jim.
Hello Jim, No need for a module, this functionality can be achieved with a simple LUA ivr script. http://wiki.freeswitch.org/wiki/Lua Regards, Nazim On 11/06/2010 11:37 PM, Jim Lynch wrote:
Alarmreceiver is an Asterisk application for the security industry. From the description of the module, "This application emulates an SIA (Ademco) Contact ID alarm receiver. The Contact ID protocol is the most popular signalling protocol used between alarm panels and central stations."
In a nutshell, an alarm panel calls an phone number connected to the switch. The switch answers and waits for a series of DTMF tones. The switch and panel communicate by exchanging tones. The panel closes the connection and the switch takes action. From what I've been able to understand, the switch records the event in a file.
From my perusal of the FS documentation I believe this same functionality can be performed by a FS module but since I haven't actually written modules I'm obviously not aware of the limitations. So my question is, "is this something that can actually be done?"
Thanks, Jim.
_______________________________________________ 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
Nazim Aghabayov wrote:
Hello Jim,
No need for a module, this functionality can be achieved with a simple LUA ivr script. http://wiki.freeswitch.org/wiki/Lua
Regards, Nazim
Hi, Nazim, Thanks for the response. I was investigating LUA to see if it would have the necessary functionality and it does with one possible exception. I'll need to execute a program after the data is received and stored on disk or in a DB. I saw a reference to an "os.execute" function in the LUA programming manual (http://www.lua.org/pil/22.2.html). Is that function available from the version of LUA that exists in FS? I. e. is the LUA language fully supported in FS? Example: os.execute("mkdir " .. dirname) Thanks, Jim.
On 11/06/2010 03:50 PM, Nazim Aghabayov wrote:
Hello Jim,
No need for a module, this functionality can be achieved with a simple LUA ivr script. http://wiki.freeswitch.org/wiki/Lua
Regards, Nazim
On 11/06/2010 11:37 PM, Jim Lynch wrote:
Alarmreceiver is an Asterisk application for the security industry. From the description of the module, "This application emulates an SIA (Ademco) Contact ID alarm receiver. The Contact ID protocol is the most popular signalling protocol used between alarm panels and central stations."
In reading the SIA documentation for an Alarm Receiver application, the device sends (and expects) both DTMF and single frequency tones depending on the situation. I see that dialplans can include checking for single frequency tones, but I didn't see any reference to being able to decode these from LUA. Is that something that would be easy to implement? Where might I start looking to do so? Sending of tones could be accomplished via a .wav file so that part is covered.
Thanks, Jim.
Jim: The tone_detect app will let you set a callback action. So, you set it in your dialplan (or via Lua if you so desire) and then if it detects the tone it will execute the action specified. The action could be launching a script, executing another extension, or just setting a channel variable. You can do what you want with it from there. More info: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect As for generating tones, don't bother with wav files, just use TGML, the tone generation markup language: <!-- send a 2 second tone at 1004 Hz --> <action application="playback" data="tone_stream://%(2000,0,1004)"/> You can do all kinds of fancy stuff with TGML. See this for more information: http://wiki.freeswitch.org/wiki/TGML -MC On Tue, Nov 23, 2010 at 7:49 AM, Jim Lynch <jim@k4gvo.com> wrote:
On 11/06/2010 03:50 PM, Nazim Aghabayov wrote:
Hello Jim,
No need for a module, this functionality can be achieved with a simple LUA ivr script. http://wiki.freeswitch.org/wiki/Lua
Regards, Nazim
On 11/06/2010 11:37 PM, Jim Lynch wrote:
Alarmreceiver is an Asterisk application for the security industry. From the description of the module, "This application emulates an SIA (Ademco) Contact ID alarm receiver. The Contact ID protocol is the most popular signalling protocol used between alarm panels and central stations."
In reading the SIA documentation for an Alarm Receiver application, the device sends (and expects) both DTMF and single frequency tones depending on the situation. I see that dialplans can include checking for single frequency tones, but I didn't see any reference to being able to decode these from LUA. Is that something that would be easy to implement? Where might I start looking to do so? Sending of tones could be accomplished via a .wav file so that part is covered.
Thanks, Jim.
_______________________________________________ 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've done some work with alarm panels and VoIP over the years, generally it doesn't work 100% reliably (similar to FAXing over VoIP), plus there are some liability issues associated with it, but I'll leave that for the lawyers to sort out ;) ... Aside from sending the actual report, ContactID also requires an initial handshake to begin the report and a 1400Hz "kissoff" to end the report, which is the most important part. The alarm panel will continuously try to send the ContactID report if the kissoff isn't acknowledged by the central station. You need to be sure to the kissoff is acknowledged, otherwise the panel will be dialing all day long, unless it's setup with a limited set of retries before it gives up. Just my two cents. Cheers, Gabe On Tue, Nov 23, 2010 at 7:49 AM, Jim Lynch <jim@k4gvo.com> wrote:
On 11/06/2010 03:50 PM, Nazim Aghabayov wrote:
Hello Jim,
No need for a module, this functionality can be achieved with a simple LUA ivr script. http://wiki.freeswitch.org/wiki/Lua
Regards, Nazim
On 11/06/2010 11:37 PM, Jim Lynch wrote:
Alarmreceiver is an Asterisk application for the security industry. From the description of the module, "This application emulates an SIA (Ademco) Contact ID alarm receiver. The Contact ID protocol is the most popular signalling protocol used between alarm panels and central stations."
In reading the SIA documentation for an Alarm Receiver application, the device sends (and expects) both DTMF and single frequency tones depending on the situation. I see that dialplans can include checking for single frequency tones, but I didn't see any reference to being able to decode these from LUA. Is that something that would be easy to implement? Where might I start looking to do so? Sending of tones could be accomplished via a .wav file so that part is covered.
Thanks, Jim.
_______________________________________________ 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 (5)
-
Brian West
-
Gabriel Kuri
-
Jim Lynch
-
Michael Collins
-
Nazim Aghabayov