*Hi,

I am using JavaScript file to detect busy tone signals but I cant able to
detect the busy tone signals
*
*My JavaScript*
*
session1 = new Session();
session1.originate(session1, "{ignore_early_media=true}sofia/default/
39841799...@172.20.191.228");
session1.execute("tone_detect", "busy 400 r");
session1.execute("bridge", "sofia/default/39841799...@172.20.191.228");
session1.execute("transfer", "39841799874");*


*I get output:*

*freeswi...@localhost.localdomain> jsrun tone.js*
API CALL [jsrun(tone.js)] output:
OK

freeswi...@localhost.localdomain> 2008-12-18 18:42:30 [NOTICE]
switch_channel.c:565 switch_channel_set_name() New Channel sofia/internal/
39841799...@172.20.191.228 [0a9723ca-d170-4cee-a8bf-58a8ad018a44]
2008-12-18 18:42:35 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media()
Ring-Ready sofia/internal/39841799...@172.20.191.228!
2008-12-18 18:42:35 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media()
Pre-Answer sofia/internal/39841799...@172.20.191.228!
2008-12-18 18:42:39 [NOTICE] sofia.c:2963 sofia_handle_sip_i_state() Channel
[sofia/internal/39841799...@172.20.191.228] has been answered
2008-12-18 18:42:39 [NOTICE] mod_dptools.c:1217
tone_detect_session_function()* Enabling tone detection 'busy' '400'*
2008-12-18 18:42:39 [NOTICE] switch_channel.c:565 switch_channel_set_name()
New Channel 
sofia/internal/39841799...@172.20.191.228[5152416f-7e5c-4a60-9601-6a4af625d8aa]
2008-12-18 18:42:39 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media()
Ring-Ready sofia/internal/39841799...@172.20.191.228!
2008-12-18 18:42:39 [NOTICE] sofia_glue.c:2097 sofia_glue_tech_media()
Pre-Answer sofia/internal/39841799...@172.20.191.228!
*
when i run my js call is connected and after the caller answer only enabling
the tone detection.

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).

Thanks in advance.
*
*--
Warm Regards,
N.Baskar
*
_______________________________________________
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

Reply via email to