The idea....<br><br><br>based on app_mwanalyze and app_alarmreceiver, we could do something like this:<br><br> exten =&gt; 8000,1,AlarmTransmitter(ZAP/<div>00102312314,101);<br><br><br>then app_AlarmTransmitter.c<br>
<br>function detect_tones(frequency, duration)<br>
<br>function detect_ack()<br>{<br>        while (!detect_tones(1400,50)){<br>
             &lt;count time, for timeout-&gt; in case of timeout -&gt; break , hangup, try again, count tries&gt;<br>
             if detect -&lt; t1=true, break;<br>
        }<br>
      sleep 50 ms<br>
     while (!detect_tones(2300,50)){<br>

             &lt;count time, for timeout-&gt; in case of timeout -&gt; break , hangup, try again, count tries&gt;<br>

             if detect -&lt; t2=true, break;<br>

        }<br>       if (t1 and t2) return true else false;<br>}<br><br>static int alarmtransmitter_exe(struct ast_channel *chan, void *data)<br>{<br>      if (detect_ack())<br>      {<br>            transmit message, thru dtmf<br>


      }<br>     if (detect_kissoff())<br>     {<br>         set variable to true<br>     }<br>    else<br>    {<br>         set variable to false<br>     }<br>  }</div><br><br><div class="gmail_quote">2010/1/27 Kaloyan Kovachev <span dir="ltr">&lt;<a href="mailto:kkovachev@varna.net">kkovachev@varna.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
On Wed, 27 Jan 2010 01:17:34 +0000, Francisco Fernandes wrote<br>
<div><div></div><div class="h5">&gt; Hi,<br>
&gt; Has anyone tried to do the reverse? meaning, send an ademco contact_id from<br>
asterisk to an ademco central (receiver) ? how could one do this? does one<br>
have to compile a new module or would it be possible to do it, using agi, or<br>
something...?<br>
&gt;<br>
&gt; Thanks<br>
<br>
</div></div> I have not tried, but it should be possible. The simpliest way is to just<br>
send the DTMFs of the message few seconds after answer and to hope it is<br>
corectly received.<br>
<br>
 In order to be sure it is correctly received you will need to make<br>
application which will detect the ACK and kissoff signals (no DSP routines in<br>
asterisk for this) returning a variable, which one have been received. Then in<br>
the dialplan wait for ACK tone (1400Hz 100ms folowed by 2300Hz 100ms) before<br>
you start sending DTMF, then wait for kissoff (1400Hz 900ms) to confirm<br>
correctness or another ACK to repeat it.<br>
<font color="#888888"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></blockquote></div><br>