Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] busy tone detection


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
saigop at gmail.com
Guest





PostPosted: Mon Oct 13, 2008 8:02 am    Post subject: [Freeswitch-users] busy tone detection Reply with quote

Hi,

Is it possible to have busy tone detection thru console dialing?
--
Thank you with regards,
Gopal,
Back to top
saigop at gmail.com
Guest





PostPosted: Thu Oct 16, 2008 3:39 am    Post subject: [Freeswitch-users] busy tone detection Reply with quote

Hi,

I am using event socket to originate calls. I need to originate the calls thru console and need to detect the tone. In Asterisk we used to detect thru BackgroundDetect and VMDetect. In freeswitch I found that the tones.conf which will detect the tones that we are dialing. I am not sure how to integrate with the event socket to detect the tone with console dialing.


Any help will be appreciated.


My tones.conf
[in]
generate-dial => v=-7;%(1000,0,375,425)
detect-dial => 375,425
generate-ring => v=-7;%(2000,4000,440,480)
detect-ring => 440,480
generate-busy => v=-7;%(500,500,480,620)
detect-busy => 480,620
generate-attn => v=0;%(100,100,1400,2060,2450,2600)
detect-attn => 1400,2060,2450,2600
generate-callwaiting-sas => v=0;%(300,0,440)
detect-callwaiting-sas => 440
generate-callwaiting-cas => v=0;%(80,0,2750,2130)
detect-callwaiting-cas => 2750,2130
detect-fail1 => 913.8
detect-fail2 => 1370.6
detect-fail3 => 776.7


thanks
--
Thank you with regards,
Gopal,
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Oct 16, 2008 7:43 am    Post subject: [Freeswitch-users] busy tone detection Reply with quote

a) That tones.conf file is for openzap analog stuff.
b) Look on the wiki etc for the tone_detect app.


On Thu, Oct 16, 2008 at 3:31 AM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
Hi,

I am using event socket to originate calls. I need to originate the calls thru console and need to detect the tone. In Asterisk we used to detect thru BackgroundDetect and VMDetect. In freeswitch I found that the tones.conf which will detect the tones that we are dialing. I am not sure how to integrate with the event socket to detect the tone with console dialing.


Any help will be appreciated.


My tones.conf
[in]
generate-dial => v=-7;%(1000,0,375,425)
detect-dial => 375,425
generate-ring => v=-7;%(2000,4000,440,480)
detect-ring => 440,480
generate-busy => v=-7;%(500,500,480,620)
detect-busy => 480,620
generate-attn => v=0;%(100,100,1400,2060,2450,2600)
detect-attn => 1400,2060,2450,2600
generate-callwaiting-sas => v=0;%(300,0,440)
detect-callwaiting-sas => 440
generate-callwaiting-cas => v=0;%(80,0,2750,2130)
detect-callwaiting-cas => 2750,2130
detect-fail1 => 913.8
detect-fail2 => 1370.6
detect-fail3 => 776.7


thanks
--
Thank you with regards,
Gopal,




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
saigop at gmail.com
Guest





PostPosted: Thu Oct 16, 2008 8:00 am    Post subject: [Freeswitch-users] busy tone detection Reply with quote

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,
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Oct 16, 2008 8:25 am    Post subject: [Freeswitch-users] busy tone detection Reply with quote

gotta start tone_detect right after originate and before bridge.


On Thu, Oct 16, 2008 at 7:53 AM, Gopal krishnan <saigop@gmail.com (saigop@gmail.com)> wrote:
Quote:
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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services