Unable to receive incoming call using GJTAPI

Jon Gadzik <[email protected]>
Newsgroups gmane.comp.java.sun.jtapi
Message-ID <LISTSERV%[email protected]>
Hello,

I am currently am unable to receive an incoming call in my JTAPI / GJTAPI
application.  I registered a ConnectionListener with an Address object,
expecting to receive a callback from the connectionAlerting() method upon an
incoming call; however, this callback method is never being invoked.  Does
anyone know why this is happening?

If the following information helps,

-  I am using the Hayes Accura External V.92 Voice/Faxmodem (the one for
which GJTAPI supports), running off COM 1

-  I am using JTAPI 1.3 and GJTAPI 1.7

-  modem.props contains properties:
     Serial = COM1
     Address1 = 16177985423
-  (the Terminal object's name is "COM1" and the Address object's name is
"16177985423")

-  placing an outgoing call works fine;  I can use the Provider's
createCall() method to create a Call object, then use its connect() method
to call outside lines successfully.  No problems.

-  the actual modem detects the incoming signal; when I call the number, the
AA (auto answer) modem light starts to flash.

-  this problem occurs regardless of whether I place calls from a wireless
cell phone or a separate land land (I don't think this should matter, but I
thought I would mention it anyways)

-  the application can properly locate the GTAPI JtapiPeer and Provider
implementations

-  the application does not throw any exceptions

-  although the Address object currently uses a ConnectionListener, I have
the same problem if I register a CallListener or a CallObserver

-  below is the code that should handle the incoming calls:

try {
  JtapiPeer peer = JtapiPeerFactory.getJtapiPeer(
     "net.sourceforge.gjtapi.GenericJtapiPeer" );

  Provider provider = peer.getProvider(
     "net.sourceforge.gjtapi.raw.modem.ModemProvider" );

  Address address = provider.getAddress( "16177985423" );
  address.addCallListener( new ConnectionListenerImpl() );
}
catch ( Exception exception ) {
   exception.printStackTrace();
}

...

public class ConnectionListenerImpl implements ConnectionListener {
   public void connectionAlerting(ConnectionEvent arg0) {
      System.err.println( "I should see this text when I call, but the
method is never invoked." );
   }

   // ... other ConnectionListener functions, none of which are invoked ....
}


Any help would be appreciated.

Thanks,

  - Jon

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JTAPI-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.