Solved

How to make PC to Answer Incoming Calls Using TAPI?

Posted on 2008-11-02
11
1,000 Views
Last Modified: 2013-12-21
Hi All,

        I am developing an windows application using C#.Net...I am using TAPI3Lib.dll and PCI SoftV92 Modem...
I got sample code from codeplex.com  (http://www.codeplex.com/C4FDevKit/SourceControl/FileView.aspx?itemId=178564&changeSetId=12121)...Form this Out Going Calls are working Properly....But when i try to make my PC to answer Incoming Calls it gives some problem....There was a class called TapiBase.cs..in which the CALL_STATE.CS_OFFERING event is not triggered....this event makes the incoming call to answer....Its showing the exception that "No Call is Connected"  even at the time phone rings..i think its not detecting the incoming calls.... Can any one help me to solve this problem...Please guide me with any other code or any link that contains solution for this problem...
0
Comment
Question by:godwindotnet
  • 5
  • 5
11 Comments
 
LVL 8

Accepted Solution

by:
arhame earned 500 total points
ID: 22876915
One simple step a lot of people overlook is making sure that call answering is setup on the modem.  By default this is set to off, or else (at least back when almost everybody had a modem hooked up to their home phone line) the modem would answer whenever anybody called the house.  If it's an external modem usually flipping one of the dipswitches and power cycling the modem will tell the modem to answer.  If it's internal you'll usually have to go into hyperterminal and issue it a command (what command varies with what chipset you're using).

So all this is going off the assumption that when they call, the modem doesn't pick up at all.  If you need help finding out exactly how get your modem to pick up the phone (You can even adjust what ring it'll pick up on using another setting) post the model/manufacturer of your modem and I'll do some research for ya.
0
 

Author Comment

by:godwindotnet
ID: 22883321
Hi,
  Thank U...For your reply...I am using D-Link Modem ( PCI SoftV92 Modem)...Manufacturer- CXT...it ll be more helpful if u guide me for this answering problem...
0
 
LVL 8

Expert Comment

by:arhame
ID: 22885797
Go to:
Start > Programs > Accessories > (Communication >) Hyperterminal .... Hyperterm.exe > name the connection "modem" > Connect Using... Select COM1 or COM2 (on which port the modem was assigned) > Bits per second 9600 > OK.

After that try typing ATZ command and press ENTER (you may not see what you are typing, just type it in anyway). The response from the modem should be OK.  If it's not 'OK' then you might have picked the wrong COM port when opening hyperterminal.  Close Hyperterminal and try again with the other COM port.
Then type in the following command:

ATS0=2&W

The response should be "OK"
The modem will now be set to auto-answer after 2 rings, if you want it to auto answer on a different ring just change the #2 to whatever ring you want, ie:

ATS0=1&W = auto answer on 1 ring
ATS0=5&W = auto answer on 5 rings

Hope this helps.

Dave
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 

Author Comment

by:godwindotnet
ID: 22973948
That works partially if i pass it through the modem initialization command..
Sometimes,it doesn;t work..
Would be nice if you could guide me if you know the solution..
Thanks
0
 
LVL 8

Expert Comment

by:arhame
ID: 22975623
You shouldn't need to, the &w should save it to the nvram on the modem.  Unless you have a really cheap modem that can't save it's settings and has to be passed them each time.

So you're saying it works fine if you follow my directions, but if you turn off the computer it stops working until you pass it the command again?
0
 

Author Comment

by:godwindotnet
ID: 22976263
Yes,It worked fine ....
But now,the story has totally turned different..
I struggled for more than a week analyzng why the calls aren't getting attended...
But then,I took the idea you gave me and put that command in the modem initialization in the advanced ettings under modem properties.....
And it worked perfectly fine.
At 1st,the problem was that the call was not getting attended at all

But now.....

I don't know what happened really...but....the call is always getting attended within a ring and that command has no effect  :-(
Even if I leave the initialization string blank,it gets attended...But this was not the case before!!!
I have no clue why.. and what could have possibly got changed...
Just pulling my hair on this....
Help me please....

And yes its a cheap D-lInk modem..

This is happening after everything worked fine for a moment....it worked perfectly as expected for a day!!....what could have possibly gone wrong?
Thanks
0
 
LVL 8

Expert Comment

by:arhame
ID: 22976511
Okay, trying to understand.  You say the call is always getting attended within a ring, so it's still answering the call - and you now do _not_ want it to answer the phone call anymore?  Is it that you want to change what ring it picks up on now?

I guess I"m having a hard time understanding the statement 'the call is always getting attended within a ring and that command has no effect'.  If the call is being attended isn't that what you want?

Just a little more clarification so I can understand what you want to happen that isn't happening please :)
0
 

Author Comment

by:godwindotnet
ID: 22977306
"'the call is always getting attended within a ring" means the call gets attended within ONE ring.
I want it to get attended only after 5 rings....


I tried ATS0=5&W ...it worked for one day...
After that,again...I'm facing a different problem....The command has no effect.
The call now gets attended immediately irrespective of the init commands I give.
0
 
LVL 8

Expert Comment

by:arhame
ID: 22977373
Try the command at&f1S0=5&w
0
 

Author Closing Comment

by:godwindotnet
ID: 31512607
That TIP you gave me was simply EXCELLENT.
Thank you for the time ...and sharing your knowledge...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to read text with RegEx... 2 26
Network Switches 3 26
Connectivity issues after power outage 5 36
VS 2013 installer,  Install, Update and uninstall via SCCM 6 26
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question