<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>InvalidStateExceptionImpl: Could not meet post conditions of generateDTMF()</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6571063" />
  <subtitle>InvalidStateExceptionImpl: Could not meet post conditions of generateDTMF()</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6571063</id>
  <updated>2013-06-20T12:43:24Z</updated>
  <dc:date>2013-06-20T12:43:24Z</dc:date>
  <entry>
    <title>RE: InvalidStateExceptionImpl: Could not meet post conditions of generateDT</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7083739" />
    <author>
      <name>Alexander Anikin</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7083739</id>
    <updated>2012-09-26T09:28:20Z</updated>
    <published>2012-09-26T09:28:20Z</published>
    <summary type="html">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?</summary>
    <dc:creator>Alexander Anikin</dc:creator>
    <dc:date>2012-09-26T09:28:20Z</dc:date>
  </entry>
  <entry>
    <title>InvalidStateExceptionImpl: Could not meet post conditions of generateDTMF()</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6571062" />
    <author>
      <name>JOSHUA CALDWELL</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6571062</id>
    <updated>2012-09-21T16:41:57Z</updated>
    <published>2012-09-21T16:41:57Z</published>
    <summary type="html">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</summary>
    <dc:creator>JOSHUA CALDWELL</dc:creator>
    <dc:date>2012-09-21T16:41:57Z</dc:date>
  </entry>
</feed>

