<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, &quot;{ignore_early_media=true}sofia/default/<a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a>&quot;);<br>
session1.execute(&quot;tone_detect&quot;, &quot;busy 400 r&quot;);<br>session1.execute(&quot;bridge&quot;, &quot;sofia/default/<a href="mailto:39841799874@172.20.191.228">39841799874@172.20.191.228</a>&quot;);<br>session1.execute(&quot;transfer&quot;, &quot;39841799874&quot;);</b><br>
<br><br><b style="color: rgb(51, 51, 255);">I get output:</b><br><br><b>freeswitch@localhost.localdomain&gt; jsrun tone.js</b><br>API CALL [jsrun(tone.js)] output:<br>OK<br><br>freeswitch@localhost.localdomain&gt; 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">39841799874@172.20.191.228</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">39841799874@172.20.191.228</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">39841799874@172.20.191.228</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">39841799874@172.20.191.228</a>] has been answered<br>2008-12-18 18:42:39 [NOTICE] mod_dptools.c:1217 tone_detect_session_function()<b> Enabling tone detection &#39;busy&#39; &#39;400&#39;</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">39841799874@172.20.191.228</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">39841799874@172.20.191.228</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">39841799874@172.20.191.228</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>