Jim:<div><br></div><div>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:</div>
<div><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect</a></div><div><br></div><div>As for generating tones, don't bother with wav files, just use TGML, the tone generation markup language:</div>
<div><br></div><div><!-- send a 2 second tone at 1004 Hz --></div><div><action application="playback" data="tone_stream://%(2000,0,1004)"/></div><div><br></div><div>You can do all kinds of fancy stuff with TGML. See this for more information:</div>
<div><a href="http://wiki.freeswitch.org/wiki/TGML">http://wiki.freeswitch.org/wiki/TGML</a></div><div><br></div><div>-MC<br><br><div class="gmail_quote">On Tue, Nov 23, 2010 at 7:49 AM, Jim Lynch <span dir="ltr"><<a href="mailto:jim@k4gvo.com">jim@k4gvo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 11/06/2010 03:50 PM, Nazim Aghabayov wrote:<br>
> Hello Jim,<br>
><br>
> No need for a module, this functionality can be achieved with a simple<br>
> LUA ivr script.<br>
> <a href="http://wiki.freeswitch.org/wiki/Lua" target="_blank">http://wiki.freeswitch.org/wiki/Lua</a><br>
><br>
> Regards,<br>
> Nazim<br>
><br>
> On 11/06/2010 11:37 PM, Jim Lynch wrote:<br>
><br>
>> Alarmreceiver is an Asterisk application for the security industry. From<br>
>> the description of the module, "This application emulates an SIA<br>
>> (Ademco) Contact ID alarm receiver. The Contact ID protocol is the most<br>
>> popular signalling protocol used between alarm panels and central stations."<br>
>><br>
</div>In reading the SIA documentation for an Alarm Receiver application, the<br>
device sends (and expects) both DTMF and single frequency tones<br>
depending on the situation. I see that dialplans can include checking<br>
for single frequency tones, but I didn't see any reference to being able<br>
to decode these from LUA. Is that something that would be easy to<br>
implement? Where might I start looking to do so? Sending of tones<br>
could be accomplished via a .wav file so that part is covered.<br>
<div><div></div><div class="h5"><br>
Thanks,<br>
Jim.<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>