gotta start tone_detect right after originate and before bridge.


On Thu, Oct 16, 2008 at 7:53 AM, Gopal krishnan <saigop@gmail.com> wrote:
Hi,

  Thanks for the mail. I tried in this format to detect the busy signal but I cant.
I am using javascript file like,

session1 = new Session();
session1.originate(session1,"{ignore_early_media=true}sofia/internal/"+argv[0]+",30");
session1.execute("bridge", "sofia/default/"+argv[1]+"@172.20.176.254");
session1.execute("transfer", argv[1]);

function on_event(new_session, type, event_obj, user_data)
{
           if (type == "event")
           {
                   console_log("notice", "Event: " + event_obj.serialize() + "\n");
           }
}
session1.execute("tone_detect","busy 480,620 r");
session1.streamFile("/usr/local/freeswitch/sounds/music/8000/danza-espanola-op-37-h-142-xii-arabesca.wav", on_event);
//session1.execute("stop_tone_detect");

but i cant able to detect the tone.


--
Thank you  with regards,
Gopal,


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400