Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] DTMF Reading and Playing


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
klaus.teller at gmx.net
Guest





PostPosted: Wed Sep 10, 2008 2:51 pm    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Folks,

I got two questions:

1) How do i configure Freeswitch to detect inband DTMF?
2) How do i play DTMF to the remote caller?

Appreciate your answers.

Klaus.
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx

_______________________________________________
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
Back to top
mcollins at fcnetwork.com
Guest





PostPosted: Wed Sep 10, 2008 3:38 pm    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Quote:
Folks,

I got two questions:

1) How do i configure Freeswitch to detect inband DTMF?

Start here:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf

Quote:
2) How do i play DTMF to the remote caller?

Check this out:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_send_dtmf

Quote:

Appreciate your answers.

Play with those and if you have more questions email us back or hop on
IRC...

-MC

Quote:

Klaus.
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein:
http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx

_______________________________________________
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
Quote:
http://www.freeswitch.org

_______________________________________________
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
Back to top
klaus.teller at gmx.net
Guest





PostPosted: Thu Sep 11, 2008 10:52 am    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

I tried the following but for unknown reason, the caller is not getting anything:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is simply being ignored. I used wireshrack to check if maybe the outbound DTMF was sent and not played by my softphone. But this is not the case.

Any idea?

Thanks,
Klaus.


-------- Original-Nachricht --------
Quote:
Datum: Wed, 10 Sep 2008 21:44:29 +0200
Von: "Klaus Teller" <klaus.teller@gmx.net>
An: freeswitch-users@lists.freeswitch.org
Betreff: [Freeswitch-users] DTMF Reading and Playing

Quote:
Folks,

I got two questions:

1) How do i configure Freeswitch to detect inband DTMF?
2) How do i play DTMF to the remote caller?

Appreciate your answers.

Klaus.
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein:
http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx

_______________________________________________
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

--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

_______________________________________________
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
Back to top
james.green at stealth...
Guest





PostPosted: Thu Sep 11, 2008 11:06 am    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Klaus Teller wrote:
Quote:
I tried the following but for unknown reason, the caller is not getting anything:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is simply being ignored. I used wireshrack to check if maybe the outbound DTMF was sent and not played by my softphone. But this is not the case.

streamFile() blocks until sound file ends or a DTMF tone is received, as
detailed on the wiki:

http://wiki.freeswitch.org/wiki/Session_streamFile

I suspect you want some background music? I'm still trying to get my
head around which programming features to use in which circumstances,
something I've not found any clear high level guide on yet.

_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Sep 11, 2008 11:13 am    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Might want to try queue_dtmf

/b

On Sep 11, 2008, at 11:03 AM, James Green wrote:

Quote:
Klaus Teller wrote:
Quote:
I tried the following but for unknown reason, the caller is not
getting anything:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is
simply being ignored. I used wireshrack to check if maybe the
outbound DTMF was sent and not played by my softphone. But this is
not the case.

streamFile() blocks until sound file ends or a DTMF tone is
received, as
detailed on the wiki:

http://wiki.freeswitch.org/wiki/Session_streamFile

I suspect you want some background music? I'm still trying to get my
head around which programming features to use in which circumstances,
something I've not found any clear high level guide on yet.
<james_green.vcf>_______________________________________________
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

Brian West
sip:brian@freeswitch.org







_______________________________________________
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
Back to top
klaus.teller at gmx.net
Guest





PostPosted: Thu Sep 11, 2008 11:18 am    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Yes, i understand that streamFile blocks. And i indeed want to play the DTMF after the file is streamed. But playing the DTMF doesn't work. I have also tried removing streamFile without better result. Is there maybe a specific mod that is should install to have send_dtmf work?

I also tried the following with javascript, but without sucess:

session.answer();
session.execute("send_dtmf","0123456789ABCD*#@2000");
session.hangup();

Thanks,
Klaus.



-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 17:03:43 +0100
Von: James Green <james.green@stealthnet.net>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
Klaus Teller wrote:
Quote:
I tried the following but for unknown reason, the caller is not getting
anything:
Quote:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is simply
being ignored. I used wireshrack to check if maybe the outbound DTMF was
sent and not played by my softphone. But this is not the case.

