<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"><<a href="mailto:saigop@gmail.com">saigop@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;"><div dir="ltr">Hi,<div><br></div><div> 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,"{ignore_early_media=true}sofia/internal/"+argv[0]+",30");</span></div><div><span style="font-weight: bold;">session1.execute("bridge", "sofia/default/"+argv[1]+"@<a href="http://172.20.176.254" target="_blank">172.20.176.254</a>");</span></div>
<div><span style="font-weight: bold;">session1.execute("transfer", 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;"> if (type == "event")</span></div><div><span style="font-weight: bold;"> {</span></div>
<div><span style="font-weight: bold;"> console_log("notice", "Event: " + event_obj.serialize() + "\n");</span></div><div><span style="font-weight: bold;"> }</span></div>
<div><span style="font-weight: bold;">}</span></div><div><span style="font-weight: bold;">session1.execute("tone_detect","busy 480,620 r");<br></span></div>
<div><span style="font-weight: bold;">session1.streamFile("/usr/local/freeswitch/sounds/music/8000/danza-espanola-op-37-h-142-xii-arabesca.wav", on_event);</span></div><div><span style="font-weight: bold;">//session1.execute("stop_tone_detect");</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 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>