<br><br><div class="gmail_quote">On Wed, Dec 24, 2008 at 3:23 AM, Baskar <span dir="ltr"><<a href="mailto:yudha2008@gmail.com">yudha2008@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<b><span style="color: rgb(102, 51, 255);">Hi,</span><br style="color: rgb(102, 51, 255);"><br style="color: rgb(102, 51, 255);"><span style="color: rgb(102, 51, 255);"> This is my JavaScript for tone detect </span><br>
<br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">session1 = new Session();</span><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">session1.originate(session1, "{ignore_early_media=false}sofia/default/<a href="mailto:39841799874@172.20.191.228" target="_blank">39841799874@172.20.191.228</a>");</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">session1.execute("tone_detect", "test 400,25 r +1 hangup 'normal_clearing' 1");</span></b></blockquote><div><br>Is the combination of 400Hz and 25Hz the correct busy tone for your country?<br>
Also, the +1 means "check for tone for +1 second into the future"<br>Most likely you want something like +30 so that the tone detect will be active long enough to hear something! <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<b><span style="color: rgb(204, 0, 0);"></span><div class="Ih2E3d"><br style="color: rgb(204, 0, 0);"><span style="color: rgb(204, 0, 0);">session1.execute("bridge", "sofia/default/<a href="mailto:39841799874@172.20.191.228" target="_blank">39841799874@172.20.191.228</a>");</span><br style="color: rgb(204, 0, 0);">
<span style="color: rgb(204, 0, 0);">session1.execute("transfer", "39841799874");</span><br style="color: rgb(204, 0, 0);"><br></div><span style="color: rgb(102, 51, 255);">But Tone Detect does not work at all Did i work wrongly, correct me where i am wrong</span><br style="color: rgb(102, 51, 255);">
<br style="color: rgb(102, 51, 255);"><span style="color: rgb(102, 51, 255);">Another question :</span><br style="color: rgb(102, 51, 255);"><br style="color: rgb(102, 51, 255);"><span style="color: rgb(102, 51, 255);">In api tone detect command i got api parameters like this</span><br>
<br>api tone_detect,Start Tone Detection on a channel,<uuid> <key> <tone_spec> [<flags> <timeout> <app> <args> <hits>]<br><br>In that I want to know what is <span style="color: rgb(204, 0, 0);"><tone_spec> ....</span></b></blockquote>
<div><br><tone_spec> is talking about the combination of frequencies to listen for. In your example, the tone spec is "400,25"<br> <br><br>Hope that information helped!<br>-MC (mercutioviz)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<b><br>
I did not see any details in wiki.freeswitch site can any what should be passed in tone_spec</b>.<br><font color="#888888"><br><b>-- <br>Warm Regards,<br>N.Baskar</b><br><br>
</font><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>
<br></blockquote></div><br>