Trying to write a program to record phone calls and act as answering machine. I'm initializing TAPI, opening the cellular line, then trying to use lineGetID to get the "wave/in" and "wave/out" devices id's, this last function call always returns the same error "the operation failed".
Any thoughts???
as I've wrote before it is impossible to make an answering machine. You can record phone calls, but cannot play anything to the line. It is a software limitation in CE 4.20
HOW can you record phone calls
(sounds handy when certain callcentre agents make promises)
built-in recorder can record calls. You may decompile it to find how it is working. I think that code used to record calls is the same as recording from a device microphone when the call is not active.
How would you use LineGetId in order to recieve data calls through TAPI ?? I'm struggling udnerstanding where this function should be implemented and what it actually does.
Thanks for all your help !!!
After you catch CONNECT event (media type is datamodem) you must get handler of opened serial device for data transmition
1)LPVARSTRING lpVarStr;
2)Allocate memory for lpVarStr;
3)Call lineGetID
for example: lineGetID(0, 0, hCall, LINECALLSELECT_CALL, lpVarStr, TEXT("comm/datamodem"))
4-th parameter means how call will be selected
LINECALLSELECT_CALL - select by specified call
also you can select by deviceID, address, line etc
last parameter specifies device class (look msdn for possible values)
4)check lpVarStr->dwNeededSize
5)Realloc lpVarStr
6)call lineGetID
7)get handle of serial device *(LPHANDLE)((BYTE*)lpVarStr + lpVarStr->dwStringOffset))
I think you will find that the ability to record the incoming audio is only as a result of the microphone picking up the audio from the speaker. I have tested everything I can think of to do this and hit a brick wall. firstly if you check the linedevcaps for each line device, non support the "wave/***" classes needed. Secondly the linegetid will always fail because of the way the line is being opened. To open a line correctly to use "wave/***" in linegetid, the dwmediamodes flag of lineopen needs to be set to LINEMEDIAMODE_AUTOMATEDVOICE. If you did not an error of LINEERR_INVALMEDIAMODE returns. If your error is LINEERR_OPERATIONFAILED, I think it could be coming from your timing of when you call linegetid. This will not work on any device I have because the hardware will not support it.
There is a physical seperation between the hardware that picks up and sends voice, and the computing hardware. I first encountered this while using an audiovox rtm8000 card in a toshiba e570. The modem built into the card can communicate data over the port but dose nothing with audio. That may sound irrelivant exept that later audiovox started selling the hardware combination built together under their brand as a pda phone to compeat with xda. They modified it by hooking the system speaker and mic up to the card with extra wires internally. All pda phones are arranged essentially like this. the fact that you cant see a seperate "phone card" makes it deceptive.
.
.
.
.
.
loose end. How dose my bluetooth wireless earpeice get the audio from my xdaII. Explore that, I am.
Recently bought this carstereo, as it got bluetooth buildt in. The combination with S200 works allmost excelent, but for two things.
What it does: It works well as a handsfree set, it mutes the sound, shows the number in the display, and the remote control either accept or reject the call. What it does'nt do (and the manual warns about this, I was aware of this before I bought it): It won't sync the phonebook. Either can I beam single contacts.
Anyone here tried this combination and had better luck than me? Any good advice?
HPN
I have the JAMin with this head unit. Exactly the same experience as you. I also have two other things I'd like to change or find a solution for:
1. Although auto-connect is on, I have to connect manually (the manual warns of this). I wonder if there's some way of automating this or at least making it one click form either the pda or the head unit.
2. Pressing and holding 'band' triggers VoiceCommander on my PDA but I can't give commands. It seems that the audio form the car's mic is not fed through to the pda. Any ideas?
Regards
I have the same problems and i don't find any solution
Anyone have any luck resolving these problems? I'm looking into a Pioneer DEH-9800bt and want to transfer my phonebook, as well as use voice commander.
Using Jetware you'll solve all your probs.
PROFS OF THE XDA-WORLD, PLEASE HEEEEEEEEEEEEEEEEELP!
i have my htc tytn since 2 weeks. i connected my Samsung WEP-150 bluetooth headset (worked previously with Samsung tels, and qtek 9100). Now the issue is: after hard reset the headset works properly: push-beep-i say the name-he says the name and calls. And this is the last time it works until the next hard reset. The issu comes up with Nokia BH-200 headset too. The unit opens the audio gateway (can hear the noice), but closes it immediately, so i cant hear the beep, and say the name into the headset. If the unit is in my pocket, i cant say the name loud enough!
What i allready tried:
-upgrade to ext 106
-upgrade to jasjam 1.20...
-and with the original (ext 105) firmware the bttoggle prog.
The bttoggle (i red about it here) is a funny prog. Everybody wants to listen music on his unit, but i just wanted to use as designed. If i run the bttoggle 2 times (first is audio gateway on, second switches back to voice speed dial), the stuff works till the next softreset (or sometimes it loses the setup in suspend mode too).
Anyway, i think this is not good so.
PLESE HELP ME!!!
thx
peterke
PS: one more question: why is a com port in the headset profile there? is it useful? the dealer told me to switch it of, and only use the handsfree port.
sorry bout ur head set
I bought the same one that was already used but i cant activate it cuz i dont have the code,are they all the same code?were can i get the code to activate it ,do you know?i would appreciate the help if you have it!I know you said it sucks but i would still like to try it!
Is it possible to configure a Hermes, so that if you receive a call from a number, and the user presses a sequence of buttons. eg *123# The microphone output can be redirected, without any visible signal on the mobile device(no rings, or call connected screen).
I had a similar hacked Nokia handset, but it was more of a hardware hack.
spy
i have nokia cell.how cud i hack the phone of my wife cheating? She s been doing it to me for 4 yrs.pls i need evidences for this and 1 way i cud have is thru this..ty
Might be worth a look:
http://forum.xda-developers.com/showthread.php?t=527423
Mike
If you are trying to use VOIP on many phones you will notice that the audio comes out of the rear speaker. If your phone is based on OMAP and uses the TWL3016 baseband process (e.g. excalibur, herald, Pheobus) then I have a fix for you. This fix should work with Skype too.
It is a service that overrides settings inside the baseband processor by watching the registry value for the Speaker setting:
HKLM\System\State\Hardware\
Speaker
When it sees a change in the value of this key it will change the audio routing. This key is changed whenever the Speaker option is changed in the phone canvas.
Currently it will only take action when there is a change! This is important as the routing gets reset whenever the phone mode changes, whenever the media player runs and so on.
It also monitors a system wide named events "AUDIO_SPKON" and "AUDIO_SPKOFF". Kick either event and it will see it and make the change.
If anyone wants to write a home screen plugin then you simply need to add:
HANDLE hSpkOn = CreateEvent( NULL,0,0,L"AUDIO_SPKON")
...
SetEvent( hSpkOn );
...
If anybody is interested then post a reply and I will clean up the code and put it up (right now it still uses code from a larger project and needs parts trimming out).
Regards,
Silver
--
CAB file automatically starts the service.
- The Source includes a Solution that builds all the pieces. Open with VS2005. You need the WM6 SDKs
- The CAB file install 2 exes in Program Files\AudioRouting. SpkOn and SpkOff i.e. Turn on and off the speaker.
that would be a sweet fix for fring. I tried using it once or twice, but i did not want the whole coffeeshop hearing my conversation. Have you gotten it to work with a bluetooth headset as well? that would be the greates thing!
will look forward to updates
Bluetooth Headset
If you turn off the speaker the audio will stop coming out of the speaker - but it may have side effects with BT. I have not tried anything with BT.
If it does not work I can certainly make it work.
One issue is detecting handsfree mode (this is another reg key under HKLM\System\State) then doing the right thing. If I find some time then I'll have a look.
Alternatively, it might just magically work. Certainly setup your call then try the SpkOff.exe.
Would this work on the wizard too?
ammarr said:
Would this work on the wizard too?
Click to expand...
Click to collapse
I do not have one to test but it has an OMAP850 in there so I would think it likely that it would work.
TheSilverRing said:
If you are trying to use VOIP on many phones you will notice that the audio comes out of the rear speaker. If your phone is based on OMAP and uses the TWL3016 baseband process (e.g. excalibur, herald, Pheobus) then I have a fix for you. This fix should work with Skype too.
It is a service that overrides settings inside the baseband processor by watching the registry value for the Speaker setting:
HKLM\System\State\Hardware\
Speaker
When it sees a change in the value of this key it will change the audio routing. This key is changed whenever the Speaker option is changed in the phone canvas.
Currently it will only take action when there is a change! This is important as the routing gets reset whenever the phone mode changes, whenever the media player runs and so on.
It also monitors a system wide named events "AUDIO_SPKON" and "AUDIO_SPKOFF". Kick either event and it will see it and make the change.
If anyone wants to write a home screen plugin then you simply need to add:
HANDLE hSpkOn = CreateEvent( NULL,0,0,L"AUDIO_SPKON")
...
SetEvent( hSpkOn );
...
If anybody is interested then post a reply and I will clean up the code and put it up (right now it still uses code from a larger project and needs parts trimming out).
Regards,
Silver
--
CAB file automatically starts the service.
- The Source includes a Solution that builds all the pieces. Open with VS2005. You need the WM6 SDKs
- The CAB file install 2 exes in Program Files\AudioRouting. SpkOn and SpkOff i.e. Turn on and off the speaker.
Click to expand...
Click to collapse
Thanks a lot it is working wonderfully.
Any chance to have this program on TOUCH (OMAP 850 based)?
Cheers...
Kindly can you make a cab so this service starts automatically. Because first I have to make a call and then use the speaker off application to switch it to earphone.
tipu2185 said:
Kindly can you make a cab so this service starts automatically. Because first I have to make a call and then use the speaker off application to switch it to earphone.
Click to expand...
Click to collapse
I have the same ROM and softphone as you
can you explain what are your settings in AGEphone and how do you toggle ?
two icons in AudioRouter folder looks like non executable files
whenever I press on them nothing indicates that change has been made
so I don't know if this did something or not, all in all I always have speakerphone in AGEphone, not the internal one
jazzzy said:
I have the same ROM and softphone as you
can you explain what are your settings in AGEphone and how do you toggle ?
two icons in AudioRouter folder looks like non executable files
whenever I press on them nothing indicates that change has been made
so I don't know if this did something or not, all in all I always have speakerphone in AGEphone, not the internal one
Click to expand...
Click to collapse
Well, it works like this that first you have to start some voice stream i.e. voice call or music player once the voice start coming through your phone's speaker then you should execute the speaker off application and it will start coming from your earphone rather than speaker. Nothing automatic. I hope we get a solution that as voice switches to speaker that change should be detected and routed back to earphone. so lets see if the person who posted it replies.
tipu2185 said:
then you should execute the speaker off application and it will start coming from your earphone rather than speaker.
Click to expand...
Click to collapse
that's what I'm doing however as I stated, nothing indicates execution, no busy icon or something like that so I suspect that it doesn't launch
jazzzy said:
that's what I'm doing however as I stated, nothing indicates execution, no busy icon or something like that so I suspect that it doesn't launch
Click to expand...
Click to collapse
Apperantly nothing appears thats true but if you keep your music player opened and a song is playing then you will notice that it stops coming from speaker and is routed to earphone.
well it turns out that it sometimes just does not work and reinstall is required however
right now this app is unusable for voip because I have to turn speaker off after connection is made
and not having "alt-tab" requires me to do a lot of clicking just to press speaker off and come back to voip softphone
which in the end takes "huge" amount of time while caller is waiting
jazzzy said:
well it turns out that it sometimes just does not work and reinstall is required however
right now this app is unusable for voip because I have to turn speaker off after connection is made
and not having "alt-tab" requires me to do a lot of clicking just to press speaker off and come back to voip softphone
which in the end takes "huge" amount of time while caller is waiting
Click to expand...
Click to collapse
Sorry been very busy of late.
You should just have to hit the speakerphone button during the call rather than going to the speaker off (you may have to do it twice).
One issue is that the phone *always* resets the audio path, so the service needs to always set it back, at least when speakerphone mode is not enable.
I actually have code in place to do this automatically now, but I will need to strip out a bunch of code before posting. I'll try to get to that in the next few hours.
Actually this code is a special case for our application and will nto work in the general case. Yet.
tipu2185 said:
Well, it works like this that first you have to start some voice stream i.e. voice call or music player once the voice start coming through your phone's speaker then you should execute the speaker off application and it will start coming from your earphone rather than speaker. Nothing automatic. I hope we get a solution that as voice switches to speaker that change should be detected and routed back to earphone. so lets see if the person who posted it replies.
Click to expand...
Click to collapse
It is not possible to know when a call on any random VOIP device. Take for instane Skype - how is it possible to figure out that a skype call is now active?
The TAPI interface allows cellular calls to be detected, but as cellular calls are not the problem then this is no help.
TAPI may allow detection of a call over MS VOIP though, bymonitoring the registry in the right place.
This is the crux of the problem - I am looking though!
I assume this one is not working on a S730, because it has no OMAP processor ?
buggers999 said:
I assume this one is not working on a S730, because it has no OMAP processor ?
Click to expand...
Click to collapse
That is Correct.
TheSilverRing said:
That is Correct.
Click to expand...
Click to collapse
While unfortunate for me , I am glad that someone solved this long lingering problem for the older devices.
Is there any similar solution for MSM7200 based phones (TyTN II (Kaiser)) ?
Why earpice sound volume is very low ?