Way2call telephony device is your ultimate telephony integration solution! |
DTMF detection |
Post Reply |
Author | |
jaco
Newbie Joined: Oct 06 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: Oct 06 2009 at 3:24pm |
Ok. I've seen my mistake. The correct is to read dwEventData not dwData.
w2cUsbM_TranslateEventToString(wDeviceID, tmpStr, dwEventCode, dwEventData); Anyway, I believe that the demo program's source would be a great help for people that dealing telephony devices for first time. |
|
jaco
Newbie Joined: Oct 06 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I've just seen that that when I'm running the "Way2call Log" it integrates in to Embarcadero IDE and prints all the debug messages in the IDE (very nice feature).
The weird thing is that the event log in the IDE always reports the correct detected dtfm tones but in the callback handler the w2cUsbM_TranslateEventToString function always return "DTMF: '0' [Common]". This is how I'm using it. char tmpStr[300]; w2cUsbM_TranslateEventToString(wDeviceID, tmpStr, dwEventCode, dwData); Form1->txtLog->Lines->Add(tmpStr); //TMemo object. Here dtmf are detected always as '0' |
|
jaco
Newbie Joined: Oct 06 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi to all.
I'm using the dll library and C++ Builder (2010) to control the usb modem. By the way the API is very well developed and it's really a professional work. Respect. The documentation could be better thought and it would be great if you publish the code for the w2cMultiTestApp.exe. I have a problem regarding dtmf detection that derives from my code because the dtmf detection works well in w2cMultiTestApp.exe. What I'm doing is that I' m switching the device to HPCMD_SW_PHONE_AudioStream mode and debug print all the incoming events. When I'm hooking off the phone whatever key I press I'm always getting a "DTMF: '0' [Common]" event, that means that the dtmf detector always reports the same button. Probably it has to do with the gain or the detection time, I don't really know. On the other hand as I've said it works without problems with the demo application. As I'm not familiar with all the aspects of telephony devices, are there any default rules that I've to follow in order to initialize the device properly? For example which are the parameters that I have always to set every time the software starts etc. Finally, every time the software starts is always necessary to initialize the modem or it keeps its last configuration? Once again I must mention that it would help a lot the developers if you publish the source code for the w2cMultiTestApp.exe. It has all the features and helps a lot to understand how the API works. Thanks in advance for any answer. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.109 seconds.