Hi, After studying the code and trying a few different ways to do this, noting that in the Emulator the code works fine
I come to believe that its a HTC Hero Issue. Unforunately I do not have a G1 to test on. If anyone does have a G1 they could test the code let me know I will send you the code. Just to explain what is happening on the HTC Hero. When I try to send it a number with comma's it removes them, even when I try to use ;ext= to send the IVR commands it fails even though on the emulator it asks me if I want to send the tones. I have tried ACTION_DIAL and ACTION_CALL and both do the same thing, it starts to dial the number, you hear the first tone come out of the speaker phone and then I see this error below in the LogCat 09-09 19:33:45.721: ERROR/AudioService(63): Invalid routing action. Node A2DP does not exist. I have tried numbers i.e. without extra chars and it works, so the code is fine. I have encoded the hash as per this discussion http://groups.google.com/group/android-developers/browse_thread/thread/e8904c82a2c4a333/d8452b707b38b20b?q=internal.telephony#d8452b707b38b20b I couldn't find in the code where that error message "invalid routing action" exists, but I see that in the AudioManager there is some code to fix a bug that was in the eclair release, which talks about MODE_INVALID. Not sure if I am off the scent here though. Either way, I am not sure if this is a HTC Issue or a Android Issue. If ANYONE has a G1 or HTC Hero and would be willing to test the code, please let me know. ANY HELP would be appreciated Regards Mark 09-09 19:33:45.721: ERROR/AudioService(63): Invalid routing action. Node A2DP does not exist. On Sep 8, 3:47 pm, Mark Ellul <[email protected]> wrote: > Hi > > Just to Add more Logging output > > This time from the adb device shell prompt, when I am running > > logcat -b radio > > D/GSM ( 118): [GSMConn] acquireWakeLock > D/RILJ ( 118): [0828]> SET_MUTE false > D/RILJ ( 118): [0829]> DIAL > D/RILJ ( 118): [0828]< SET_MUTE > D/RILJ ( 118): [UNSL]< UNSOL_RESPONSE_CALL_STATE_CHANGED > D/RILJ ( 118): [0829]< DIAL > D/RILJ ( 118): [0830]> SET_MUTE false > D/RILJ ( 118): [0830]< SET_MUTE > D/RILJ ( 118): [0831]> SET_MUTE false > D/RILJ ( 118): [0832]> GET_CURRENT_CALLS > D/RILJ ( 118): [0831]< SET_MUTE > D/RILJ ( 118): [UNSL]< UNSOL_RESPONSE_CALL_STATE_CHANGED > D/RILJ ( 118): [0832]< GET_CURRENT_CALLS > [id=1,mo,DIALING,voice,norm,129,0,cli 1] > D/RILJ ( 118): [0833]> SET_MUTE false > D/RILJ ( 118): [0833]< SET_MUTE > D/RILJ ( 118): [0834]> GET_CURRENT_CALLS > D/RILJ ( 118): [0834]< GET_CURRENT_CALLS > [id=1,mo,DIALING,voice,norm,129,0,cli 1] > D/GSM ( 118): [GSMConn] update: parent=DIALING, > hasNewParent=false, wasConnectingInOrOut=true, wasHolding=false, > isConnectingInOrOut=true, changed=false > D/RILJ ( 118): [0835]> SET_MUTE false > D/RILJ ( 118): [0835]< SET_MUTE > D/RILJ ( 118): [UNSL]< UNSOL_RESPONSE_CALL_STATE_CHANGED > D/RILJ ( 118): [0836]> GET_CURRENT_CALLS > D/RILJ ( 118): [UNSL]< UNSOL_RESPONSE_CALL_STATE_CHANGED > D/RILJ ( 118): [0836]< GET_CURRENT_CALLS > D/RILJ ( 118): [0837]> GET_CURRENT_CALLS > D/RILJ ( 118): [0837]< GET_CURRENT_CALLS > D/RILJ ( 118): [0838]> LAST_CALL_FAIL_CAUSE > D/RILJ ( 118): [0838]< LAST_CALL_FAIL_CAUSE {65535} > D/GSM ( 118): [GSMConn] onDisconnect: cause=NORMAL > D/GSM ( 118): [GSMConn] releaseWakeLock > D/GSM ( 118): [DataConnectionTracker] ***trySetupData due to > 2GVoiceCallEnded > D/GSM ( 118): [DataConnectionTracker] trySetupData: Not ready > for data: > D/GSM ( 118): disableDataConnection=false > D/GSM ( 118): noRetry=false > D/GSM ( 118): isPowerSavingModeActivated=false > D/GSM ( 118): dataState=IDLE > D/GSM ( 118): gprsState=0 > D/GSM ( 118): sim=true > D/GSM ( 118): UMTS=true > D/GSM ( 118): phoneState=IDLE > D/GSM ( 118): dataEnabled=false > D/GSM ( 118): dataOnRoamingEnable=false > D/GSM ( 118): [DataConnectionTracker] Clean up connection due to > 2GVoiceCallEnded > D/GSM ( 118): [DataConnection] Stop poll NetStat > D/GSM ( 118): [DataConnectionTracker] setState: IDLE > D/RILJ ( 118): [0839]> SET_MUTE false > D/RILJ ( 118): [0839]< SET_MUTE > D/RILJ ( 118): [0840]> SET_MUTE false > D/RILJ ( 118): [0840]< SET_MUTE > D/RILJ ( 118): [0841]> DTMF_STOP > D/RILJ ( 118): [0841]< DTMF_STOP > D/RILJ ( 118): [0841]< DTMF_STOP error: > com.android.internal.telephony.gsm.CommandException: GENERIC_FAILURE > D/RILJ ( 118): [0842]> DTMF_STOP > D/RILJ ( 118): [0842]< DTMF_STOP > D/RILJ ( 118): [0842]< DTMF_STOP error: > com.android.internal.telephony.gsm.CommandException: GENERIC_FAILURE > > If you need more info please let me know. > > Regards > > Mark > > On Sep 8, 3:40 pm, Mark Ellul <[email protected]> wrote: > > > > > Hi > > > I have added more log information from the ddms tool, to see if this > > helps... > > > 09-08 15:35:48.801: INFO/ActivityManager(63): Starting activity: > > Intent { action=android.intent.action.CALL data=tel: > > 976574325,2,41*667854,000*837101,692649593 comp={com.android.phone/ > > com.android.phone.OutgoingCallBroadcaster} } > > 09-08 15:35:49.071: INFO/ActivityManager(63): Starting activity: > > Intent { action=android.intent.action.CALL data=tel: > > 976574325,2,41*667854,000*837101,692649593 flags=0x10000000 comp= > > {com.android.phone/com.android.phone.InCallScreen} (has extras) } > > 09-08 15:35:49.091: INFO/WindowManager(63): Screen status=true, > > current orientation=5, SensorEnabled=true > > 09-08 15:35:49.091: INFO/WindowManager(63): needSensorRunningLp, > > mCurrentAppOrientation =5 > > 09-08 15:35:49.091: INFO/WindowManager(63): needSensorRunningLp, > > SCREEN_ORIENTATION_NOSENSOR > > 09-08 15:35:49.091: DEBUG/Sensors(63): close_akm, fd=162 > > 09-08 15:35:49.091: DEBUG/Sensors(63): sensors=00000000, real=00000000 > > 09-08 15:35:49.121: DEBUG/Sensors(63): using /dev/input/event4 > > (name=compass) > > 09-08 15:35:49.151: INFO/WindowManager(63): Disabling listeners > > 09-08 15:35:49.171: INFO/global(118): Default buffer size used in > > BufferedWriter constructor. It would be better to be explicit if an 8k- > > char buffer is required. > > 09-08 15:35:49.191: INFO/AudioHardwareMSM72XX(37): Routing audio to > > Handset (2,1) > > 09-08 15:35:49.191: DEBUG/AudioHardwareMSM72XX(37): rpc_snd_set_device > > (0, 0, 1) > > 09-08 15:35:49.201: DEBUG/HTC Acoustic(37): msm72xx_enable_audpp: > > 0x0000 > > 09-08 15:35:49.211: DEBUG/AudioHardwareMSM72XX(37): setVoiceVolume > > (0.800000) > > 09-08 15:35:49.211: INFO/AudioHardwareMSM72XX(37): Setting in-call > > volume to 4 (available range is 0 to 5) > > 09-08 15:35:49.441: DEBUG/AK8973(41): Compass CLOSE > > 09-08 15:35:49.461: DEBUG/HardwareService(63): cancelVibrate > > 09-08 15:35:49.471: DEBUG/WindowManager(63): disableKeyguard - > > PhoneApp > > 09-08 15:35:49.831: DEBUG/BluetoothHeadset(118): Proxy object > > connected > > 09-08 15:35:50.351: DEBUG/dalvikvm(118): GC freed 20571 objects / > > 1091024 bytes in 236ms > > 09-08 15:35:50.591: INFO/global(118): Default buffer size used in > > BufferedWriter constructor. It would be better to be explicit if an 8k- > > char buffer is required. > > 09-08 15:35:50.591: VERBOSE/AudioService(63): updateRoutes(), > > newName=BT;newState=0; > > 09-08 15:35:50.591: ERROR/AudioService(63): Invalid routing action. > > Node A2DP does not exist. > > 09-08 15:35:50.591: VERBOSE/AudioService(63): List Nodes: device=No > > Device;normal=2; Ringtone=2; InCall=1; > > 09-08 15:35:50.621: INFO/AudioHardwareMSM72XX(37): Routing audio to > > Speakerphone (0,2) > > 09-08 15:35:50.621: DEBUG/AudioHardwareMSM72XX(37): rpc_snd_set_device > > (1, 1, 1) > > 09-08 15:35:50.621: DEBUG/HTC Acoustic(37): msm72xx_enable_audpp: > > 0x0007 > > 09-08 15:35:50.661: ERROR/WindowManagerService(63): > > setLockScreenShowImmediately = false > > 09-08 15:35:50.661: ERROR/WindowManager(63): > > setLockScreenShowImmediately = false > > 09-08 15:35:50.671: DEBUG/WindowManager(63): reenableKeyguard - > > PhoneApp > > 09-08 15:35:50.691: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness, 102) failed! > > 09-08 15:35:50.691: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness): read from property = 102 > > 09-08 15:35:50.691: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness, 102) failed! > > 09-08 15:35:50.701: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness): read from property = 102 > > 09-08 15:35:50.751: INFO/AudioHardwareMSM72XX(37): AUDIO_START: start > > kernel pcm_out driver. > > 09-08 15:35:50.761: DEBUG/MobileDataStateTracker(63): Received > > android.intent.action.ANY_DATA_STATE broadcast - state = DISCONNECTED, > > unavailable = false, reason = 2GVoiceCallEndedapn=null, > > capability=null > > 09-08 15:35:50.761: DEBUG/GpsLocationProvider(63): state: DISCONNECTED > > apnType: null apnName: null reason: 2GVoiceCallEnded > > 09-08 15:35:52.231: INFO/ActivityManager(63): moveTaskToBack: 8 > > 09-08 15:35:52.251: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness, 102) failed! > > 09-08 15:35:52.301: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness): read from property = 102 > > 09-08 15:35:52.341: INFO/WindowManager(63): Screen status=true, > > current orientation=-1, SensorEnabled=false > > 09-08 15:35:52.341: INFO/WindowManager(63): needSensorRunningLp, > > mCurrentAppOrientation =-1 > > 09-08 15:35:52.351: DEBUG/Sensors(63): open_akm, fd=162 > > 09-08 15:35:52.351: DEBUG/Sensors(63): sensors=00000001, real=00000001 > > 09-08 15:35:52.361: DEBUG/AK8973(41): Compass Start > > 09-08 15:35:52.391: DEBUG/Sensors(63): using /dev/input/event4 > > (name=compass) > > 09-08 15:35:52.661: INFO/WindowManager(63): Enabling listeners > > 09-08 15:35:52.671: DEBUG/dalvikvm(63): GC freed 20468 objects / > > 1167904 bytes in 271ms > > 09-08 15:35:52.681: DEBUG/Sensors(63): data__data_open: fd = 183 > > 09-08 15:35:52.681: INFO/WindowManager(63): onOrientationChanged, > > rotation changed to 0 > > 09-08 15:35:53.131: INFO/ActivityManager(63): moveTaskToBack: 8 > > 09-08 15:35:53.995: INFO/AudioHardwareMSM72XX(37): AudioHardware pcm > > playback is going to standby. > > 09-08 15:35:58.281: DEBUG/dalvikvm(115): GC freed 2546 objects / > > 127344 bytes in 154ms > > 09-08 15:36:08.401: INFO/InetAddress(63): Unknown host north- > > america.pool.ntp.org, throwing UnknownHostException > > 09-08 15:36:08.401: DEBUG/SntpClient(63): request time failed: > > java.net.UnknownHostException: north-america.pool.ntp.org - north- > > america.pool.ntp.org > > 09-08 15:36:08.401: DEBUG/GpsLocationProvider(63): requestTime failed > > 09-08 15:36:08.401: DEBUG/GpsLocationProvider(63): NetworkThread wait > > for 300000ms > > 09-08 15:36:45.328: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness, 102) failed! > > 09-08 15:36:45.331: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.brightness): read from property = 102 > > 09-08 15:36:45.651: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.autobacklight, 1) failed! > > 09-08 15:36:45.661: ERROR/HardwareService(63): GetPreferredValue > > (settings.display.autobacklight): read from property = 1 > > > Here is the code I am using to make the call as well.... > > > private void call(String telephoneNumber) { > > try { > > Intent callIntent = new Intent(Intent.ACTION_CALL); > > callIntent.setData(Uri.parse(String.format("tel:%s", > > telephoneNumber))); > > startActivity(callIntent); > > } catch (ActivityNotFoundException > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

