BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-20-2010, 02:43 AM   #1
satyavbs
New Member
 
Join Date: Oct 2009
Model: 8900
PIN: N/A
Carrier: 12345
Posts: 1
Default Call Failed message

Please Login to Remove!

I have developed a one application that disconnects the calling number and it will call to gateway number.


When the application is trying to dial the gateway number after disconnecting getting call failed message.


I'm using below code disconnecting and dialing.


For call disconnecting:

private void disconnectCall()
{

try {Thread.sleep(50);} catch (Exception ex) { ex.printStackTrace(); }



EventLogger.logEvent(EventLoggerID, (new String("disconnectCall()")).getBytes(),EventLogger .DEBUG_INFO);
EventInjector.KeyCodeEvent pressEndKey = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_END, KeypadListener.STATUS_NOT_FROM_KEYPAD, 100);
EventInjector.KeyCodeEvent releaseEndKey = new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP, (char) Keypad.KEY_END, KeypadListener.STATUS_NOT_FROM_KEYPAD, 100);
try{
EventInjector.invokeEvent(pressEndKey);
EventInjector.invokeEvent(releaseEndKey);
} catch (Exception ex) {
EventLogger.logEvent(EventLoggerID,(new String("Exception in disconnectCall : ") + ex ).getBytes(),EventLogger.DEBUG_INFO);
}
try {Thread.sleep(100);} catch (InterruptedException ex) {ex.printStackTrace();}

}



And for dailing:


private void dialNumber(String phNumber)
{

EventLogger.logEvent(EventLoggerID, (new String("dialNumber(String phNumber) - Start: ")+phNumber).getBytes(),EventLogger.DEBUG_INFO );
PhoneArguments phoneArgs = new PhoneArguments(PhoneArguments.ARG_CALL, phNumber, false);

Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, phoneArgs);
EventLogger.logEvent(EventLoggerID, (new String("dialNumber(String phNumber) - End: ")+phNumber).getBytes(),EventLogger.DEBUG_INFO );

}



This problem is happening most of the blackberry models.



Please help me on this to fix the call failed problem.



Thanks in Advance



Regards,

Bhima Vungarala
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


Heavy duty Thermocouple (60 Inch) Blodgett 3835 nickel  plated for pizza ovens picture

Heavy duty Thermocouple (60 Inch) Blodgett 3835 nickel plated for pizza ovens

$14.99



1PC 80BK-A Type K Thermocouple, Temperature Bead Probe Clamp - Multimeter. picture

1PC 80BK-A Type K Thermocouple, Temperature Bead Probe Clamp - Multimeter.

$14.39



6802 II Digital Thermocouple Thermometer Dual Channel 2*K-Type Temperature Meter picture

6802 II Digital Thermocouple Thermometer Dual Channel 2*K-Type Temperature Meter

$23.92



Digital Thermometer Dual Channel Input Thermocouple K J T E R N C/F Selection US picture

Digital Thermometer Dual Channel Input Thermocouple K J T E R N C/F Selection US

$25.99



Garland 4523506 60 Inch Thermocouple by Garland picture

Garland 4523506 60 Inch Thermocouple by Garland

$17.99



TL-WELD Thermocouple Welding Machine Welder for Welding Temperature Wire 90-260V picture

TL-WELD Thermocouple Welding Machine Welder for Welding Temperature Wire 90-260V

$346.02







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