<html><body bgcolor="#FFFFFF"><div>You've got ignore_early_media set to true but busy signals might be sent during early media. Why are you ignoring early media?</div><div><br></div><div>Also, you might need to check your tone_detect syntax. You're set to detect 400Hz but you haven't told the system what to do if it does detect that tone. Please look at the wiki examples for tone_detect. You will see what kinds of things you can do with it, but usually you just set a channel variable. </div><div><br></div><div>-MC <br><br>Sent from my iPhone</div><div><br>On Dec 18, 2008, at 5:13 AM, Baskar <<a href="mailto:yudha2008@gmail.com">yudha2008@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><b style="color: rgb(204, 0, 0);">Hi,<br><br>I am using JavaScript file to detect busy tone <span class="nfakPe"></span>signals but I cant able to detect the busy tone signals<br></b> <br><b style="color: rgb(204, 0, 0);">My JavaScript</b><br>
<b style="color: rgb(51, 51, 255);"><br>session1 = new Session();<br>session1.originate(session1, "{ignore_early_media=true}sofia/default/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a>");<br>
session1.execute("tone_detect", "busy 400 r");<br>session1.execute("bridge", "sofia/default/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a>");<br>session1.execute("transfer", "39841799874");</b><br>
<br><br><b style="color: rgb(51, 51, 255);">I get output:</b><br><br><b><a href="mailto:freeswitch@localhost.localdomain">freeswitch@localhost.localdomain</a>> jsrun tone.js</b><br>API CALL [jsrun(tone.js)] output:<br>OK<br><br><a href="mailto:freeswitch@localhost.localdomain">freeswitch@localhost.localdomain</a>> 2008-12-18 18:42:30 [NOTICE] switch_channel.c:565 switch_channel_set_name() New Channel sofia/internal/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a> [0a9723ca-d170-4cee-a8bf-58a8ad018a44]<br>
2008-12-18 18:42:35 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media() Ring-Ready sofia/internal/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a>!<br>2008-12-18 18:42:35 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media() Pre-Answer sofia/internal/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a>!<br>
2008-12-18 18:42:39 [NOTICE] sofia.c:2963 sofia_handle_sip_i_state() Channel [sofia/internal/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a>] has been answered<br>2008-12-18 18:42:39 [NOTICE] mod_dptools.c:1217 tone_detect_session_function()<b> Enabling tone detection 'busy' '400'</b><br>
2008-12-18 18:42:39 [NOTICE] switch_channel.c:565 switch_channel_set_name() New Channel sofia/internal/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a> [5152416f-7e5c-4a60-9601-6a4af625d8aa]<br>2008-12-18 18:42:39 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media() Ring-Ready sofia/internal/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a>!<br>
2008-12-18 18:42:39 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media() Pre-Answer sofia/internal/<a href="mailto:39841799874@172.20.191.228"><a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a></a>!<br><b style="color: rgb(255, 0, 0);"><br>when i run my js call is connected and after the caller answer only enabling the tone detection.<br>
<br>I am not sure i am correct. correct me how to detect the busy signal. I have written a small JavaScript. Correct me where i am wrong (In the program or in the way it detect the call).<br><br>Thanks in advance.<br></b><br>
<b>-- <br>Warm Regards,<br>N.Baskar<br></b><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Freeswitch-users mailing list</span><br><span><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users"><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>