Ademco signaling with mod_spandsp
I've been tasked with securing a storage facility with an alarm system. Basically we'd use POTS or GSM on the site and a POTS line on the monitoring station. The alarm system is capable of using the ademco standard. I see there's some code in git in regards to the ademco standard. Is this usable inside Freeswitch? If so, how can I access it? I'd like to pay the wiki tax to doxument it if anyone can get me started. Thank you, Brian Foster Project Manager/Owner's Rep. Davri Investments, Inc. O: 317-787-2686 x2102 M: 317-600-9753 E: bdfoster@davri.com Indianapolis, Indiana Sent from a mobile device.
It is only present on the spandsp library, but no application or component in FreeSWITCH makes use of it. You'd require to write some C code to integrate it. *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> On Fri, Aug 16, 2013 at 12:52 PM, Brian Foster <bdfoster@davri.com> wrote:
I've been tasked with securing a storage facility with an alarm system. Basically we'd use POTS or GSM on the site and a POTS line on the monitoring station. The alarm system is capable of using the ademco standard. I see there's some code in git in regards to the ademco standard. Is this usable inside Freeswitch? If so, how can I access it? I'd like to pay the wiki tax to doxument it if anyone can get me started.
Thank you,
Brian Foster Project Manager/Owner's Rep. Davri Investments, Inc. O: 317-787-2686 x2102 M: 317-600-9753 E: bdfoster@davri.com Indianapolis, Indiana
Sent from a mobile device.
_________________________________________________________________________ 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
It's probably easier to write something in LUA to handle this. Seems pretty straightforward looking at the standard. Might be wrong though. Thank you, Brian Foster Project Manager/Owner's Rep. Davri Investments, Inc. O: 317-787-2686 x2102 M: 317-600-9753 E: bdfoster@davri.com Indianapolis, Indiana Sent from a mobile device. It is only present on the spandsp library, but no application or component in FreeSWITCH makes use of it. You'd require to write some C code to integrate it. *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> On Fri, Aug 16, 2013 at 12:52 PM, Brian Foster <bdfoster@davri.com> wrote:
I've been tasked with securing a storage facility with an alarm system. Basically we'd use POTS or GSM on the site and a POTS line on the monitoring station. The alarm system is capable of using the ademco standard. I see there's some code in git in regards to the ademco standard. Is this usable inside Freeswitch? If so, how can I access it? I'd like to pay the wiki tax to doxument it if anyone can get me started.
Thank you,
Brian Foster Project Manager/Owner's Rep. Davri Investments, Inc. O: 317-787-2686 x2102 M: 317-600-9753 E: bdfoster@davri.com Indianapolis, Indiana
Sent from a mobile device.
_________________________________________________________________________ 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
On Sun, Aug 18, 2013 at 8:18 PM, Brian Foster <bdfoster@davri.com> wrote:
It's probably easier to write something in LUA to handle this. Seems pretty straightforward looking at the standard. Might be wrong though.
Although not rocket-science, I believe you might be underestimating it a bit :-)
I have not looked at the standard and have no experience at all with the protocol, but the code is in spandsp for a reason, there are some per-sample digital audio calculations, tone/silence detection etc, with strict rules/timing that most likely you won't be able to do from LUA. See libs/spandsp/src/ademco_contactid.c comments I believe the right approach is to write a mod_ademco wrapper that exposes the functionality to the dialplan (either through dialplan applications or functions), then you can write LUA scripts :-) Moy *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
On 08/19/2013 11:54 AM, Moises Silva wrote:
On Sun, Aug 18, 2013 at 8:18 PM, Brian Foster <bdfoster@davri.com <mailto:bdfoster@davri.com>> wrote:
It's probably easier to write something in LUA to handle this. Seems pretty straightforward looking at the standard. Might be wrong though.
Although not rocket-science, I believe you might be underestimating it a bit :-)
I have not looked at the standard and have no experience at all with the protocol, but the code is in spandsp for a reason, there are some per-sample digital audio calculations, tone/silence detection etc, with strict rules/timing that most likely you won't be able to do from LUA.
See libs/spandsp/src/ademco_contactid.c comments
I believe the right approach is to write a mod_ademco wrapper that exposes the functionality to the dialplan (either through dialplan applications or functions), then you can write LUA scripts :-)
Moy Moises is right. You can get close to an Ademco receiver without special code, but you won't really meet the detailed timing of the spec without doing a proper job. You won't get anywhere trying to make a decent Ademco sender without specialised DSP code. spandsp implements both sides properly. Why not use it?
Steve
participants (3)
-
Brian Foster
-
Moises Silva
-
Steve Underwood