[Freeswitch-users] DTMF Reading and Playing
James Green
james.green at stealthnet.net
Thu Sep 11 09:03:43 PDT 2008
Klaus Teller wrote:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: james_green.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080911/e8f85197/attachment-0002.vcf
More information about the FreeSWITCH-users
mailing list