streamFile() blocks until sound file ends or a DTMF tone is received, as
detailed on the wiki:

http://wiki.freeswitch.org/wiki/Session_streamFile

I suspect you want some background music? I'm still trying to get my
head around which programming features to use in which circumstances,
something I've not found any clear high level guide on yet.

--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

_______________________________________________
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
Back to top
klaus.teller at gmx.net
Guest





PostPosted: Thu Sep 11, 2008 11:45 am    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

HI Brian,

Thanks for your suggestion. I just don't see how this would help me. I understand queue_dtmf is to be used before bridging. But i'm not bridging calls. I'm just originating calls and interacting with the remote device. What i really want is the inverse of getDigits() that you can call anytime in the call to send DTMFs. The Asterisk equivalent to what i need would be SendDTMF.

Any further idea?

Klaus.



-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 11:11:17 -0500
Von: Brian West <brian@freeswitch.org>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
Might want to try queue_dtmf

/b

On Sep 11, 2008, at 11:03 AM, James Green wrote:

Quote:
Klaus Teller wrote:
Quote:
I tried the following but for unknown reason, the caller is not
getting anything:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is
simply being ignored. I used wireshrack to check if maybe the
outbound DTMF was sent and not played by my softphone. But this is
not the case.

streamFile() blocks until sound file ends or a DTMF tone is
received, as
detailed on the wiki:

http://wiki.freeswitch.org/wiki/Session_streamFile

I suspect you want some background music? I'm still trying to get my
head around which programming features to use in which circumstances,
something I've not found any clear high level guide on yet.
<james_green.vcf>_______________________________________________
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

Brian West
sip:brian@freeswitch.org







_______________________________________________
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

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Sep 11, 2008 12:00 pm    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Can you make sure you're on the latest code? And try again?

/b

On Sep 11, 2008, at 11:43 AM, Klaus Teller wrote:

Quote:
HI Brian,

Thanks for your suggestion. I just don't see how this would help me.
I understand queue_dtmf is to be used before bridging. But i'm not
bridging calls. I'm just originating calls and interacting with the
remote device. What i really want is the inverse of getDigits() that
you can call anytime in the call to send DTMFs. The Asterisk
equivalent to what i need would be SendDTMF.

Any further idea?

Klaus.



Brian West
sip:brian@freeswitch.org







_______________________________________________
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
Back to top
klaus.teller at gmx.net
Guest





PostPosted: Thu Sep 11, 2008 12:03 pm    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Thanks. Will let you know in half an hour to one hour.

Klaus.
-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 11:52:16 -0500
Von: Brian West <brian@freeswitch.org>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
Can you make sure you're on the latest code? And try again?

/b

On Sep 11, 2008, at 11:43 AM, Klaus Teller wrote:

Quote:
HI Brian,

Thanks for your suggestion. I just don't see how this would help me.
I understand queue_dtmf is to be used before bridging. But i'm not
bridging calls. I'm just originating calls and interacting with the
remote device. What i really want is the inverse of getDigits() that
you can call anytime in the call to send DTMFs. The Asterisk
equivalent to what i need would be SendDTMF.

Any further idea?

Klaus.



Brian West
sip:brian@freeswitch.org







_______________________________________________
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

--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

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





PostPosted: Thu Sep 11, 2008 12:35 pm    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

problem is if this is over sip, the dtmf is queued into the rtp stack and sent in real time as the call progresses.
Since you are hanging up right away, it never gets a chance to send it.
you must sleep long enough for the entire tone to be sent.

I added a convicence variable set once you call send_dtmf that will tell you how long to sleep
until all of the digits should be sent.

update to latest trunk and try this:

JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.execute("sleep", s.getVariable("last_dtmf_duration"));
s.hangup();




On Thu, Sep 11, 2008 at 11:43 AM, Klaus Teller <klaus.teller@gmx.net (klaus.teller@gmx.net)> wrote:
Quote:
HI Brian,

