[Freeswitch-users] busy tone detection
Michael S Collins
msc at freeswitch.org
Thu Dec 18 06:43:06 PST 2008
You've got ignore_early_media set to true but busy signals might be
sent during early media. Why are you ignoring early media?
Also, you might need to check your tone_detect syntax. You're set to
detect 400Hz but you haven't told the system what to do if it does
detect that tone. Please look at the wiki examples for tone_detect.
You will see what kinds of things you can do with it, but usually you
just set a channel variable.
-MC
Sent from my iPhone
On Dec 18, 2008, at 5:13 AM, Baskar <yudha2008 at gmail.com> wrote:
> 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/39841799874 at 172.20.191.228
> ");
> session1.execute("tone_detect", "busy 400 r");
> session1.execute("bridge", "sofia/default/
> 39841799874 at 172.20.191.228");
> session1.execute("transfer", "39841799874");
>
>
> I get output:
>
> freeswitch at localhost.localdomain> jsrun tone.js
> API CALL [jsrun(tone.js)] output:
> OK
>
> freeswitch at localhost.localdomain> 2008-12-18 18:42:30 [NOTICE]
> switch_channel.c:565 switch_channel_set_name() New Channel sofia/
> internal/39841799874 at 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/39841799874 at 172.20.191.228
> !
> 2008-12-18 18:42:35 [NOTICE] sofia_glue.c:2097
> sofia_glue_tech_media() Pre-Answer sofia/internal/39841799874 at 172.20.191.228
> !
> 2008-12-18 18:42:39 [NOTICE] sofia.c:2963 sofia_handle_sip_i_state()
> Channel [sofia/internal/39841799874 at 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/39841799874 at 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/39841799874 at 172.20.191.228
> !
> 2008-12-18 18:42:39 [NOTICE] sofia_glue.c:2097
> sofia_glue_tech_media() Pre-Answer sofia/internal/39841799874 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081218/63db0115/attachment-0002.html
More information about the FreeSWITCH-users
mailing list