Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
JTAPI (JTAPI) Developer Center
Overview
Documentation
Community
Wiki
Testing
Everything
This Site
Blogs
9.1 JTAPI Documentation Now Available
Prem Bejjam
09 Jan 2013
Unified Communications 9.0 Partner Bundle Offer Now Available to Order
Amanda Whaley
21 Sep 2012
Developer Partner 2012 US Update Presentations Available
George Gary
29 Jun 2012
Developer Partner 2012 London Update Presentations Available
George Gary
10 Feb 2012
Unified Communication 8.6 NFR Bundle Now Orderable
George Gary
22 Aug 2011
Showing 1 - 5 of 30 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
3
4
5
6
of 6
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to Cisco JTAPI Questions
InvalidStateExceptionImpl: Could not meet post conditions of generateDTMF()
Threads [
Previous
|
Next
]
JOSHUA CALDWELL
Posts:
1
Join Date:
6/20/08
Recent Posts
InvalidStateExceptionImpl: Could not meet post conditions of generateDTMF()
Answer
9/21/12 4:41 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I am working on an IVR program and I am having an unexplained error when I try to send DTMF. I am only sending my DTMF string after I first receive a '#' tone from the other end. When the '#' is received the program correclty tries to send my DTMF string as shown below.
try{
CiscoCall call = (CiscoCall)((MediaTermConnDtmfEv)ce).getCall();
TerminalConnection tc = call.getCallingTerminal().getTerminalConnections()[1];
((MediaTerminalConnection)tc).generateDtmf(message);
}
catch(Exception e){
LOG.error(e);
throw new TransferCallException(
"Unable to play dtmf message",
TransferCallError.UNABLE_TO_PLAY_DTMF,
e
);
}
Every time the program reaches the line with "generateDtmf(message)" it throws the following error:
InvalidStateExceptionImpl: Could not meet post conditions of generateDTMF()
Can anyone tell me what the post conditions are of generateDtmf()? Has anyone had success resolving this error?
Java version: 1.6
Call manager: 7.1.5.34900-7
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Alexander Anikin
Posts:
7
Join Date:
8/23/12
Recent Posts
RE: InvalidStateExceptionImpl: Could not meet post conditions of generateDT
Answer
9/26/12 9:28 AM as a reply to JOSHUA CALDWELL.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
You code needs a lot of things:
* you have terminal and address observers on voice port/terminal
* you have 2 (and only 2) calls in progress on said terminal/address, second call is outgoing
* you do not receive # on incoming call, only on outgoing call
Is it the case?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available