Thanks for your suggestion. I just don't see how this would help me. I understand queue_dtmf is to be used before bridging. But i'm not bridging calls. I'm just originating calls and interacting with the remote device. What i really want is the inverse of getDigits() that you can call anytime in the call to send DTMFs. The Asterisk equivalent to what i need would be SendDTMF.

Any further idea?

Klaus.



-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 11:11:17 -0500
Von: Brian West <brian@freeswitch.org (brian@freeswitch.org)>
An: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Quote:
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing


Quote:
Might want to try queue_dtmf

/b

On Sep 11, 2008, at 11:03 AM, James Green wrote:

Quote:
Klaus Teller wrote:
Quote:
I tried the following but for unknown reason, the caller is not
getting anything:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is
simply being ignored. I used wireshrack to check if maybe the
outbound DTMF was sent and not played by my softphone. But this is
not the case.

streamFile() blocks until sound file ends or a DTMF tone is
received, as
detailed on the wiki:

http://wiki.freeswitch.org/wiki/Session_streamFile

I suspect you want some background music? I'm still trying to get my
head around which programming features to use in which circumstances,
something I've not found any clear high level guide on yet.
<james_green.vcf>_______________________________________________
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

Brian West
sip:brian@freeswitch.org ([email]sip%3Abrian@freeswitch.org[/email])







_______________________________________________
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



--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


_______________________________________________
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
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400
Back to top
klaus.teller at gmx.net
Guest





PostPosted: Thu Sep 11, 2008 2:01 pm    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Thanks Anthony. I was wondering if it would make sense to make this blocking in the same way other methods are (e.g. streamFile). By that i mean that the execute method would actually return not after a computed amount of time but effectively when the last DTMF is sent.

Klaus.

-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 12:32:31 -0500
Von: "Anthony Minessale" <anthony.minessale@gmail.com>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
problem is if this is over sip, the dtmf is queued into the rtp stack and
sent in real time as the call progresses.
Since you are hanging up right away, it never gets a chance to send it.
you must sleep long enough for the entire tone to be sent.

I added a convicence variable set once you call send_dtmf that will tell
you
how long to sleep
until all of the digits should be sent.

update to latest trunk and try this:

JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.execute("sleep", s.getVariable("last_dtmf_duration"));
s.hangup();



On Thu, Sep 11, 2008 at 11:43 AM, Klaus Teller <klaus.teller@gmx.net>
wrote:

Quote:
HI Brian,

Thanks for your suggestion. I just don't see how this would help me. I
understand queue_dtmf is to be used before bridging. But i'm not
bridging
Quote:
calls. I'm just originating calls and interacting with the remote
device.
Quote:
What i really want is the inverse of getDigits() that you can call
anytime
Quote:
in the call to send DTMFs. The Asterisk equivalent to what i need would
be
Quote:
SendDTMF.

Any further idea?

Klaus.



-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 11:11:17 -0500
Von: Brian West <brian@freeswitch.org>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
Might want to try queue_dtmf

/b

On Sep 11, 2008, at 11:03 AM, James Green wrote:

Quote:
Klaus Teller wrote:
Quote:
I tried the following but for unknown reason, the caller is not
getting anything:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is
simply being ignored. I used wireshrack to check if maybe the
outbound DTMF was sent and not played by my softphone. But this is
not the case.

streamFile() blocks until sound file ends or a DTMF tone is
received, as
detailed on the wiki:

http://wiki.freeswitch.org/wiki/Session_streamFile

I suspect you want some background music? I'm still trying to get my
head around which programming features to use in which
circumstances,
Quote:
Quote:
Quote:
something I've not found any clear high level guide on yet.
<james_green.vcf>_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/frees
witch-users
Quote:
Quote:
http://www.freeswitch.org

Brian West
sip:brian@freeswitch.org <sip%3Abrian@freeswitch.org>







_______________________________________________
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
Quote:
Quote:
http://www.freeswitch.org

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
allen:
Quote:
http://www.gmx.net/de/go/multimessenger

