AnsweredAssumed Answered

How to get client IP address and port number while filtering AgentID?

Question asked by gtgozdekum on Jun 29, 2015
Latest reply on Jul 16, 2015 by Warper2011

Hi,

We need to get Client IP address and Client port number  from CTIOS server for only specific agents to use in a web application.

Our CTIOS version is 8.0.3 and ICM version is 8.5.4.

We used monitoring mode and a filter includes RTPStart and RTPStop events and an AgentID we want to observe like below:

 

private void ProcessOnConnectionWithConnectionPending(Arguments args) {

    const string methodName = "ProcessOnConnectionWithConnectionPending";

m_tracer.Trace(Logger.TRACE_MASK_EVT_REQ_HIGH, methodName, "Entering method");

 

    // Create a monitor mode connection that filters on AgentStateEvent and

    // QueryAgentStateEvent.

    Arguments setMsgFilterArgs = new Arguments();

    string    filterString     = string.Format("MessageID = {0}, {1}, {2}, {3} ; AGENTID = 3024", (int)EventID.eAgentStateEvent, (int)EventID.eQueryAgentStateConf, (int)EventID.eRTPStartedEvent, (int)EventID.eRTPStoppedEvent);

   

setMsgFilterArgs.SetValue(Enum_CtiOs.CTIOS_FILTER, filterString);

 

setMsgFilterArgs.SetValue(Enum_CtiOs.CTIOS_MONITORSESSIONSNAPSHOTMODE, 1);

 

    if (null != m_ctiosSession)

    {

m_ctiosSession.SetMessageFilter(setMsgFilterArgs);

        m_state = CTIObjectState.Connected;

    }

    else

    {

        // Irrecoverable programming error

        string msg = string.Format("ERROR: Null session reference!");

m_tracer.Trace(Logger.TRACE_MASK_WARNING, methodName, msg);

    }

}

 

But, we got the following lines, although we are able to get the RTPStart and RTPStop events without using any filter.


CtiOsSession(34948909).CCtiOsSession::OnEvent, No CTIOS Objects are capable of processing Event( eRTPStartedEvent ) CtiOsSession(34948909).CCtiOsSession::OnEvent, No CTIOS Objects are capable of processing Event( eRTPStoppedEvent )

 

How can we get Client IP address and Client port number while filtering AgentIDs?

Outcomes