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.
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.