0

I am using call consult in my script:

dialoutCall = (CiscoCall) provider.createCall();
TerminalConnection terminalConnection = ctipTerminal.getTerminalConnections()[0];
dialoutCall.consult(terminalConnection,dialToNum);

when using consult the other existing call state is changed to hold and the RTP ports are being changed, is it possible to obtain the RTP ports of the call that is on hold state?

The events I get after using consult:

Received--> Call/CiscoTermConnSelectChangedEv CTI_1
Received--> Terminal/CiscoRTPInputStoppedEv
Received--> Terminal/CiscoRTPOutputStoppedEv
Received--> Call/CallCtlTermConnHeldEv CTI_1
Received--> Call/ConsultCallActive
Received--> Call/ConnCreatedEv 6050:CampusPT:1
Received--> Call/ConnConnectedEv 6050:CampusPT:1
Received--> Call/CallCtlConnInitiatedEv 6050:CampusPT:1
Received--> Call/TermConnCreatedEv CTI_1
Received--> Call/TermConnActiveEv CTI_1
Received--> Call/CallCtlTermConnTalkingEv CTI_1
Received--> Call/CallCtlConnDialingEv 6050:CampusPT:1
Received--> Call/CallCtlConnEstablishedEv 6050:CampusPT:1
Received--> Call/ConnInProgressEv 6001:CampusPT:1
Received--> Call/CallCtlConnOfferedEv 6001:CampusPT:1
Received--> Call/ConnAlertingEv 6001:CampusPT:1
Received--> Call/CallCtlConnAlertingEv 6001:CampusPT:1
Amit
  • 11
  • 4

1 Answers1

0

In general you should enable and handle the CiscoRTPInputStartedEv, which will indicate the new IP:Port where the hold media will be coming from.

David Staudt
  • 361
  • 2
  • 2
  • Hi, At the beginning of the script I get the RTP ports by the CiscoRTPInputStartedEvent: handler.ctipRTPOutputStarted.waitTrue(); destHost = ctipRTPOutputStartedEvent.getRTPOutputProperties().getRemoteAddress().getHostAddress(); destPort = ctipRTPOutputStartedEvent.getRTPOutputProperties().getRemotePort(); – Amit Mar 29 '23 at 09:24
  • But, there is no RTP event I see after using the consult besides the CiscoRTPInputStoppedEv and CiscoRTPOuputStoppedEv. I edited the thread message and added the full events I'm getting after using the consult method (couldn't put it here because of length msg limit). – Amit Mar 29 '23 at 09:31