<?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>What CallEv should be used for an active call?</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5248052" />
  <subtitle>What CallEv should be used for an active call?</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5248052</id>
  <updated>2013-05-18T12:34:01Z</updated>
  <dc:date>2013-05-18T12:34:01Z</dc:date>
  <entry>
    <title>RE: What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7955607" />
    <author>
      <name>Daniel Mondria</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7955607</id>
    <updated>2012-10-23T08:16:37Z</updated>
    <published>2012-10-23T08:16:37Z</published>
    <summary type="html">[quote=Mohan Potluri]Check the address in each of those established events. You will see CallCtlConnEstablishedEv for the calling address before the call is answered. After the call is answered you will CallCtlConnEstablishedEv for the called party.[/quote]
Hi

I've got the same problem than Scott: I receive the CallCtlConnEstablishedEv twice: once when the call is made ans once when the call is actually answered. And I'm not sure how to check which was the reason.
Mohan, could you pleas explain me further what do you mean with "Check the address in each of those established events"? I've tried different ways to do it but can't seem to see the answer.
Scott, did you manage to sort it out? How did you do it?
 
I put an extract of my code:
...
CiscoCallEv ciscoCallEv = (CiscoCallEv) eventIter;
...
else if (ciscoCallEv instanceof CallCtlConnEstablishedEv) {
	// Got TWICE the event: when call made and when answered. How do I know when IT'S ANSWERED???
	// [For Mohan or Scott]: What is the addres I have to monitor??? Which value??
	CiscoCall c = (CiscoCall)ciscoCallEv.getCall();
	Address aCallingAddress = c.getCallingAddress();
	Address aCalledAddress = c.getCalledAddress();
	Address aCurrentCalledAddress = c.getCurrentCalledAddress();
	Address aCurrentCallingAddress = c.getCurrentCallingAddress();
	Address aLastRedirectedAddress = c.getLastRedirectedAddress();
	Address aModifiedCalledAddress = c.getModifiedCalledAddress();
	Address aModifiedCallingAddress = c.getModifiedCallingAddress();
	
	calledAnswered(c);
}
...
 
I hope some f you can help me with this, as I'm really stuck with it!!
Thanks in advance,
Dani.</summary>
    <dc:creator>Daniel Mondria</dc:creator>
    <dc:date>2012-10-23T08:16:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5255166" />
    <author>
      <name>Mohan Potluri</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5255166</id>
    <updated>2012-03-07T02:36:10Z</updated>
    <published>2012-03-07T02:36:10Z</published>
    <summary type="html">Check the address in each of those established events. You will see CallCtlConnEstablishedEv for the calling address before the call is answered. After the call is answered you will CallCtlConnEstablishedEv for the called party.</summary>
    <dc:creator>Mohan Potluri</dc:creator>
    <dc:date>2012-03-07T02:36:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5255039" />
    <author>
      <name>Scott Belnap</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5255039</id>
    <updated>2012-03-07T01:54:38Z</updated>
    <published>2012-03-07T01:54:38Z</published>
    <summary type="html">[quote]CallCtlConnEstablishedEv for the called party if you want to do it from calling party.
 
If you want to do it from called party use CallCtlTermConnTalkingEv of the called terminal.
 
 [/quote]
I am getting the CallCtlConnEstablishedEv event published to me before and after the called party has picked up the phone.  Is this the correct behavior?  I was assuming that CallCtlConnEstablishedEv would only be published if the called party had picked up the phone.</summary>
    <dc:creator>Scott Belnap</dc:creator>
    <dc:date>2012-03-07T01:54:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5254613" />
    <author>
      <name>Scott Belnap</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5254613</id>
    <updated>2012-03-06T21:29:10Z</updated>
    <published>2012-03-06T21:29:10Z</published>
    <summary type="html">That was it, I implemented CallObserver and not CallControlCallObserver.

thank you!</summary>
    <dc:creator>Scott Belnap</dc:creator>
    <dc:date>2012-03-06T21:29:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5250174" />
    <author>
      <name>Abhishek Malhotra</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5250174</id>
    <updated>2012-03-06T21:23:33Z</updated>
    <published>2012-03-06T21:23:33Z</published>
    <summary type="html">It could if your observer implements CallObserver but doesnt implement CallControlObserver. If so, please have your observer class implement CallControlObserver too.</summary>
    <dc:creator>Abhishek Malhotra</dc:creator>
    <dc:date>2012-03-06T21:23:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5254597" />
    <author>
      <name>Scott Belnap</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5254597</id>
    <updated>2012-03-06T21:16:01Z</updated>
    <published>2012-03-06T21:16:01Z</published>
    <summary type="html">My CallObserver never receives the CallCtlConnEstablishedEv event.  These are the only events I receive, even though I have placed and accepted th phone call.  Is there something I'm missing?
CallEv=(P1-user) 3396775/8 CallActiveEv [#89] Cause:106 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 ConnCreatedEv 26614:Campus [#90] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 ConnInProgressEv 26614:Campus [#91] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 ConnCreatedEv 653: [#93] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 ConnConnectedEv 653: [#94] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 ConnAlertingEv 26614:Campus [#96] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 TermConnCreatedEv SEP000750C67BC5 [#98] Cause:0 CallCtlCause:0 CiscoCause:100 FeatReason:12
CallEv=(P1-user) 3396775/8 TermConnRingingEv SEP000750C67BC5 [#99] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 ConnConnectedEv 26614:Campus [#101] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 TermConnActiveEv SEP000750C67BC5 [#103] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12
CallEv=(P1-user) 3396775/8 TermConnActiveEv SEP000750C67BC5 [#103] Cause:100 CallCtlCause:0 CiscoCause:0 FeatReason:12</summary>
    <dc:creator>Scott Belnap</dc:creator>
    <dc:date>2012-03-06T21:16:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5248121" />
    <author>
      <name>Mohan Potluri</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5248121</id>
    <updated>2012-03-06T01:17:23Z</updated>
    <published>2012-03-06T01:17:23Z</published>
    <summary type="html">CallCtlConnEstablishedEv for the called party if you want to do it from calling party.
 
If you want to do it from called party use CallCtlTermConnTalkingEv of the called terminal.
 
 </summary>
    <dc:creator>Mohan Potluri</dc:creator>
    <dc:date>2012-03-06T01:17:23Z</dc:date>
  </entry>
  <entry>
    <title>What CallEv should be used for an active call?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5248051" />
    <author>
      <name>Scott Belnap</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5248051</id>
    <updated>2012-03-12T21:44:40Z</updated>
    <published>2012-03-06T00:57:06Z</published>
    <summary type="html">I'm trying to play some DTMF tones after I have made a phone call and the third party has picked up the call.  What CallEv should I be looking for before I play the DTMF tones?
 
Thanks!</summary>
    <dc:creator>Scott Belnap</dc:creator>
    <dc:date>2012-03-06T00:57:06Z</dc:date>
  </entry>
</feed>

