TAPI : Activate Hands Free Mode - MDA II, XDA II, 2060 General

Hi all,
I've found in a newsgroup (microsoft.public.pocketpc.developer) a thread (1 year old approximately) which speaks about this activation and it helped me much. Unfortunately I have still a big problem :-(
I am trying to do (automatically) a phonecall in my application. I am using an Orange SPV M1000 PPC so the operating system is PocketPc 2003 Phone Edition. I am developping with EVC++ V4.0.
So I am able to call a phone number with the following methods :
lineInitializeEx,
lineNegotiateAPIVersion,
lineGetDevCaps,
lineOpen,
lineMakeCall.
etc...
At this moment I want to activate the hands free mode (ie using PPC speaker instead of phone one). This is apparently possible using phoneSetHookSwitch method. But to use phoneSetHookSwitch, I have to initialize and open a phone line with:
phoneInitializeEx,
phoneNegotiateAPIVersion,
phoneGetDevCaps,
phoneOpen,
and now I can invoke phoneSetHookSwitch after having received the LINECALLSTATE_CONNECTED callback notification.
But it doesn't work. I have always the same error code : PHONEERR_OPERATIONUNAVAIL :?
I looked for the phone capalities (PHONECAPS) after phoneGetDevCaps and they say that this device doesn't support hook capabilities. It is astonishing because it is possible to do it with the standard phone of the PPC !!
Please, help me !!
Sorry for my bad english
@+

I don't think anyone has figured this out yet, (if anyone has PLEASE TELL ME)...
http://forum.xda-developers.com/viewtopic.php?t=18154&highlight=
Check this thread out, a couple of people have tried what you are trying but it doesn't work. The primary belief is that when you are calling LineOpen you are only given LINECALLPRIVILEGE_MONITOR privilege. Your app can not get owner privilege because that belongs to cprog.exe. Therefore you are not able to do the phoneSetHookSwitch().
We also tried adding the green call button to the keybd_event() but though that answers the call it will not turn the speaker phone on.
I've been wondering if we should SPY cprog.exe and see if any windows messages are sent to the device when the speakerphone is enabled and maybe we can send those messages to cprog from our apps to fool it into turning the speakerphone on for us.

Oh, it is not a good news :?
Thank you for your fast answer.
I will let you know if I find a solution... 8)

Related

RECORDING CALLS, DTMF SEND, PHONE S/W MOD - CODERS REQUIRED

