Phone Application sending DTMF tone

  • Thread starter Thread starter vsciw
  • Start date Start date
V

vsciw

Hi.

we have a phone application written in vb.net cf2.0 in vs2005 running
on a WM5 device, which is dialling out and making a call ok. but, when
that call connects to an automated system, we have to send DTMF tones
when the user presses the keypad to navigate the system.

it's not the standard phone which comes with the device (which does
DTMF), as our client wanted to lock down the phone so the users cant
just dial any number - they get a list of approved numbers and they
just select from the list.

can someone point me to the easiest (quickest!!) way of doing this
please?

Thanks. Ian.
 
One way to do it is to use the dtmf: url protocol e.g.

System.Diagnostics.Process.Start("dmtf:123", null)

Replace 123 with your dtmf character(s)

Peter
 
You can also add the DTMF sequence to your initial dial sequence. See this
for more:http://blog.opennetcf.org/ncowburn/2007/03/09/InteractingWithInteract...

--
Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/http://www.smartdeviceframework.com/








- Show quoted text -

Thanks for the help, but when i'm performing this function, i'm
getting a win32exception:

i.e. System.Diagnostics.Process.Start("dmtf:2", String.Empty)

error code: -2147467259
message: "Win32Exception"
stack trace: "at System.Diagnostics.Process.StartWithShellExecuteEx()
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start()
at Phone.Form1.Button2_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at Phone.Form1.Main()
"

i've checked the registry on the device and i can see dtmf in the
URLprotocols.
 
Testing it on a couple of devices shows it works and even fails gracefully
if you are not in a call. What device are you using?

Peter
 
Testing it on a couple of devices shows it works and even fails gracefully
if you are not in a call. What device are you using?

Peter

--
Peter Foot
Device Application Development MVPwww.peterfoot.net|www.inthehand.com










- Show quoted text -

it's a symbol mc9094s.

Ian.
 
Perhaps Symbol provides this funtion in their own SDK? You may have to
inquire/search the Symbol Developer Zone. I've found Symbol to be helpful,
though it can take a couple of days to get to the right person for a
specialized answer. It is possible that they have done something a that
keeps the API that Peter referenced from working.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Perhaps Symbol provides this funtion in their own SDK? You may have to
inquire/search the Symbol Developer Zone. I've found Symbol to be helpful,
though it can take a couple of days to get to the right person for a
specialized answer. It is possible that they have done something a that
keeps the API that Peter referenced from working.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
Seewww.hardandsoftware.netfor details and contact information.

Yes, I've also found symbol to be helpful, particularly as we are a
reseller, but with this problem we based our application on one of
symbols sample apps from their SMDK but this part didnt work, and they
just say now that it was just an example and they wont support it.

Ian.
 
Back
Top