Im trying to hack DesktopCall to dial a number, play a wave, then wait for a DMTF response.
My debug code is indicating that its playing the file before the destination number has picked up, but Im not hearing anything when the destination number has picked up.
any ideas?
public void callChangedEvent(CallEv evlist[])
{
for (int i = 0; i < evlist.length; i++) {
CallEv ev = evlist[i];
/*
* When the TerminalConnection associated with the local Terminal is
* create we want to set it up for source and destinations of the
* voice media.
*/
TerminalConnection tc = ((TermConnEv)ev).getTerminalConnection();
MediaTerminalConnection mtc = (MediaTerminalConnection)tc;
switch(ev.getID())
{
case TermConnCreatedEv.ID:
System.out.println("TermConnCreatedEv");
try{
mtc.usePlayURL(new URL("file:./Greeting.wav"));
}catch(Exception e){}
break;
case MediaTermConnAvailableEv.ID:
System.out.println("Bleh. Play money");
try{
//mtc.startPlaying();
}catch(Exception e){}
break;
case MediaTermConnStateEv.ID:
int state = mtc.getMediaState();
state = state & MediaTerminalConnection.PLAYING;
Most modems don't do call progress analysis (CPA) so they report connected immediately after dialing. If you want to wait until the other end picks up you need an expensive modem or a voice card that does CPA.
Thanks
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem as Adam and ZipFruder. I am using an Intel 536 EP modem. It has Call progress monitoring. However I get "CONNECTED" status as soon as I finish dialing and not when the person at the other end picks up.
Pls can u tell me what I am missing.
Thanks.
-Vishal
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Apparently you guys didn't read my message or I am missing something...
Hmm... Without going into a really long explanation if your using TAPI with the default TSP then any CPA stuff is shut off by default. You can change the reg keys. I answered this on the TAPI mailing list a few years ago, maybe search there for more details?
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi I am having the same problem: I can't find an event that fires when an outbound call is answered at the other end. I have re-set the value of AT+vra, and at+vrn, per Steve's suggestion, But it appears not working. I am using a very old voice modem Creative Modem Blaster Flash56 DE5620-3.And here is the part of mstapi.log
16:18:40.625 8 Will place call from line 0 to 7148290. connectCall @ XProvider.cpp:371
16:18:40.625 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:18:40.625 8 LineCallBackProc. dwMessage: 12 LineCallBackProc @ XProvider.cpp:140
16:18:40.625 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:18:40.625 8 LineCallBackProc. dwMessage: 2 LineCallBackProc @ XProvider.cpp:140
16:18:40.625 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:18:40.625 8 LineCallBackProc. dwMessage: 2 LineCallBackProc @ XProvider.cpp:140
16:18:40.625 8 lineMakeCall returned -> 65818 connectCall @ XProvider.cpp:391
16:18:40.625 8 Waited 0 milliseconds for lineMakeCall connectCall @ XProvider.cpp:409
16:18:40.625 8 hCall = -> 66519 connectCall @ XProvider.cpp:412
16:19:15.765 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:19:15.765 8 LineCallBackProc. dwMessage: 2 LineCallBackProc @ XProvider.cpp:140
16:20:10.203 8 DLL_PROCESS_DETACH DllMain @ XProvider.cpp:739
Any one can help me? I am so frustrated.
Thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Plz where I have o put xtapi.inf file and how to
configure.
I want to run sample program Outcall.java
I amble to compile but when I run program it shows
following error:
Can't get Provider:
javax.telephony.JtapiPeerUnavailableException:
JtapiPeer: ne
t.xtapi.XJtapiPeer could not be instantiated.
Plz reply as early as Possible
Thanks take care
Madan Singh
madan25251@yaho.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im trying to hack DesktopCall to dial a number, play a wave, then wait for a DMTF response.
My debug code is indicating that its playing the file before the destination number has picked up, but Im not hearing anything when the destination number has picked up.
any ideas?
public void callChangedEvent(CallEv evlist[])
{
for (int i = 0; i < evlist.length; i++) {
CallEv ev = evlist[i];
/*
* When the TerminalConnection associated with the local Terminal is
* create we want to set it up for source and destinations of the
* voice media.
*/
TerminalConnection tc = ((TermConnEv)ev).getTerminalConnection();
MediaTerminalConnection mtc = (MediaTerminalConnection)tc;
switch(ev.getID())
{
case TermConnCreatedEv.ID:
System.out.println("TermConnCreatedEv");
try{
mtc.usePlayURL(new URL("file:./Greeting.wav"));
}catch(Exception e){}
break;
case MediaTermConnAvailableEv.ID:
System.out.println("Bleh. Play money");
try{
//mtc.startPlaying();
}catch(Exception e){}
break;
case MediaTermConnStateEv.ID:
int state = mtc.getMediaState();
state = state & MediaTerminalConnection.PLAYING;
if (state ==0)
{
mtc.stopPlaying();
}
else
{
System.out.println("Is Playing");
}
break;
case ConnConnectedEv.ID:
System.out.println("COnnected");
try{
mtc.startPlaying();
}catch(Exception e){}
break;
}
}}
}
Hi:
Most modems don't do call progress analysis (CPA) so they report connected immediately after dialing. If you want to wait until the other end picks up you need an expensive modem or a voice card that does CPA.
Thanks
Steve
Bleh, the evils of free hardware.
Hi zipfruder ,
Just wondering if you have had any luck on this front?
I am trying to do a similar thing, however I can't find an event that fires when an outbound call is answered at the other end.
I can make a call, and start playing an audio file but the audio starts playing at the connection event.
Cheers,
Adam
Hi Steve,
I have the same problem as Adam and ZipFruder. I am using an Intel 536 EP modem. It has Call progress monitoring. However I get "CONNECTED" status as soon as I finish dialing and not when the person at the other end picks up.
Pls can u tell me what I am missing.
Thanks.
-Vishal
Hi:
I have decided my first answer was lame...
Here is a thread to read that I posted to a few years back..
http://groups-beta.google.com/group/microsoft.public.win32.programmer.tapi/browse_thread/thread/99892880a75d7406/fcc3a4ec25d9e6f7?q=tapi+steve+call+progress&_done=%2Fgroups%3Fq%3Dtapi+steve+call+progress%26hl%3Den%26&_doneTitle=Back+to+Search&&d#fcc3a4ec25d9e6f7
Steve
Hi:
Apparently you guys didn't read my message or I am missing something...
Hmm... Without going into a really long explanation if your using TAPI with the default TSP then any CPA stuff is shut off by default. You can change the reg keys. I answered this on the TAPI mailing list a few years ago, maybe search there for more details?
Steve
Hi I am having the same problem: I can't find an event that fires when an outbound call is answered at the other end. I have re-set the value of AT+vra, and at+vrn, per Steve's suggestion, But it appears not working. I am using a very old voice modem Creative Modem Blaster Flash56 DE5620-3.And here is the part of mstapi.log
16:18:40.625 8 Will place call from line 0 to 7148290. connectCall @ XProvider.cpp:371
16:18:40.625 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:18:40.625 8 LineCallBackProc. dwMessage: 12 LineCallBackProc @ XProvider.cpp:140
16:18:40.625 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:18:40.625 8 LineCallBackProc. dwMessage: 2 LineCallBackProc @ XProvider.cpp:140
16:18:40.625 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:18:40.625 8 LineCallBackProc. dwMessage: 2 LineCallBackProc @ XProvider.cpp:140
16:18:40.625 8 lineMakeCall returned -> 65818 connectCall @ XProvider.cpp:391
16:18:40.625 8 Waited 0 milliseconds for lineMakeCall connectCall @ XProvider.cpp:409
16:18:40.625 8 hCall = -> 66519 connectCall @ XProvider.cpp:412
16:19:15.765 0 Could not find callback method! LineCallBackProc @ XProvider.cpp:130
16:19:15.765 8 LineCallBackProc. dwMessage: 2 LineCallBackProc @ XProvider.cpp:140
16:20:10.203 8 DLL_PROCESS_DETACH DllMain @ XProvider.cpp:739
Any one can help me? I am so frustrated.
Thanks,
Hi Friend,
Can u plz help me As I am new to XTAPi.
Plz where I have o put xtapi.inf file and how to
configure.
I want to run sample program Outcall.java
I amble to compile but when I run program it shows
following error:
Can't get Provider:
javax.telephony.JtapiPeerUnavailableException:
JtapiPeer: ne
t.xtapi.XJtapiPeer could not be instantiated.
Plz reply as early as Possible
Thanks take care
Madan Singh
madan25251@yaho.com