« Back to Cisco JTAPI Questions

CiscoRTPInputStartedEv.getRTPInputProperties() problem

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
This is my code for start a call.
I am trying to record the rtp strams in another system.

public synchronized void terminalChangedEvent ( TermEv [] eventList )
    {
        traceGenericEvents ( eventList );
        for ( int i = 0; i < eventList.length; i++ )
        {
            if ( eventList instanceof CiscoTermEv )
            {
                try
                {
                    CiscoMediaTerminal mediaTerm;
                    CiscoTermEv ev = (CiscoTermEv) eventList;
                    switch ( ev.getID () )
                    {
                        case CiscoRTPInputStartedEv.ID:
                            trace.bufPrint ( "Received CiscoRTPInputStartedEv :: {}\n" );
                            trace.setRTPactive(true);
                            CiscoRTPInputStartedEv inEv = (CiscoRTPInputStartedEv) ev;                           
                            trace.setRTPInputProperties(inEv.getRTPInputProperties () );
                            trySetCallStarted((com.cisco.jtapi.extensions.CiscoEv)ev);                               
                            break;
                            .....................
                            .....................
My problem is that i am not getting the right RTP streams (ip and port) from this line: inEv.getRTPInputProperties ()
The MTP feature is enabled on the call manager
Any idea how to get the right streams for that call? 

RTPInputProperties are going to give you the IP Address and Port of the near end(ie. your CiscoMediaTerminal) while RTPOutputProperties are going to give you RTP Details for the far end. 
Can you explain on what information are you really looking for when you say, how to get right streams for the call?