When i run the demo app TAPI on 3 computer, it always fire an error
"A resource needed to fulfill the request is not available" Error code 8000004Bh
Except my laptop. Everything is ok!!
So why and how can i solve this problem??
Hello
Possible your TAPI device is already busy by other app or service.
You can try to open the from standard windows tool: HyperTerminal.
And we need more information about your Windows versions on problem PCs and on laptop.
If you can please upload modem log files from problem machines. Usual It has name like following:
C:\WINDOWS\ModemLog_*.txt
Roman Novgorodov
I run 2 TAPI app on my laptop (A) and desktop (B).
1. On laptop, i can make call, wait for call, transfer file OK
2. On desktop, i can only wait for call and transfer file. I can't make call even when i tested with HyperTerminal, everything is ok.
Here the modem log file on my desktop:
11-11-2009 13:00:33.109 - File: C:\WINDOWS\system32\tapisrv.dll, Version 5.1.2600
11-11-2009 13:00:33.125 - File: C:\WINDOWS\system32\unimdm.tsp, Version 5.1.2600
11-11-2009 13:00:33.125 - File: C:\WINDOWS\system32\unimdmat.dll, Version 5.1.2600
11-11-2009 13:00:33.125 - File: C:\WINDOWS\system32\uniplat.dll, Version 5.1.2600
11-11-2009 13:00:33.125 - File: C:\WINDOWS\system32\drivers\modem.sys, Version 5.1.2600
11-11-2009 13:00:33.125 - File: C:\WINDOWS\system32\modemui.dll, Version 5.1.2600
11-11-2009 13:00:33.125 - File: C:\WINDOWS\system32\mdminst.dll, Version 5.1.2600
11-11-2009 13:00:33.125 - Modem type: Standard 56000 bps Modem
11-11-2009 13:00:33.125 - Modem inf path: mdmgen.inf
11-11-2009 13:00:33.125 - Modem inf section: Gen556F
11-11-2009 13:00:33.125 - Matching hardware ID: moto1_gen
11-11-2009 13:00:33.125 - 115200,8,N,1, ctsfl=1, rtsctl=2
11-11-2009 13:00:33.125 - Initializing modem.
11-11-2009 13:00:33.140 - Send: AT<cr>
11-11-2009 13:00:33.171 - Recv: <cr><lf>OK<cr><lf>
11-11-2009 13:00:33.171 - Interpreted response: OK
11-11-2009 13:00:33.187 - Send: AT&FE0V1&C1&D2S95=47S0=0<cr>
11-11-2009 13:00:33.234 - Recv: <cr><lf>OK<cr><lf>
11-11-2009 13:00:33.234 - Interpreted response: OK
11-11-2009 13:00:33.250 - Send: ATS7=60L0M1&K3N1X4<cr>
11-11-2009 13:00:33.281 - Recv: <cr><lf>OK<cr><lf>
11-11-2009 13:00:33.281 - Interpreted response: OK
11-11-2009 13:00:33.281 - 115200,8,N,1, ctsfl=1, rtsctl=2
11-11-2009 13:00:33.281 - Initializing modem.
11-11-2009 13:00:33.296 - Send: AT<cr>
11-11-2009 13:00:33.328 - Recv: <cr><lf>OK<cr><lf>
11-11-2009 13:00:33.328 - Interpreted response: OK
11-11-2009 13:00:33.343 - Send: AT&FE0V1&C1&D2S95=47S0=0<cr>
11-11-2009 13:00:33.390 - Recv: <cr><lf>OK<cr><lf>
11-11-2009 13:00:33.390 - Interpreted response: OK
11-11-2009 13:00:33.406 - Send: ATS7=60L0M1&K3N0X4<cr>
11-11-2009 13:00:33.437 - Recv: <cr><lf>ERROR<cr><lf>
11-11-2009 13:00:33.437 - Interpreted response: Error
11-11-2009 13:00:33.437 - Session Statistics:
11-11-2009 13:00:33.437 - Reads : 21 bytes
11-11-2009 13:00:33.437 - Writes: 47 bytes
Don't have any solution??? ??? :(
Hello
Thank you for infomration.
I'm sure that your modem is busy by other service. Please open Administration\Service and try to find and turn off something related with TAPI, modem or RAS (remote access) and etc.
We will try to reproduce your problem on our side.
Roman Novgorodov
Thanks for your reply. I checked all services in my computer but found nothing relared TAPI except Telephony service. I can use HyperTerminal or an app. named Dialer in Microsoft SDK to make call or receive call OK.
With TAPI app, i can only set modem in wait for call mode.
Wait for your next reply. Thanks
Hello
Please show me a modem log file (like above) after successfull call from HyperTerminal. If possible.
Roman Novgorodov
Here the modem log after perform a successful session between A(Tapi app on laptop) and B (HyperTerminal- Desktop)
A&B both use Windows XP SP3. This logfile belongs to B, same above
11-18-2009 16:41:10.718 - File: C:\WINDOWS\system32\tapisrv.dll, Version 5.1.2600
11-18-2009 16:41:10.718 - File: C:\WINDOWS\system32\unimdm.tsp, Version 5.1.2600
11-18-2009 16:41:10.718 - File: C:\WINDOWS\system32\unimdmat.dll, Version 5.1.2600
11-18-2009 16:41:10.718 - File: C:\WINDOWS\system32\uniplat.dll, Version 5.1.2600
11-18-2009 16:41:10.718 - File: C:\WINDOWS\system32\drivers\modem.sys, Version 5.1.2600
11-18-2009 16:41:10.718 - File: C:\WINDOWS\system32\modemui.dll, Version 5.1.2600
11-18-2009 16:41:10.718 - File: C:\WINDOWS\system32\mdminst.dll, Version 5.1.2600
11-18-2009 16:41:10.718 - Modem type: Standard 56000 bps Modem
11-18-2009 16:41:10.718 - Modem inf path: mdmgen.inf
11-18-2009 16:41:10.718 - Modem inf section: Gen556F
11-18-2009 16:41:10.718 - Matching hardware ID: moto1_gen
11-18-2009 16:41:10.718 - 115200,8,N,1, ctsfl=1, rtsctl=2
11-18-2009 16:41:10.718 - Initializing modem.
11-18-2009 16:41:10.734 - Send: AT<cr>
11-18-2009 16:41:10.765 - Recv: <cr><lf>OK<cr><lf>
11-18-2009 16:41:10.765 - Interpreted response: OK
11-18-2009 16:41:10.781 - Send: AT&FE0V1&C1&D2S95=47S0=0<cr>
11-18-2009 16:41:10.828 - Recv: <cr><lf>OK<cr><lf>
11-18-2009 16:41:10.828 - Interpreted response: OK
11-18-2009 16:41:10.843 - Send: ATS7=60L0M1&K3N1X4<cr>
11-18-2009 16:41:10.875 - Recv: <cr><lf>OK<cr><lf>
11-18-2009 16:41:10.875 - Interpreted response: OK
11-18-2009 16:41:10.875 - Dialing.
11-18-2009 16:41:10.890 - Send: ATDT##<cr>
11-18-2009 16:41:36.062 - Recv: <cr><lf>+MCR: V34<cr><lf><cr>
11-18-2009 16:41:36.062 - Unknown Response
11-18-2009 16:41:36.062 - Recv: <lf>+MRR: 33600,33600<cr><lf>
11-18-2009 16:41:36.062 - Unknown Response
11-18-2009 16:41:36.781 - Recv: <cr><lf>+ER: LAPM<cr><lf><cr>
11-18-2009 16:41:36.781 - An unknown response was received while attempting to connect, but CD was high so completing successfully
11-18-2009 16:41:36.781 - Connection established at 115200bps.
11-18-2009 16:41:36.781 - Error-control off or unknown.
11-18-2009 16:41:36.781 - Data compression off or unknown.
11-18-2009 16:42:06.781 - Read: Total: 98, Per/Sec: 0, Written: Total: 54, Per/Sec: 0
When trace to the code, in unit nrcommtapi.pas, procedure TnrCommTAPI.Call
after this function:
LastTAPIResult:=lineMakeCall(hLine,hCall,
PChar(fDialableNumber),
TrOut^.dwDestCountry,@LineParams);
The hLine value always return less than zero.
Hello
Please try new TAPI demo from attachment to make call.
Roman Novgorodov
Sorry for the late reply. I'm so busy :D
I test your new tapi demo on my desktop but it fires a message
TAPI error code (80000016h)
Invalid bearer mode
So what can i do now?
Hello
Thank you for your information.
You are right the tapi demo from attachment does not help in your problem.
We have done some more deep tests. All works fine on our side.
It seems like your modem device is not compatible with default modem driver that you are using.
I recommend to find and install correct manufacturer driver for your device.
If it is impossible read following:
I see that your modem device does not support following initialization command:
Quote
11-11-2009 13:00:33.406 - Send: ATS7=60L0M1&K3N0X4<cr>
11-11-2009 13:00:33.437 - Recv: <cr><lf>ERROR<cr><lf>
You can try repeat following steps:
1) Run regedit.
2) Open search dialog (Ctrl+F)
3) Search string: SpeedNegotiation_Off
4) Regedit will find registry string value N0
5) Change this value on N1 and save
6) Repeat steps 3,4,5 while search is success
Now you can try to make call again.
Good luck! and Please let me know the result.
Roman Novgorodov
Great!!! Now i can make call perfectly. But how can i make the app changes automatically this value when the modem isn't support "SpeedNegotiation"?
Because this app is used by my partner everywhere and not all of them have enough computer knowledge to do such thing like search or modify in registry.
Anyway thanks so much for your response ;D