_______________________________________________
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 <MSN%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.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

--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx

_______________________________________________
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
Back to top
klaus.teller at gmx.net
Guest





PostPosted: Thu Sep 11, 2008 3:21 pm    Post subject: [Freeswitch-users] DTMF Reading and Playing Reply with quote

Hi,
I meant to confirm that the fix rocks. I can now send DTMF with the following:

session.answer();
session.execute("send_dtmf","0123456789ABCD*#@200");
session.execute("sleep", session.getVariable("last_dtmf_duration"));
session.hangup();


Thanks to all,

Klaus.

-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 20:58:17 +0200
Von: "Klaus Teller" <klaus.teller@gmx.net>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
Thanks Anthony. I was wondering if it would make sense to make this
blocking in the same way other methods are (e.g. streamFile). By that i mean
that the execute method would actually return not after a computed amount of
time but effectively when the last DTMF is sent.

Klaus.

-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 12:32:31 -0500
Von: "Anthony Minessale" <anthony.minessale@gmail.com>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
problem is if this is over sip, the dtmf is queued into the rtp stack
and
Quote:
sent in real time as the call progresses.
Since you are hanging up right away, it never gets a chance to send it.
you must sleep long enough for the entire tone to be sent.

I added a convicence variable set once you call send_dtmf that will tell
you
how long to sleep
until all of the digits should be sent.

update to latest trunk and try this:

JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.execute("sleep", s.getVariable("last_dtmf_duration"));
s.hangup();



On Thu, Sep 11, 2008 at 11:43 AM, Klaus Teller <klaus.teller@gmx.net>
wrote:

Quote:
HI Brian,

Thanks for your suggestion. I just don't see how this would help me. I
understand queue_dtmf is to be used before bridging. But i'm not
bridging
Quote:
calls. I'm just originating calls and interacting with the remote
device.
Quote:
What i really want is the inverse of getDigits() that you can call
anytime
Quote:
in the call to send DTMFs. The Asterisk equivalent to what i need
would
Quote:
be
Quote:
SendDTMF.

Any further idea?

Klaus.



-------- Original-Nachricht --------
Quote:
Datum: Thu, 11 Sep 2008 11:11:17 -0500
Von: Brian West <brian@freeswitch.org>
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] DTMF Reading and Playing

Quote:
Might want to try queue_dtmf

/b

On Sep 11, 2008, at 11:03 AM, James Green wrote:

Quote:
Klaus Teller wrote:
Quote:
I tried the following but for unknown reason, the caller is not
getting anything:


JavaSession s = new JavaSession(uuid);
s.answer();
s.streamFile("/usr/local/freeswitch/sounds/1.wav");
s.execute("send_dtmf", "0123456789ABCD*#@2000");
s.hangup();


I can play the file 1.wav without problem but the "send_dtmf" is
simply being ignored. I used wireshrack to check if maybe the
outbound DTMF was sent and not played by my softphone. But this
is
Quote:
Quote:
Quote:
Quote:
Quote:
not the case.

streamFile() blocks until sound file ends or a DTMF tone is
received, as
detailed on the wiki:

http://wiki.freeswitch.org/wiki/Session_streamFile

I suspect you want some background music? I'm still trying to get
my
Quote:
Quote:
Quote:
Quote:
head around which programming features to use in which
circumstances,
Quote:
Quote:
Quote:
something I've not found any clear high level guide on yet.
<james_green.vcf>_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/frees
witch-users
Quote:
Quote:
http://www.freeswitch.org

Brian West
sip:brian@freeswitch.org <sip%3Abrian@freeswitch.org>







_______________________________________________
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
Quote:
Quote:
http://www.freeswitch.org

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
allen:
Quote:
http://www.gmx.net/de/go/multimessenger

_______________________________________________
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
Quote:
Quote:
http://www.freeswitch.org




--
Anthony Minessale II

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

AIM: anthm
MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com>

GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com>
Quote:
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

--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein:
http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx

_______________________________________________
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

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

_______________________________________________
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
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