In an earlier post I asked if the vg224 allows for JTAPI to do call control. The answer so far is kinda. It's necessary to make the vg224 a skinny gateway.
I can monitor and make calls no problem except for one circumstance. I have a security phone that sometimes gets bumped off hook for a period of time. This is an analog phone. I would like to be able to do a disconnect on the line and then make a call on it.
I try in the following code snippet to do this:
providerObserver = new MyProviderObserver ();
provider = peer.getProvider (providerName );
if ( provider != null )
provider.addObserver ( providerObserver);
term = provider.getTerminal(src);
addr = provider.getAddress(src);
conn = addr.getConnections();
When I attempt this I can hear a physical click on the analog line but it does not hangup. I was hoping a disconnect would be followed by dial tone so I can then author a call on the port.
1) You just have the loop current when an analog phone is off hook. I'm not so convinced you already have any Connection since those are created just when a call is being made (so once enough digits have been dialled and the call manager starts the call routing process).
2) A disconnect on an analog line imho needs a physical hook state change, and that's not something you can readily trigger via software (you'd need an IP controlled line breaker). And, FXS ports usually take some time in the on hook state until they declare the line cleared, so a really short current interruption won't be enough to trigger any change on the hook state.
And last but not least, why do you get the address from the provider and not the terminal? Not that this would have an effect on your attempt, but it seems more logical to me to get the device from the provider, then get the address from the terminal since this corresponds to the jtapi architecture.
SIP traces provide key information in troubleshooting SIP Trunks, SIP
endpoints and other SIP related issues. Even though these traces are in
clear text, these texts can be gibberish unless you understand fully
what they mean. This document attempts to br...
Please find the attached HTML document, download and open it on your PC.
This provides an easy to use form where you simply answer a few
questions and it will render the proper jabber-config.xml file for you
to copy/paste. There is built in logic to verif...
CUCM Database Replication is an area in which Cisco customers and
partners have asked for more in-depth training in being able to properly
assess a replication problem and potentially resolve an issue without
involving TAC. This document discusses the bas...