Hi on my older phones like siemens there was an option to send dtmf tones which i used a lot.
EG.
1) I call 0800 CALLING CARD number and get a dialtone from the callco
2) I quickly go into my contacts and pull out the relevant contact and send the number as a dtmf tone
3) I get through to the contact
I really need to be able to send dtmf tones asap!
[PLEASE READ POST 8 FOR DETAILS ABOUT RECORDING CALLS AND MODIFYING PHONE SOFTWARE]
seems to be some software which does it but if any other ideas or software please let me know.
http://www.mobidial.com/mD/
Try dialDTMF at http://sourceforge.net/projects/dialdtmf
On my Jam it works flawlessly.
--------------
i-Mate Jam
ROM: 1.12.00 WWE
ROM Date: 05/28/05
Radio Ver. 1.13.00
Protocol Ver. 1337.43
ExtRom Ver. 1.12.128 WWE
Hi there thank you for the pointer!
I am about to try it out later today but have been reading about dialDTMF on here:
http://dialdtmf.sourceforge.net/
It sounds like it is designed before pocket pc's became phones simply to send a dtmf tone through to another phone by holding the pocket pc over the mic of the other phone. In this sense I would describe it as "Emitting DTMF tones" as oppose to "Sending DTMF tones".
This is different in the sense I would like to call a freephone number on the magician and then send the tones on the magician from my contacts. This is what I am calling "Sending DTMF tones".
Im hoping that even though it is designed to *emit* DTMF tones the sound is loud enough to go through to the freephone calling card company!!
Fingers crossed.
If anyone knows of a "Send DTMF tones" solution for the HTC Typhoon - SPV C500 / Sp3 please also post it, thank you!
Hi All,
I'm the developer of dialDTMF, Glad to hear it works out for some people,
As for cell phone support, you are correct it does not send DTMF's using the cell phone api it just makes sounds. You could try upping the volume and hope the mic picks it up like sainthalo mentioned.
The alternative would be to take the source code and update it to send the DTMF tone rather than play it. This would fairly easy for a cell phone developer to do (I don't have time or a cell phone that runs wm2003), should just be a couple of new functions. I'm happy to discuss (via email) though if some one wants to try, The source code is freely available. You could also check out http://artax.karlin.mff.cuni.cz/~jsyk7570/Xialer/ but it doesn't really handle calling cards.
I've a potentiall silly question: Are 0800 numbers free to call from mobile phones in the UK now? The last time I was over there they weren't (only from landlines). It maybe that using a calling card won't save any money.
Chris
Hi there clach04,
Thanks for signing up to these forums to help in this quest!
DialDTMF works as it is designed - as a Pocket PC DTMF tone generator but not to send DTMF tones down the Magician phoneline.
Okay, i'm sad to report that it does not work because it is not using the api and so is a "DTMF Emitter" rather than a "DTMF Sender".
There are several coders around here who are very active so god willing one of them will be along to help although it's something like this which gives the real urge to learn how to code. DO you have any advice for me (links, tools, etc) if I were to try and achieve this myself?
As for the 0800 codes there are some tarriffs left in the UK where you are entitled to call 0800 numbers to come off free minutes or simply as genuine free phone calls - thankfully I have one of these older contracts and therefore I can use calling card services.
Best regards
sainthalo
Guys, I would love to help out but with my upcoming nuptials it might be difficult.
However, I'm thinking thus:
Emitting DTMF is easy, play it out of the speaker.
Sending dtmf will require interfacing with the Phone part of the PDA; you should be aware that our PDA Phones are actually two semi-independant devices, phone and PDA; have you noticed you can switch off the PDA and still continue with a call? The two devices communicate through a virtual COM port:- this is done through AT commands and/or RIL. This is not an area of the PDA I have had much experience with yet, but what I understand so far is that it is very difficult to send data through to the Phone part of the PDA, from the PDA part.
This sounds absurd, and I may be absurdly wrong, but I suspect it is a similar problem to the existing issue about recording in-progress telephone calls. We don't yet know how, or if it is possible at all to interface directly into that part of the PDA and interact with the data, and so recording both sides of a phone calls is currently considered impossible.
I know user Pai has done a lot of work on Cell ID and other interfacing on that side of things. I suggest giving him a bell (no pun intended!) and asking his opinion.
I'll try to monitor this thread though.
clach04 - Do you have any further thoughts on this?
V
EDIT: Guys, I just had a thought. In the very old modem days school, we used to dial using at commands AT P (for pulse dialling, or AT T for tone)
eg AT P 123 would dial 123
It would do this by generating DTMF tones!
It should be possible I presume to send DTMF tones in this way as discussed above (RIL/AT). Anyone concur? This can be tested I presume with a terminal program, or just find COM code on this board. I'll try to find it if I get a chance.
V
Hey thanks Vijay, i'll keep my fingers crossed you come back to think about this in the future!
I have had another thought following Vijay's post and realised that a few other bugbears which many people find a tad annoying and would like to circumvent are possibly linked to this case. I have read on here people would like to play a recording/song from the Magician to a caller they are speaking to. I have done this many times on a Siemens SL45i but not on HTC Typhoon or Magician.
Im guessing the inability to play a Magician located recording/song down the Magician phoneline is down to the same reason that the dtmfDialer will not make a noise during a call - something is blocking out use of the speaker by PPC based software. Im assuming it is the PHONE software which locks out other PPC software.
If we can hack the PHONE calling software so that it allows other software to operate as normal it may well impact/solve the following problems:
Recording both sides of voice calls clearly
Sending DTMF tones
Playing recordings/music to other side of call
The dtmfDialer definitely does something during a call and I think i can hear some suppressed clicking when attempting to send a dtmfDialer tone during a phone call but sadly no audible tones. This possibly confirms my theory that the PHONE CALL SOFTWARE is blocking use of the speaker.
Well what do you all think? Possibly an awesome fix to many problems if the phone dialer can be hacked...
Saint, with regard to recording calls, there are other threads on this issue where much better men than I have said it's impossible, at least right now.
As I understand it, there's no direct connection between the phone and the pda bit, so playing something out of the speaker isn't playing it down the line - so the best we've got is "emission" rather then send.
This isn't a limitation by the caller program, it's a hardware limitation caused by the way our PDA phones are hacked together.
However, I think the AT P commands should crack this. I'll look into it at some point, if I can find example code.
V
Saint, with regard to recording calls, there are other threads on this issue where much better men than I have said it's impossible, at least right now.
As I understand it, there's no direct connection between the phone and the pda bit, so playing something out of the speaker isn't playing it down the line - so the best we've got is "emission" rather then send.
This isn't a limitation by the caller program, it's a hardware limitation caused by the way our PDA phones are hacked together.
However, I think the AT P commands should crack this. I'll look into it at some point, if I can find example code.
V
vijay555 said:
you should be aware that our PDA Phones are actually two semi-independant devices, phone and PDA;
....
The two devices communicate through a virtual COM port:- this is done through AT commands and/or RIL.
..
clach04 - Do you have any further thoughts on this?
Click to expand...
Click to collapse
Not really, my comments about how easy it would be to extend dialDTMF were from the dialDTMF contacts plugin perspective. It sounds like the SDK/api for these devices (for phone use) is pretty thin :-( If you do find that a modem AT style dial works you can replace the dtmf player in dialDTMF with a dial-string generator - the hard bit will be the interface to the phone. The dialing rules library I put into dialDTMF actually has a demo program that dumps dial strings to stdout (when ran on the desktop) - but until the phone api is resolved that is only midly interesting/useful now.
The AT style dial string approach sounds workable from the description.
sainthalo said:
DO you have any advice for me (links, tools, etc) if I were to try and achieve this myself?
Click to expand...
Click to collapse
That's one of those open ended questions that are really tricky to answer, I suspect this forum you are on is the best place to start as I suspect they have links to everything you will need:
You need a Cross compiler for WinCE:
http://www.microsoft.com/downloads/...3D-50D1-41B2-A107-FA75AE960856&displaylang=en
I guess youwill need a phone sdk:
http://www.microsoft.com/downloads/...99-EC5C-427C-807C-4C0F96765A81&displaylang=en
I'm not clear from reading the comments that this is for your device though..
.
If you nead to learn C then your learning curve will be pretty steep, try http://www.cyberdiem.com/vin/learn.html as a starting point
http://www.cs.virginia.edu/~lcc-win32/ is a nice small system and has tutorials to get you started with simple desktop programs
As for the actual phone SDK/api - I've no idea (and no phone) sorry I can't be of more help. Once the basic how to send DTMF's through the phone is solved converting dialDTMF will be pretty straight forward and I can point people in the right direction with that,
Chris
clach - I agree it should be very easy to converter over your DTMF code to AT or equivalent once someone hacks in AT commands.
General:
see here:
http://forum.xda-developers.com/viewtopic.php?t=19866&highlight=commands
There's code here: http://forum.xda-developers.com/vie...start=25&sid=3e4fdf4cec07bfe39e806da375db69c3
that I'm going to look into for CellID at some point. However, if you look through you can see how they're sending standard AT commands.
Hope that points someone somewhere!
Re: learning c++. I've only been using it for < 1 month, and it is a steep learning curve, but there are some things that can only be done in C++ and EVB isn't worth touching generally IMHO. So, steep learning curve it is. I'll be on the beach with C++ for Dummies :wink:
V
Guys i need some help with a programe
Something fun
1, Phone captures the UPC barcode/ISBN number (manually/scanning/etc)
2, Software converts UPC to ISBN (this is done via a simple formula)
3, Software converts ISBN to DTMF (or touch tone)
4, Software ready to accept new UPC barcode/ISBN number
(manually/scanning/etc) :roll:
Let me know if anyone wants to take on this project
[email protected]
RIL (Radio Interface Layer)
I got this from google - it may be the key. I've not looked into it yet but thought I'd post it to see if anyone has gone down the RIL road yet and if they've got any ideas:
"
how to send DTMF on smartphone?
I found RIL_SendDTMF function of RIL API
but I don't know how to use it?
May I LoadLibrary of RILGSM.dll and GetProcAddress of RIL_SendDTMF function
to realize send DTMF?
or have another simply method?
Thanks£¡
-
Best IE Helper Object: Ai.RoboForm
http://roboform.go.51.net
http://www.roboform.com/dist/affs/AiRoboForm-win32.exe
Siber Oct 19, 4:13 am show options
Newsgroups: microsoft.public.pocketpc.developer
From: "Siber" <[email protected]> - Find messages by this author
Date: Wed, 19 Oct 2005 12:13:21 +0800
Local: Wed, Oct 19 2005 4:13 am
Subject: Re: how to send DTMF on smartphone?
Reply | Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse
I Got iT
lineGenerateDigits()
"
Anyone using C# to use this?
Pat
RIL
FYI:
RILGSM.dll can also be known as RIL.dll

SMS Notifier released – a great application for PPCPE users!

Finnish Aali Alikoski, Academic Developer Evangelist of Microsoft Finland, has just released a highly useful application, SMS Notifier, along with its source code.
The application offers some really nice and, up to now, to my knowledge, on the Pocket PC Phone Edition platform, unprecedenced functionality: it waits for unanswered incoming calls and, depending on the configuration settings, it either sends an SMS message to the caller (with configurable contents), possibly containing also the end time of current appointment (this is also configurable) or adds an item to the system-level Windows Mobile calendar (containing the caller info).
The latter functionality is nothing new – you can check the caller's identity and the call date/time in any low-end mobile phone. The former – that is, the SMS feedback –, however, is really long-awaited!
Downloading and Installation
You can download the application here. Transfer the CAB file to your PDA and execute it there.
If, after installing and upon starting SMS Notifier, you're presented this error message, make sure you download and install .NET CF 2.0 from Microsoft. Make sure you install it in the main memory. Also note that, as the application heavily relies on the new, connectivity/database-related libraries of .NET CF2, it's not very easy to port it to run under the earlier Compact Framework library. (For CAB lovers, you will only need c:\Program Files\ Microsoft.NET\SDK\CompactFramework\ v2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab ; you can also download it from here (to avoid having to download the 24 Mbyte-long MSI installer).
Configuration
On the main set-up screen, there're some checkboxes in AND relationship. The first one, Send SMS to unanswered callers, instructs the application to send an SMS to everybody that tries to call you but his or her calls remain unanswered. Using (not disabling) the second two checkboxes, however, you may make the application not send a SMS to anyone that calls you, just to the ones that call you during an active/busy appointment.
The checkbox/text input area at the bottom makes it possible to report the end of the current appointment so that he or she can know when you are reachable again.
The Calendar tab contains only one checbox, which instructs the application to enter all the incoming calls into Calendar.
Note that the configuration settings are not correctly saved/restored, as the author also points out.
Usage
To use the application, just start and configure it to your liking. Do not click the Quit button – then, it won't send your callers any SMS. Just let it run. You can, of course, suspend the PDA while you do so and also minimize the application. This also means you can safely start it from \Windows\Startup (just like the other highly recommended application, PMRecorder – please see this article on it if interested) – if it's running in the background, it'll safely catch all unanswered calls.
Other stuff
I also recommend the author's blog here. Don't be taken aback of some of the material's being in Finnish: there's nothing really interesting in them for non-Finns (the Finnish blog posts are only about local, Finnish meetings, conferences). Unfortunately, some of the other Finnish .NET bloggers (see the links in the lower left of the page) post exclusively in Finnish, even highly technical stuff that would be interesting for non-Finnish speakers too. (Feel free to ask me in my blog for a public translation for some of them if really interested.)
thanx man .. jus tried it . this application actually works .rockinnn
I can't seem to be able to install the .net Framework 2.o on my new T-Mobile MDA - USA (Wizard)
I get the same error from .cab install or activesynch install:
"Installation error. Stop all applications and processes, maximize all available storage space, and run installation again. Support info:4"
Any suggestions?
oops
PhoneGuy said:
I can't seem to be able to install the .net Framework 2.o on my new T-Mobile MDA - USA (Wizard)
I get the same error from .cab install or activesynch install:
"Installation error. Stop all applications and processes, maximize all available storage space, and run installation again. Support info:4"
Any suggestions?
Click to expand...
Click to collapse
Did you try to install it in the main storage or the storage card? Only install it in the main storage.
Yeah, the options were "Device" or "Storage Card".
I tried Devicce but no luck...
PhoneGuy said:
Yeah, the options were "Device" or "Storage Card".
I tried Devicce but no luck...
Click to expand...
Click to collapse
I've encountered the same when I first tried to install it on a storage card. Then, subsequent installs to the main memory didn't succeed either. A hard reset helped.
I have installed it and it seems to work well. My only concern is that it seems to use the notification application of the phone rather than the call list of the phone. The reason I say this is because it puts a calendar entry in when I miss a call then adds another entry when I check the notification of missed calls.
is this what is supposed to happen? would it send 2 text messages in this case (when the call comes in and when I check the notification that the call did come in)?
thanks,
Edwin
also, it seems if I am on the phone when I miss a call it uses the name of the person I was on the phone with and not the person I missed.
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
ethorn said:
is this what is supposed to happen? would it send 2 text messages in this case (when the call comes in and when I check the notification that the call did come in)?
Click to expand...
Click to collapse
That's what happens for me... I stopped using it because of the duplicated sms's...
meschle said:
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
Click to expand...
Click to collapse
Tried it. Keep getting "Cound not find resource assembly" error.
Strange works sweet for me.
this is the link I used
http://www.freewareppc.com/communication/callassistant.shtml
meschle said:
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
Click to expand...
Click to collapse
after using the Ruttensoft on my Qtek, i can no longer creat SMS, when I click on new, only a while screen appear, cannot input both phone number and Text.... did anyone meet the same ???
meschle said:
Strange works sweet for me.
this is the link I used
http://www.freewareppc.com/communication/callassistant.shtml
Click to expand...
Click to collapse
No it didn't... you didn't use this program. we are trying to give feedback to the author of this program which has so much more potential than the limited software you used.
No sms works for me even when activated. my qtek rom is 1.6.7.1 maybe that's the diff. Sorry ethorn could start a new thread if you like but may help some people if the other prog don't work for them.
Hi
I have a XDA 2i & a XDA Mini S and use a program called Do Not Disturb by Jguisoft, a very small footprint and easily configurable
no I am all for putting ideas of other products, but the way you worded it sounded like this program that Menneisyys worked on worked on your phone and that the version of his program you used was at another link.... my problem is that neither are true. Software Guru did things right and just introduced another alternative.
thanks guys
Software Guru said:
Hi
I have a XDA 2i & a XDA Mini S and use a program called Do Not Disturb by Jguisoft, a very small footprint and easily configurable
Click to expand...
Click to collapse
Can you provide a link? Did a google and no results found.
Cannot download the SMSNotifierSetup cab
Can someone please post this as i cannot seem to download it.
thanks

Shutdown an application on the PDA from PC

I developed a small application to commnicate from my PC with my PDA via WiFi
(based on the examples in VS2005)
So I can do the following:
Write a SMS on the PC and send it
Read the items from Pocket Outlook and display it on the PC
and so one
All the stuff working very well.
Now I want to shutdown the application on the PDA from the PC, because I'm very lazy.
So I've a method:
On_Close_Message_Received() {
this.Close();
}
Here I get an exception. The exception message is not very convenient,
I try to translate:
An exception message can't be shown, because the optional ressource of the assembly containing the exception message cant't be found.
How to call the method On_Close_Message_Received (via event handler from another thread) doesn't matter in this case, because I've tested that the method is really called.
In the FormClosing event I do all the work to stop communication and so one.
Has anybody an idea.
Thanks.
PS. Sorry for my bad English
Getting meaningful exception messages
In order to save space, .Net Compact Frame left out the text for exceptions. If you install the the "system resources" cab you can appropriate messages.
I think it's either System_SR_enu_wm.cab or System_SR_enu.cab for english. There are versions for other languages. For example, I think System_SR_de.cab is the German version.
If you have one of the .Net framework SDKs on your PC, you probably also have these files. Just search for them.
Good luck.
Thanks SeTok for this tipp. For my problem I got already a solution. I don't call
this.Close directly. With dllImport I call SendMessage and with ShowWindow I can Hide and Show the app on the PDA. One little problem still occurs. After hiding and again I'll show it, the app is still in the background. But I think that's a small problem and I'll find a solution. But it works really well.
Walter_vdV said:
Thanks SeTok for this tipp. For my problem I got already a solution. I don't call
this.Close directly. With dllImport I call SendMessage and with ShowWindow I can Hide and Show the app on the PDA. One little problem still occurs. After hiding and again I'll show it, the app is still in the background. But I think that's a small problem and I'll find a solution. But it works really well.
Click to expand...
Click to collapse
hi, i have a problem with my applications when i call on me.hide, i cannot call them back again using me.show
i think using SendMessage will do the trick for me.
if you dont mind, would you please post a code snippet from you application? Thank you

iSecretary - Answering Machine For WM6

Hi All,
I found this great app that acts as an answering machine but it is very buggy and does not play the outgoing msg for the caller calling in so that he/she knows to leave a msg, otherwise it works great. The app is called iSecretary. Can anyone here recommend a similar app or cann fix up this app?
Here is the info about the app below:
A lot of Windows Mobile users have been asking for answering machines for years. While it has long been available on competing mobile smartphone platforms (for example, Smart Answer for the S60), for Windows Mobile, so far, there wasn't a generic one - that is, one that wasn't shipped along with a specific Pocket PC model only.
Now, this seems to be changing: the first "real" answering machine has been released for WM Pocket PC's.
Two screenshots of the incoming, recorded calls:
(HTC Universal)
(HTC Wizard)
Features
- lifts the handset automatically when the preset time expires;
- plays the file to the caller;
- records your caller's message within the limits of preset time and hangs up;
- contact list filter (choose an individual wav for each contact);
- ignore list;
- compatible with speakerphone (for PDA whitch can not work with signal in line);
- autoload after SoftReset.
- Speakerphone volume control
- Microphone control (its work with some PDA, For example: ASUS P525).
- Black List, reject ringing (filtring by phone number).
Getting, installing
Get it HERE, unRAR it with, say, WinRAR, transfer the contents of it to your Pocket PC and run iSecretary.exe. You can safely minimize it / suspend the phone: whenever an incoming call arrives, the answering machine activates, plays the default message (you can easily change it in the Answer List tab, even in the non-registered version) and starts recording the caller's voice. If it can, that is - the same restrictions apply as with traditional call recorders like PMRecorder. .
Trial restrictions
With the trial version iSecretary 2.x, you can only use 2 second recordings.
After buying the activation key you will be able to use all the modefications of the 2.x version.
Freeware version
A freeware version of iSercretary 1.x you can get HERE.
Technical requirements:
200MHz ARM processor, Windows Mobile 5 or more, Compact FrameWork v2.
Tested devices:
- ASUS P525
- HTC Universal
- HTC Wizard
links dont work, and the screenshots neither
Guys, make sure you follow my articles in the Genral forum - particularly my reviews. I've reviewed this stuff a long ago and have always been posting update news.
Try Bizi app. Auto responder by SMS. As alternative to the answering machine.

New audio switch program for skype and others.

This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
Do not launch two or more instances of the program at the same time, could really mess things up. -- se the forum (thanks tucahara)
To stop the program, u must use a process manager.
it would be good if someone could make a cab to install it. -- done see the forum (thanks tucahara)
this is still a beta, I intend to make ajustments as people give feedback.
Thanks,
hope u like.
-----first update---
now, an file called "audioswitch_error.txt" in the root directory will hold the error messages.
------------ List - Working ------------
wizard - I tested
P3301 or P3300 - I tested
att tilt - I tested
touch 3452 and 3450
touch dual
touch cruise
touch HD
Sony Ericsson Xperia X1
BenQ E72
Titan --> see the forum
------------ List - NOT working ------------
T-Mobile Diamond
HTC Touch by Sprint
Samsung SGH-i780
------------------------------------------------------------------------------------
check the new thread at:
http://forum.xda-developers.com/showthread.php?t=502361
new aproach to do the switch and now open source, even with an class that others can improve and put in other apps...
Some people complain about me not openning the source of the app, I have just made this way because there was proprietary code inside and I had no time to rewrite it without the proprietary code.
I have made the best I could, and now I had some time and rewrite the app in open source, to those who only complain about it, get the code and make it better instead of complaining!
Thanks for all that encourage me to continue the work and helped the development.
will retire this project for while...
thanks u all.
Audioswitch for Skype
On HTC Touch by Sprint (CDMA, also known as Vogue), audioswitch does switch the audio in the Skype 2.5 windows mobile PPC from external speaker to handset. Unfortunately, the microphone is then also disabled. I hope you'll be able to tweak your audioswitch to resolve this.
Thank you so much for developing this wonderful applet. I'm sure you will have the gratitude of many frustrated Skype windows mobile users.
What really happens is that when the sound output is switched in some phones, the microphone gain changes too. This happens because the phone thinks it is a "normal call".
Most of the times the mic gain increases, but in your phone it must be decreasing. Try to figure out in registry where the mic gain controls are recorded and chage all of then to the same value. I had this issue with my P3301 and solved this way, but there is quite a time now and I do not remenber where are the reg keys to change, but I have found the information here in the forum.
I will try to figure out for other "hack" to solve this issue... thanks for reply.
doesn't work at T-Mobile Compact IV (aka Diamond)
Sound went to loudspeaker....
PS: fring last version working fine with sound at mine phone (without any additional programms). Sound is going to correct destination automatically
I just tried the latest version of Fring, which automatically switches audio to earpiece when call is connected.
The same issue occurs with the new Fring as I described above with your audioswitch program: I can hear audio through earpiece, but microphone doesn't work (or is inaudible).
I couldn't find a tweak or registry hack to correct this. Any help would be greatly appreciated.
MarceloFB said:
This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
it would be good if someone could make a cab to install it.
this is still a beta, I intend to make ajustments as people give feedback.
If someone like this program and wants to make an donation...
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4WLQVA6LTKWSL&lc=GB&item_name=marcelofb&item_number=marcelofbxdadonations&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
Thanks,
hope u like.
Click to expand...
Click to collapse
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
OOOH
If this program works on the new BenQ E72 I'm getting in a couple of days I'll certainly donate!
THANKYOUTHANKYOUTHANKYOU
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
baal_zebub said:
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
Click to expand...
Click to collapse
hehhehe, I made troca2, I will see if the switch code is the same or if I have made some mistake...
are u sure you have put the program in the correct directory?? I will make some modifications to have an error feedback. So u can see if something is wrong...
JKingDev said:
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
Click to expand...
Click to collapse
It is a good idea to use hook, I have not think of it!
I use a proprietary code included in a lib at the company I work for to make the "switch" but it is not different of what u find here in the forum.
Maybe we can make an effort to re-make it with hooks...
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
so to sum up the way i have it now (most files included) on my xperia x1:
1) installed skype
2) installed mortscript
3) add skypesoundswitch to \windows\....
3) add skype.mscr to \.... (root)
4) overwrite skype.lnk with the new skype.lnk in \windows\start menu\programs\..
in the way whenever i open skype(.lnk), it opens skype.mscr, this opens skypesoundswitch.exe and than skype.exe... when you close skype.exe it closes skypesoundswitch.exe...
it seems to work perfect.. but hey maybe i am doing something totally wrong here.. than just shout!
by the way, the .mscr and the .lnk files are offcourse edit-able .. so you can put the files everywhere you like..
madhijs said:
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
Click to expand...
Click to collapse
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you will have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch. Or please show me where to find details on how to code this myself. Thanks!
Hat off to both of you and really glad that we will have a much improved solution.
JKingDev said:
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch.
Click to expand...
Click to collapse
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
madhijs said:
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
Click to expand...
Click to collapse
Yes it must be run at startup but placing a link in your startup folder will make everything transparent to the user. I don't think there will be an effect at startup. In it's current form it must check every second (or whatever you set the timeout to), but its only a little bit of code. I am not really sure if that will really have an effect. The more often it checks the faster it will switch when you open skype, but also the more processor use. Check less often and it uses less processor, but there might be a delay in switching the audio. I proposed doing it by hooks though because this would use even less processor. The app will only check when a new window takes focus, rather than just periodically checking. This way it only checks when it needs to and will always switch instantly.
I am glad u liked the program.
I will try to answer most of the questions...
1- JKingDev:
I have though in your idea of using hooks, but if I use a hook, the program will have a loop anyway to check for the messages(hidden loop ;-) ), and it would have to have an "fake window" or something to process the messages. This way we have only one loop, in a very simple command line program with high optimization, so we have to think what is really the best way of doing it... I will pm u as soon I have any time to "program" again. hehe
2- people that uses mortscript with the old "troca2"
I will try to make a way to make this program work the same way as troca2, maybe with an "argc argv", wait the next update.
3- the battery life??
if u notice any battery life decreasing with the usage of the program, configure a bigger delay, maybe 5000ms, it is a matter of adjust the "timming" for each processor. Post your results here so others can find the optimum value for the delay in their phones.
4- have to start the program every reset?
yes, just put it in the startup folder.
maybe someone can make an cab that put the program in the right place and a link in the startup, it would be cool! I dont have an easy program to deal with cabs, and the vs projects for cabs.... I really cant make that thing work!!
well it is only the batterylife i was worried about. but i'll try running the phone this weekend with the program running and doing some skype.. lets see how it turns out!
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
weekendli said:
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
Click to expand...
Click to collapse
will check this, but people reported that worked in xperia... and it is running in my P3301... anyway, will check and post an wm6 build if it is the case... check the error file and see if it tells anything.
Other thing, this program uses low level api`s, so your windows MUST be fully unlocked for it to work in wm6.

Categories

Resources