<div dir="ltr">Hi,<div><br></div><div>&nbsp;&nbsp;Thanks for the mail. I tried in this format to detect the busy signal but I cant.</div><div>I am using javascript file like,</div><div><div><br></div><div><span class="Apple-style-span" style="font-weight: bold;">session1 = new Session();</span></div>
<div><span class="Apple-style-span" style="font-weight: bold;">session1.originate(session1,&quot;{ignore_early_media=true}sofia/internal/&quot;+argv[0]+&quot;,30&quot;);</span></div><div><span class="Apple-style-span" style="font-weight: bold;">session1.execute(&quot;bridge&quot;,&nbsp;&quot;sofia/default/&quot;+argv[1]+&quot;@<a href="http://172.20.176.254">172.20.176.254</a>&quot;);</span></div>
<div><span class="Apple-style-span" style="font-weight: bold;">session1.execute(&quot;transfer&quot;, argv[1]);<br></span></div><div><span class="Apple-style-span" style="font-weight: bold;"><br></span></div><div><span class="Apple-style-span" style="font-weight: bold;">function on_event(new_session, type, event_obj, user_data)</span></div>
<div><span class="Apple-style-span" style="font-weight: bold;">{</span></div><div><span class="Apple-style-span" style="font-weight: bold;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (type == &quot;event&quot;)</span></div><div><span class="Apple-style-span" style="font-weight: bold;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></div>
<div><span class="Apple-style-span" style="font-weight: bold;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; console_log(&quot;notice&quot;, &quot;Event: &quot; + event_obj.serialize() + &quot;\n&quot;);</span></div><div><span class="Apple-style-span" style="font-weight: bold;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></div>
<div><span class="Apple-style-span" style="font-weight: bold;">}</span></div><div><span class="Apple-style-span" style="font-weight: bold;">session1.execute(&quot;tone_detect&quot;,&quot;busy 480,620 r&quot;);<br></span></div>
<div><span class="Apple-style-span" style="font-weight: bold;">session1.streamFile(&quot;/usr/local/freeswitch/sounds/music/8000/danza-espanola-op-37-h-142-xii-arabesca.wav&quot;, on_event);</span></div><div><span class="Apple-style-span" style="font-weight: bold;">//session1.execute(&quot;stop_tone_detect&quot;);</span></div>
<div><br></div><div>but i cant able to detect the tone.</div><br><div class="gmail_quote"><br></div>-- <br>Thank you &nbsp;with regards,<br>Gopal,<br><br>
</div></div>