<div dir="ltr">gotta start tone_detect right after originate and before bridge.<br><br><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 7:53 AM, Gopal krishnan <span dir="ltr">&lt;<a href="mailto:saigop@gmail.com">saigop@gmail.com</a>&gt;</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;"><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 style="font-weight: bold;">session1 = new Session();</span></div>
<div><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 style="font-weight: bold;">session1.execute(&quot;bridge&quot;,&nbsp;&quot;sofia/default/&quot;+argv[1]+&quot;@<a href="http://172.20.176.254" target="_blank">172.20.176.254</a>&quot;);</span></div>

<div><span style="font-weight: bold;">session1.execute(&quot;transfer&quot;, argv[1]);<br></span></div><div><span style="font-weight: bold;"><br></span></div><div><span style="font-weight: bold;">function on_event(new_session, type, event_obj, user_data)</span></div>

<div><span style="font-weight: bold;">{</span></div><div><span style="font-weight: bold;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (type == &quot;event&quot;)</span></div><div><span style="font-weight: bold;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></div>
<div><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 style="font-weight: bold;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></div>

<div><span style="font-weight: bold;">}</span></div><div><span style="font-weight: bold;">session1.execute(&quot;tone_detect&quot;,&quot;busy 480,620 r&quot;);<br></span></div>
<div><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 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><div class="Ih2E3d"><br><div class="gmail_quote"><br></div>-- <br>Thank you &nbsp;with regards,<br>Gopal,<br><br>
</div></div></div>
<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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>