BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-24-2007, 12:14 PM   #1
jecortes77
New Member
 
Join Date: Feb 2006
Location: Colombia
Model: 8800
Carrier: Cingular
Posts: 12
Default How Can I interrupt a phonecall through DTMF tones?

Please Login to Remove!

How Can I interrupt a phonecall through DTMF tones?
I´m trying to interrupt a phonecall through DTMF tones, then I must to dial a phonenumber using dtmf tones and to finish I should send the dtmf tones.

What are the corresponding dtmf tones to make these actions.

Thank you in advance
Offline  
Old 05-02-2007, 11:28 PM   #2
knifegun
Knows Where the Search Button Is
 
Join Date: Mar 2007
Model: 8100
Carrier: TMobile
Posts: 28
Default

Not sure what you are asking. You can get a handle to an active call via the Phone.getActiveCall() API. You can also send DTMF tones with the active call handle. Does this answer your question?
Offline  
Old 05-10-2007, 03:23 PM   #3
jecortes77
New Member
 
Join Date: Feb 2006
Location: Colombia
Model: 8800
Carrier: Cingular
Posts: 12
Default

Quote:
Originally Posted by knifegun View Post
Not sure what you are asking. You can get a handle to an active call via the Phone.getActiveCall() API. You can also send DTMF tones with the active call handle. Does this answer your question?
Hi.

Thanks for the reply. I have already used this method but that does not answer my question.

What I need to do is the next:

Cancell and active call
Launch a new call and then send a dtmf tone (like the phone extension)

I have already done it with the java class EventInjector, but this class is only available in Blackberry Pearl and Blackberry 8800, and only works fine
in 8800 model, that`s why I´m trying other methods.

I have read that I could done this tasks using AT Commands. I know the command ATH can cancel a phone call.

The problem that I have now is that I can not get the available com ports in the simulator using the next code:

String ports = System.getProperty("microedition.commports");
Status.show("Available ports: "+ports,
Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), 3000,
Status.GLOBAL_STATUS, true, false, 2);

This shows nothing.

I´m trying to send the AT command like this:

CommConnection commConn;
commConn = (CommConnection) Connector.open("comm:COM4;" +"baudrate=115200", Connector.READ_WRITE,true);
iStream = commConn.openInputStream();
oStream = commConn.openOutputStream();
String sMessage = "ATH";
oStream.write(sMessage.getBytes());


This throws a nullpointer exception.

When I look at the Device Manager I can see a port called RIM Virtual Serial Port(COM4).

Can you help me please with this problem?
Offline  
Old 05-10-2007, 03:24 PM   #4
jecortes77
New Member
 
Join Date: Feb 2006
Location: Colombia
Model: 8800
Carrier: Cingular
Posts: 12
Default How to interrupt a phone call through AT commands

What I need to do is the next:

Cancell and active call
Launch a new call and then send a dtmf tone (like the phone extension)

I have already done it with the java class EventInjector, but this class is only available in Blackberry Pearl and Blackberry 8800, and only works fine
in 8800 model, that`s why I´m trying other methods.

I have read that I could done this tasks using AT Commands. I know the command ATH can cancel a phone call.

The problem that I have now is that I can not get the available com ports in the simulator using the next code:

String ports = System.getProperty("microedition.commports");
Status.show("Available ports: "+ports,
Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), 3000,
Status.GLOBAL_STATUS, true, false, 2);

This shows nothing.

I´m trying to send the AT command like this:

CommConnection commConn;
commConn = (CommConnection) Connector.open("comm:COM4;" +"baudrate=115200", Connector.READ_WRITE,true);
iStream = commConn.openInputStream();
oStream = commConn.openOutputStream();
String sMessage = "ATH";
oStream.write(sMessage.getBytes());


This throws a nullpointer exception.

When I look at the Device Manager I can see a port called RIM Virtual Serial Port(COM4).

Can you help me please with this problem?
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


CBB60 Motor Run Capacitor 450VAC 10uF/20uF/30uF/40uF/50uF 4 Pins CE Standard picture

CBB60 Motor Run Capacitor 450VAC 10uF/20uF/30uF/40uF/50uF 4 Pins CE Standard

$8.99



CBB60 Capacitor 250VAC 60UF MFD For Motor Run 2 Wires Metallized Polypropylene picture

CBB60 Capacitor 250VAC 60UF MFD For Motor Run 2 Wires Metallized Polypropylene

$12.99



DAYTON Motor Run Capacitor: Round, 440V AC, 25 mfd 2MEH2 picture

DAYTON Motor Run Capacitor: Round, 440V AC, 25 mfd 2MEH2

$15.00



25pcs Nichicon Aluminum Electrolytic Capacitors SMD 330uF 35V 20% UWD1V331MCQ1GS picture

25pcs Nichicon Aluminum Electrolytic Capacitors SMD 330uF 35V 20% UWD1V331MCQ1GS

$10.00



Snap in Electrolytic Capacitor Large Electrolytic Can Capacitor 100uF - 100000uF picture

Snap in Electrolytic Capacitor Large Electrolytic Can Capacitor 100uF - 100000uF

$379.58



6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF picture

6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF

$155.59







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.